AWS SDK for C++  1.9.71
AWS SDK for C++
Contact.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace AlexaForBusiness
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetContactArn() const{ return m_contactArn; }
47 
51  inline bool ContactArnHasBeenSet() const { return m_contactArnHasBeenSet; }
52 
56  inline void SetContactArn(const Aws::String& value) { m_contactArnHasBeenSet = true; m_contactArn = value; }
57 
61  inline void SetContactArn(Aws::String&& value) { m_contactArnHasBeenSet = true; m_contactArn = std::move(value); }
62 
66  inline void SetContactArn(const char* value) { m_contactArnHasBeenSet = true; m_contactArn.assign(value); }
67 
71  inline Contact& WithContactArn(const Aws::String& value) { SetContactArn(value); return *this;}
72 
76  inline Contact& WithContactArn(Aws::String&& value) { SetContactArn(std::move(value)); return *this;}
77 
81  inline Contact& WithContactArn(const char* value) { SetContactArn(value); return *this;}
82 
83 
87  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
88 
92  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
93 
97  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
98 
102  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
103 
107  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
108 
112  inline Contact& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
113 
117  inline Contact& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
118 
122  inline Contact& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
123 
124 
128  inline const Aws::String& GetFirstName() const{ return m_firstName; }
129 
133  inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
134 
138  inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
139 
143  inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); }
144 
148  inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); }
149 
153  inline Contact& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
154 
158  inline Contact& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;}
159 
163  inline Contact& WithFirstName(const char* value) { SetFirstName(value); return *this;}
164 
165 
169  inline const Aws::String& GetLastName() const{ return m_lastName; }
170 
174  inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
175 
179  inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
180 
184  inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); }
185 
189  inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); }
190 
194  inline Contact& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
195 
199  inline Contact& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;}
200 
204  inline Contact& WithLastName(const char* value) { SetLastName(value); return *this;}
205 
206 
213  inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
214 
221  inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
222 
229  inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
230 
237  inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
238 
245  inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
246 
253  inline Contact& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
254 
261  inline Contact& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
262 
269  inline Contact& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
270 
271 
275  inline const Aws::Vector<PhoneNumber>& GetPhoneNumbers() const{ return m_phoneNumbers; }
276 
280  inline bool PhoneNumbersHasBeenSet() const { return m_phoneNumbersHasBeenSet; }
281 
285  inline void SetPhoneNumbers(const Aws::Vector<PhoneNumber>& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers = value; }
286 
290  inline void SetPhoneNumbers(Aws::Vector<PhoneNumber>&& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers = std::move(value); }
291 
295  inline Contact& WithPhoneNumbers(const Aws::Vector<PhoneNumber>& value) { SetPhoneNumbers(value); return *this;}
296 
300  inline Contact& WithPhoneNumbers(Aws::Vector<PhoneNumber>&& value) { SetPhoneNumbers(std::move(value)); return *this;}
301 
305  inline Contact& AddPhoneNumbers(const PhoneNumber& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers.push_back(value); return *this; }
306 
310  inline Contact& AddPhoneNumbers(PhoneNumber&& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers.push_back(std::move(value)); return *this; }
311 
312 
316  inline const Aws::Vector<SipAddress>& GetSipAddresses() const{ return m_sipAddresses; }
317 
321  inline bool SipAddressesHasBeenSet() const { return m_sipAddressesHasBeenSet; }
322 
326  inline void SetSipAddresses(const Aws::Vector<SipAddress>& value) { m_sipAddressesHasBeenSet = true; m_sipAddresses = value; }
327 
331  inline void SetSipAddresses(Aws::Vector<SipAddress>&& value) { m_sipAddressesHasBeenSet = true; m_sipAddresses = std::move(value); }
332 
336  inline Contact& WithSipAddresses(const Aws::Vector<SipAddress>& value) { SetSipAddresses(value); return *this;}
337 
341  inline Contact& WithSipAddresses(Aws::Vector<SipAddress>&& value) { SetSipAddresses(std::move(value)); return *this;}
342 
346  inline Contact& AddSipAddresses(const SipAddress& value) { m_sipAddressesHasBeenSet = true; m_sipAddresses.push_back(value); return *this; }
347 
351  inline Contact& AddSipAddresses(SipAddress&& value) { m_sipAddressesHasBeenSet = true; m_sipAddresses.push_back(std::move(value)); return *this; }
352 
353  private:
354 
355  Aws::String m_contactArn;
356  bool m_contactArnHasBeenSet;
357 
358  Aws::String m_displayName;
359  bool m_displayNameHasBeenSet;
360 
361  Aws::String m_firstName;
362  bool m_firstNameHasBeenSet;
363 
364  Aws::String m_lastName;
365  bool m_lastNameHasBeenSet;
366 
367  Aws::String m_phoneNumber;
368  bool m_phoneNumberHasBeenSet;
369 
370  Aws::Vector<PhoneNumber> m_phoneNumbers;
371  bool m_phoneNumbersHasBeenSet;
372 
373  Aws::Vector<SipAddress> m_sipAddresses;
374  bool m_sipAddressesHasBeenSet;
375  };
376 
377 } // namespace Model
378 } // namespace AlexaForBusiness
379 } // namespace Aws
Aws::AlexaForBusiness::Model::Contact::WithContactArn
Contact & WithContactArn(const Aws::String &value)
Definition: Contact.h:71
Aws::AlexaForBusiness::Model::Contact::SetLastName
void SetLastName(const char *value)
Definition: Contact.h:189
Aws::AlexaForBusiness::Model::Contact::WithPhoneNumbers
Contact & WithPhoneNumbers(Aws::Vector< PhoneNumber > &&value)
Definition: Contact.h:300
Aws::AlexaForBusiness::Model::Contact::DisplayNameHasBeenSet
bool DisplayNameHasBeenSet() const
Definition: Contact.h:92
Aws::AlexaForBusiness::Model::Contact::Contact
Contact()
Aws::AlexaForBusiness::Model::Contact::SetFirstName
void SetFirstName(Aws::String &&value)
Definition: Contact.h:143
PhoneNumber.h
Aws::AlexaForBusiness::Model::Contact::WithFirstName
Contact & WithFirstName(const Aws::String &value)
Definition: Contact.h:153
Aws::AlexaForBusiness::Model::Contact::WithLastName
Contact & WithLastName(const char *value)
Definition: Contact.h:204
Aws::AlexaForBusiness::Model::Contact::SetPhoneNumber
void SetPhoneNumber(const char *value)
Definition: Contact.h:245
Aws::AlexaForBusiness::Model::Contact
Definition: Contact.h:35
Aws::AlexaForBusiness::Model::Contact::WithSipAddresses
Contact & WithSipAddresses(const Aws::Vector< SipAddress > &value)
Definition: Contact.h:336
Aws::AlexaForBusiness::Model::Contact::WithPhoneNumber
Contact & WithPhoneNumber(const Aws::String &value)
Definition: Contact.h:253
Aws::AlexaForBusiness::Model::Contact::WithPhoneNumber
Contact & WithPhoneNumber(Aws::String &&value)
Definition: Contact.h:261
Aws::AlexaForBusiness::Model::Contact::AddPhoneNumbers
Contact & AddPhoneNumbers(const PhoneNumber &value)
Definition: Contact.h:305
Aws::AlexaForBusiness::Model::Contact::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: Contact.h:87
Aws::AlexaForBusiness::Model::Contact::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AlexaForBusiness::Model::Contact::SetLastName
void SetLastName(const Aws::String &value)
Definition: Contact.h:179
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AlexaForBusiness::Model::Contact::WithContactArn
Contact & WithContactArn(const char *value)
Definition: Contact.h:81
AWSVector.h
Aws::AlexaForBusiness::Model::Contact::operator=
Contact & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AlexaForBusiness::Model::Contact::SetPhoneNumber
void SetPhoneNumber(Aws::String &&value)
Definition: Contact.h:237
Aws::AlexaForBusiness::Model::Contact::GetContactArn
const Aws::String & GetContactArn() const
Definition: Contact.h:46
Aws::AlexaForBusiness::Model::Contact::SetFirstName
void SetFirstName(const Aws::String &value)
Definition: Contact.h:138
Aws::AlexaForBusiness::Model::PhoneNumber
Definition: PhoneNumber.h:34
Aws::AlexaForBusiness::Model::Contact::ContactArnHasBeenSet
bool ContactArnHasBeenSet() const
Definition: Contact.h:51
Aws::AlexaForBusiness::Model::Contact::LastNameHasBeenSet
bool LastNameHasBeenSet() const
Definition: Contact.h:174
Aws::AlexaForBusiness::Model::Contact::SetPhoneNumbers
void SetPhoneNumbers(const Aws::Vector< PhoneNumber > &value)
Definition: Contact.h:285
Aws::AlexaForBusiness::Model::Contact::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: Contact.h:97
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::Contact::WithSipAddresses
Contact & WithSipAddresses(Aws::Vector< SipAddress > &&value)
Definition: Contact.h:341
Aws::AlexaForBusiness::Model::Contact::WithFirstName
Contact & WithFirstName(const char *value)
Definition: Contact.h:163
Aws::AlexaForBusiness::Model::Contact::WithDisplayName
Contact & WithDisplayName(Aws::String &&value)
Definition: Contact.h:117
Aws::AlexaForBusiness::Model::Contact::AddSipAddresses
Contact & AddSipAddresses(SipAddress &&value)
Definition: Contact.h:351
Aws::AlexaForBusiness::Model::Contact::GetPhoneNumbers
const Aws::Vector< PhoneNumber > & GetPhoneNumbers() const
Definition: Contact.h:275
Aws::AlexaForBusiness::Model::Contact::WithLastName
Contact & WithLastName(Aws::String &&value)
Definition: Contact.h:199
Aws::AlexaForBusiness::Model::Contact::WithFirstName
Contact & WithFirstName(Aws::String &&value)
Definition: Contact.h:158
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::AlexaForBusiness::Model::Contact::PhoneNumberHasBeenSet
bool PhoneNumberHasBeenSet() const
Definition: Contact.h:221
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AlexaForBusiness::Model::Contact::SetContactArn
void SetContactArn(Aws::String &&value)
Definition: Contact.h:61
Aws::AlexaForBusiness::Model::Contact::SetPhoneNumbers
void SetPhoneNumbers(Aws::Vector< PhoneNumber > &&value)
Definition: Contact.h:290
Aws::AlexaForBusiness::Model::Contact::GetPhoneNumber
const Aws::String & GetPhoneNumber() const
Definition: Contact.h:213
Aws::AlexaForBusiness::Model::Contact::GetFirstName
const Aws::String & GetFirstName() const
Definition: Contact.h:128
Aws::AlexaForBusiness::Model::Contact::WithPhoneNumbers
Contact & WithPhoneNumbers(const Aws::Vector< PhoneNumber > &value)
Definition: Contact.h:295
Aws::AlexaForBusiness::Model::Contact::FirstNameHasBeenSet
bool FirstNameHasBeenSet() const
Definition: Contact.h:133
Aws::AlexaForBusiness::Model::Contact::WithPhoneNumber
Contact & WithPhoneNumber(const char *value)
Definition: Contact.h:269
Aws::AlexaForBusiness::Model::Contact::GetLastName
const Aws::String & GetLastName() const
Definition: Contact.h:169
Aws::AlexaForBusiness::Model::Contact::WithContactArn
Contact & WithContactArn(Aws::String &&value)
Definition: Contact.h:76
AlexaForBusiness_EXPORTS.h
Aws::AlexaForBusiness::Model::Contact::SetContactArn
void SetContactArn(const Aws::String &value)
Definition: Contact.h:56
Aws::AlexaForBusiness::Model::SipAddress
Definition: SipAddress.h:34
Aws::AlexaForBusiness::Model::Contact::PhoneNumbersHasBeenSet
bool PhoneNumbersHasBeenSet() const
Definition: Contact.h:280
SipAddress.h
Aws::AlexaForBusiness::Model::Contact::AddPhoneNumbers
Contact & AddPhoneNumbers(PhoneNumber &&value)
Definition: Contact.h:310
Aws
Definition: AccessManagementClient.h:15
Aws::AlexaForBusiness::Model::Contact::SetLastName
void SetLastName(Aws::String &&value)
Definition: Contact.h:184
Aws::AlexaForBusiness::Model::Contact::SetSipAddresses
void SetSipAddresses(const Aws::Vector< SipAddress > &value)
Definition: Contact.h:326
Aws::AlexaForBusiness::Model::Contact::SetSipAddresses
void SetSipAddresses(Aws::Vector< SipAddress > &&value)
Definition: Contact.h:331
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::Contact::WithDisplayName
Contact & WithDisplayName(const Aws::String &value)
Definition: Contact.h:112
Aws::AlexaForBusiness::Model::Contact::SetDisplayName
void SetDisplayName(const char *value)
Definition: Contact.h:107
Aws::AlexaForBusiness::Model::Contact::SetFirstName
void SetFirstName(const char *value)
Definition: Contact.h:148
Aws::AlexaForBusiness::Model::Contact::SetPhoneNumber
void SetPhoneNumber(const Aws::String &value)
Definition: Contact.h:229
Aws::AlexaForBusiness::Model::Contact::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: Contact.h:102
Aws::AlexaForBusiness::Model::Contact::AddSipAddresses
Contact & AddSipAddresses(const SipAddress &value)
Definition: Contact.h:346
Aws::AlexaForBusiness::Model::Contact::SipAddressesHasBeenSet
bool SipAddressesHasBeenSet() const
Definition: Contact.h:321
Aws::AlexaForBusiness::Model::Contact::Contact
Contact(Aws::Utils::Json::JsonView jsonValue)
Aws::AlexaForBusiness::Model::Contact::SetContactArn
void SetContactArn(const char *value)
Definition: Contact.h:66
Aws::AlexaForBusiness::Model::Contact::WithLastName
Contact & WithLastName(const Aws::String &value)
Definition: Contact.h:194
Aws::AlexaForBusiness::Model::Contact::GetSipAddresses
const Aws::Vector< SipAddress > & GetSipAddresses() const
Definition: Contact.h:316
Aws::AlexaForBusiness::Model::Contact::WithDisplayName
Contact & WithDisplayName(const char *value)
Definition: Contact.h:122