AWS SDK for C++  1.9.154
AWS SDK for C++
PhoneNumberSummary.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Connect
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetId() const{ return m_id; }
47 
51  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 
56  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 
61  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
62 
66  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67 
71  inline PhoneNumberSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline PhoneNumberSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 
81  inline PhoneNumberSummary& WithId(const char* value) { SetId(value); return *this;}
82 
83 
87  inline const Aws::String& GetArn() const{ return m_arn; }
88 
92  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
93 
97  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
98 
102  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
103 
107  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
108 
112  inline PhoneNumberSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
113 
117  inline PhoneNumberSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
118 
122  inline PhoneNumberSummary& WithArn(const char* value) { SetArn(value); return *this;}
123 
124 
128  inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
129 
133  inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
134 
138  inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
139 
143  inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
144 
148  inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
149 
153  inline PhoneNumberSummary& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
154 
158  inline PhoneNumberSummary& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
159 
163  inline PhoneNumberSummary& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
164 
165 
169  inline const PhoneNumberType& GetPhoneNumberType() const{ return m_phoneNumberType; }
170 
174  inline bool PhoneNumberTypeHasBeenSet() const { return m_phoneNumberTypeHasBeenSet; }
175 
179  inline void SetPhoneNumberType(const PhoneNumberType& value) { m_phoneNumberTypeHasBeenSet = true; m_phoneNumberType = value; }
180 
184  inline void SetPhoneNumberType(PhoneNumberType&& value) { m_phoneNumberTypeHasBeenSet = true; m_phoneNumberType = std::move(value); }
185 
189  inline PhoneNumberSummary& WithPhoneNumberType(const PhoneNumberType& value) { SetPhoneNumberType(value); return *this;}
190 
194  inline PhoneNumberSummary& WithPhoneNumberType(PhoneNumberType&& value) { SetPhoneNumberType(std::move(value)); return *this;}
195 
196 
200  inline const PhoneNumberCountryCode& GetPhoneNumberCountryCode() const{ return m_phoneNumberCountryCode; }
201 
205  inline bool PhoneNumberCountryCodeHasBeenSet() const { return m_phoneNumberCountryCodeHasBeenSet; }
206 
210  inline void SetPhoneNumberCountryCode(const PhoneNumberCountryCode& value) { m_phoneNumberCountryCodeHasBeenSet = true; m_phoneNumberCountryCode = value; }
211 
215  inline void SetPhoneNumberCountryCode(PhoneNumberCountryCode&& value) { m_phoneNumberCountryCodeHasBeenSet = true; m_phoneNumberCountryCode = std::move(value); }
216 
220  inline PhoneNumberSummary& WithPhoneNumberCountryCode(const PhoneNumberCountryCode& value) { SetPhoneNumberCountryCode(value); return *this;}
221 
225  inline PhoneNumberSummary& WithPhoneNumberCountryCode(PhoneNumberCountryCode&& value) { SetPhoneNumberCountryCode(std::move(value)); return *this;}
226 
227  private:
228 
229  Aws::String m_id;
230  bool m_idHasBeenSet;
231 
232  Aws::String m_arn;
233  bool m_arnHasBeenSet;
234 
235  Aws::String m_phoneNumber;
236  bool m_phoneNumberHasBeenSet;
237 
238  PhoneNumberType m_phoneNumberType;
239  bool m_phoneNumberTypeHasBeenSet;
240 
241  PhoneNumberCountryCode m_phoneNumberCountryCode;
242  bool m_phoneNumberCountryCodeHasBeenSet;
243  };
244 
245 } // namespace Model
246 } // namespace Connect
247 } // namespace Aws
Aws::Connect::Model::PhoneNumberSummary::WithArn
PhoneNumberSummary & WithArn(const char *value)
Definition: PhoneNumberSummary.h:122
Aws::Connect::Model::PhoneNumberSummary::SetId
void SetId(Aws::String &&value)
Definition: PhoneNumberSummary.h:61
Aws::Connect::Model::PhoneNumberSummary::GetArn
const Aws::String & GetArn() const
Definition: PhoneNumberSummary.h:87
Aws::Connect::Model::PhoneNumberSummary::IdHasBeenSet
bool IdHasBeenSet() const
Definition: PhoneNumberSummary.h:51
Aws::Connect::Model::PhoneNumberSummary::SetPhoneNumber
void SetPhoneNumber(const char *value)
Definition: PhoneNumberSummary.h:148
Aws::Connect::Model::PhoneNumberSummary::SetPhoneNumber
void SetPhoneNumber(const Aws::String &value)
Definition: PhoneNumberSummary.h:138
Aws::Connect::Model::PhoneNumberSummary::WithPhoneNumberCountryCode
PhoneNumberSummary & WithPhoneNumberCountryCode(const PhoneNumberCountryCode &value)
Definition: PhoneNumberSummary.h:220
Aws::Connect::Model::PhoneNumberSummary::WithPhoneNumber
PhoneNumberSummary & WithPhoneNumber(Aws::String &&value)
Definition: PhoneNumberSummary.h:158
PhoneNumberCountryCode.h
Aws::Connect::Model::PhoneNumberSummary::SetPhoneNumberCountryCode
void SetPhoneNumberCountryCode(const PhoneNumberCountryCode &value)
Definition: PhoneNumberSummary.h:210
Aws::Connect::Model::PhoneNumberSummary::WithPhoneNumberType
PhoneNumberSummary & WithPhoneNumberType(const PhoneNumberType &value)
Definition: PhoneNumberSummary.h:189
Aws::Connect::Model::PhoneNumberSummary::PhoneNumberCountryCodeHasBeenSet
bool PhoneNumberCountryCodeHasBeenSet() const
Definition: PhoneNumberSummary.h:205
Aws::Connect::Model::PhoneNumberSummary::SetId
void SetId(const char *value)
Definition: PhoneNumberSummary.h:66
Aws::Connect::Model::PhoneNumberSummary::SetArn
void SetArn(const Aws::String &value)
Definition: PhoneNumberSummary.h:97
Aws::Connect::Model::PhoneNumberSummary::PhoneNumberSummary
PhoneNumberSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::PhoneNumberSummary::operator=
PhoneNumberSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PhoneNumberType.h
Aws::Connect::Model::PhoneNumberSummary::PhoneNumberHasBeenSet
bool PhoneNumberHasBeenSet() const
Definition: PhoneNumberSummary.h:133
Aws::Connect::Model::PhoneNumberSummary::PhoneNumberSummary
PhoneNumberSummary()
Aws::Connect::Model::PhoneNumberSummary::WithId
PhoneNumberSummary & WithId(Aws::String &&value)
Definition: PhoneNumberSummary.h:76
Aws::Connect::Model::PhoneNumberType
PhoneNumberType
Definition: PhoneNumberType.h:17
Aws::Connect::Model::PhoneNumberSummary::SetPhoneNumberCountryCode
void SetPhoneNumberCountryCode(PhoneNumberCountryCode &&value)
Definition: PhoneNumberSummary.h:215
Aws::Connect::Model::PhoneNumberCountryCode
PhoneNumberCountryCode
Definition: PhoneNumberCountryCode.h:17
Aws::Connect::Model::PhoneNumberSummary::WithPhoneNumber
PhoneNumberSummary & WithPhoneNumber(const char *value)
Definition: PhoneNumberSummary.h:163
Aws::Connect::Model::PhoneNumberSummary::GetPhoneNumberType
const PhoneNumberType & GetPhoneNumberType() const
Definition: PhoneNumberSummary.h:169
Aws::Connect::Model::PhoneNumberSummary::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: PhoneNumberSummary.h:92
Aws::Connect::Model::PhoneNumberSummary::WithPhoneNumberCountryCode
PhoneNumberSummary & WithPhoneNumberCountryCode(PhoneNumberCountryCode &&value)
Definition: PhoneNumberSummary.h:225
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Connect::Model::PhoneNumberSummary::WithId
PhoneNumberSummary & WithId(const char *value)
Definition: PhoneNumberSummary.h:81
Aws::Connect::Model::PhoneNumberSummary::GetPhoneNumberCountryCode
const PhoneNumberCountryCode & GetPhoneNumberCountryCode() const
Definition: PhoneNumberSummary.h:200
Aws::Connect::Model::PhoneNumberSummary::WithPhoneNumberType
PhoneNumberSummary & WithPhoneNumberType(PhoneNumberType &&value)
Definition: PhoneNumberSummary.h:194
Aws::Connect::Model::PhoneNumberSummary::WithId
PhoneNumberSummary & WithId(const Aws::String &value)
Definition: PhoneNumberSummary.h:71
Aws::Connect::Model::PhoneNumberSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::PhoneNumberSummary::SetPhoneNumberType
void SetPhoneNumberType(const PhoneNumberType &value)
Definition: PhoneNumberSummary.h:179
Aws::Connect::Model::PhoneNumberSummary
Definition: PhoneNumberSummary.h:35
Aws::Connect::Model::PhoneNumberSummary::SetArn
void SetArn(const char *value)
Definition: PhoneNumberSummary.h:107
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::PhoneNumberSummary::GetId
const Aws::String & GetId() const
Definition: PhoneNumberSummary.h:46
Aws::Connect::Model::PhoneNumberSummary::SetArn
void SetArn(Aws::String &&value)
Definition: PhoneNumberSummary.h:102
Aws::Connect::Model::PhoneNumberSummary::SetId
void SetId(const Aws::String &value)
Definition: PhoneNumberSummary.h:56
Aws::Connect::Model::PhoneNumberSummary::WithArn
PhoneNumberSummary & WithArn(Aws::String &&value)
Definition: PhoneNumberSummary.h:117
Aws::Connect::Model::PhoneNumberSummary::GetPhoneNumber
const Aws::String & GetPhoneNumber() const
Definition: PhoneNumberSummary.h:128
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::PhoneNumberSummary::WithArn
PhoneNumberSummary & WithArn(const Aws::String &value)
Definition: PhoneNumberSummary.h:112
Connect_EXPORTS.h
Aws::Connect::Model::PhoneNumberSummary::SetPhoneNumberType
void SetPhoneNumberType(PhoneNumberType &&value)
Definition: PhoneNumberSummary.h:184
Aws::Connect::Model::PhoneNumberSummary::SetPhoneNumber
void SetPhoneNumber(Aws::String &&value)
Definition: PhoneNumberSummary.h:143
Aws::Connect::Model::PhoneNumberSummary::WithPhoneNumber
PhoneNumberSummary & WithPhoneNumber(const Aws::String &value)
Definition: PhoneNumberSummary.h:153
Aws::Connect::Model::PhoneNumberSummary::PhoneNumberTypeHasBeenSet
bool PhoneNumberTypeHasBeenSet() const
Definition: PhoneNumberSummary.h:174