AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
AvailableNumberSummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/PhoneNumberCountryCode.h>
9#include <aws/connect/model/PhoneNumberType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
30 public:
31 AWS_CONNECT_API AvailableNumberSummary() = default;
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
42 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
43 template <typename PhoneNumberT = Aws::String>
44 void SetPhoneNumber(PhoneNumberT&& value) {
45 m_phoneNumberHasBeenSet = true;
46 m_phoneNumber = std::forward<PhoneNumberT>(value);
47 }
48 template <typename PhoneNumberT = Aws::String>
49 AvailableNumberSummary& WithPhoneNumber(PhoneNumberT&& value) {
50 SetPhoneNumber(std::forward<PhoneNumberT>(value));
51 return *this;
52 }
54
56
59 inline PhoneNumberCountryCode GetPhoneNumberCountryCode() const { return m_phoneNumberCountryCode; }
60 inline bool PhoneNumberCountryCodeHasBeenSet() const { return m_phoneNumberCountryCodeHasBeenSet; }
62 m_phoneNumberCountryCodeHasBeenSet = true;
63 m_phoneNumberCountryCode = value;
64 }
67 return *this;
68 }
70
72
75 inline PhoneNumberType GetPhoneNumberType() const { return m_phoneNumberType; }
76 inline bool PhoneNumberTypeHasBeenSet() const { return m_phoneNumberTypeHasBeenSet; }
78 m_phoneNumberTypeHasBeenSet = true;
79 m_phoneNumberType = value;
80 }
82 SetPhoneNumberType(value);
83 return *this;
84 }
86 private:
87 Aws::String m_phoneNumber;
88
90
92 bool m_phoneNumberHasBeenSet = false;
93 bool m_phoneNumberCountryCodeHasBeenSet = false;
94 bool m_phoneNumberTypeHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Connect
99} // namespace Aws
AWS_CONNECT_API AvailableNumberSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API AvailableNumberSummary()=default
void SetPhoneNumberCountryCode(PhoneNumberCountryCode value)
AWS_CONNECT_API AvailableNumberSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
PhoneNumberCountryCode GetPhoneNumberCountryCode() const
AvailableNumberSummary & WithPhoneNumberType(PhoneNumberType value)
AvailableNumberSummary & WithPhoneNumberCountryCode(PhoneNumberCountryCode value)
AvailableNumberSummary & WithPhoneNumber(PhoneNumberT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue