AWS SDK for C++  1.9.44
AWS SDK for C++
CreateContactRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 #include <aws/core/utils/UUID.h>
16 
17 namespace Aws
18 {
19 namespace AlexaForBusiness
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateContact"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
46 
50  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
51 
55  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
56 
60  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
61 
65  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
66 
70  inline CreateContactRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
71 
75  inline CreateContactRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
76 
80  inline CreateContactRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
81 
82 
87  inline const Aws::String& GetFirstName() const{ return m_firstName; }
88 
93  inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
94 
99  inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
100 
105  inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); }
106 
111  inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); }
112 
117  inline CreateContactRequest& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
118 
123  inline CreateContactRequest& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;}
124 
129  inline CreateContactRequest& WithFirstName(const char* value) { SetFirstName(value); return *this;}
130 
131 
136  inline const Aws::String& GetLastName() const{ return m_lastName; }
137 
142  inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
143 
148  inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
149 
154  inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); }
155 
160  inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); }
161 
166  inline CreateContactRequest& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
167 
172  inline CreateContactRequest& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;}
173 
178  inline CreateContactRequest& WithLastName(const char* value) { SetLastName(value); return *this;}
179 
180 
187  inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
188 
195  inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
196 
203  inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
204 
211  inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
212 
219  inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
220 
227  inline CreateContactRequest& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
228 
235  inline CreateContactRequest& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
236 
243  inline CreateContactRequest& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
244 
245 
249  inline const Aws::Vector<PhoneNumber>& GetPhoneNumbers() const{ return m_phoneNumbers; }
250 
254  inline bool PhoneNumbersHasBeenSet() const { return m_phoneNumbersHasBeenSet; }
255 
259  inline void SetPhoneNumbers(const Aws::Vector<PhoneNumber>& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers = value; }
260 
264  inline void SetPhoneNumbers(Aws::Vector<PhoneNumber>&& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers = std::move(value); }
265 
269  inline CreateContactRequest& WithPhoneNumbers(const Aws::Vector<PhoneNumber>& value) { SetPhoneNumbers(value); return *this;}
270 
274  inline CreateContactRequest& WithPhoneNumbers(Aws::Vector<PhoneNumber>&& value) { SetPhoneNumbers(std::move(value)); return *this;}
275 
279  inline CreateContactRequest& AddPhoneNumbers(const PhoneNumber& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers.push_back(value); return *this; }
280 
284  inline CreateContactRequest& AddPhoneNumbers(PhoneNumber&& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers.push_back(std::move(value)); return *this; }
285 
286 
290  inline const Aws::Vector<SipAddress>& GetSipAddresses() const{ return m_sipAddresses; }
291 
295  inline bool SipAddressesHasBeenSet() const { return m_sipAddressesHasBeenSet; }
296 
300  inline void SetSipAddresses(const Aws::Vector<SipAddress>& value) { m_sipAddressesHasBeenSet = true; m_sipAddresses = value; }
301 
305  inline void SetSipAddresses(Aws::Vector<SipAddress>&& value) { m_sipAddressesHasBeenSet = true; m_sipAddresses = std::move(value); }
306 
310  inline CreateContactRequest& WithSipAddresses(const Aws::Vector<SipAddress>& value) { SetSipAddresses(value); return *this;}
311 
315  inline CreateContactRequest& WithSipAddresses(Aws::Vector<SipAddress>&& value) { SetSipAddresses(std::move(value)); return *this;}
316 
320  inline CreateContactRequest& AddSipAddresses(const SipAddress& value) { m_sipAddressesHasBeenSet = true; m_sipAddresses.push_back(value); return *this; }
321 
325  inline CreateContactRequest& AddSipAddresses(SipAddress&& value) { m_sipAddressesHasBeenSet = true; m_sipAddresses.push_back(std::move(value)); return *this; }
326 
327 
332  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
333 
338  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
339 
344  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
345 
350  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
351 
356  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
357 
362  inline CreateContactRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
363 
368  inline CreateContactRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
369 
374  inline CreateContactRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
375 
376 
381  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
382 
387  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
388 
393  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
394 
399  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
400 
405  inline CreateContactRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
406 
411  inline CreateContactRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
412 
417  inline CreateContactRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
418 
423  inline CreateContactRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
424 
425  private:
426 
427  Aws::String m_displayName;
428  bool m_displayNameHasBeenSet;
429 
430  Aws::String m_firstName;
431  bool m_firstNameHasBeenSet;
432 
433  Aws::String m_lastName;
434  bool m_lastNameHasBeenSet;
435 
436  Aws::String m_phoneNumber;
437  bool m_phoneNumberHasBeenSet;
438 
439  Aws::Vector<PhoneNumber> m_phoneNumbers;
440  bool m_phoneNumbersHasBeenSet;
441 
442  Aws::Vector<SipAddress> m_sipAddresses;
443  bool m_sipAddressesHasBeenSet;
444 
445  Aws::String m_clientRequestToken;
446  bool m_clientRequestTokenHasBeenSet;
447 
448  Aws::Vector<Tag> m_tags;
449  bool m_tagsHasBeenSet;
450  };
451 
452 } // namespace Model
453 } // namespace AlexaForBusiness
454 } // namespace Aws
Aws::AlexaForBusiness::Model::CreateContactRequest::WithLastName
CreateContactRequest & WithLastName(const char *value)
Definition: CreateContactRequest.h:178
Aws::AlexaForBusiness::Model::CreateContactRequest::GetFirstName
const Aws::String & GetFirstName() const
Definition: CreateContactRequest.h:87
Aws::AlexaForBusiness::Model::CreateContactRequest::AddTags
CreateContactRequest & AddTags(const Tag &value)
Definition: CreateContactRequest.h:417
Aws::AlexaForBusiness::Model::CreateContactRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateContactRequest.h:344
Aws::AlexaForBusiness::Model::CreateContactRequest::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: CreateContactRequest.h:55
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
PhoneNumber.h
Aws::AlexaForBusiness::Model::CreateContactRequest::WithTags
CreateContactRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateContactRequest.h:405
Aws::AlexaForBusiness::Model::CreateContactRequest::WithSipAddresses
CreateContactRequest & WithSipAddresses(const Aws::Vector< SipAddress > &value)
Definition: CreateContactRequest.h:310
Aws::AlexaForBusiness::Model::CreateContactRequest::SetPhoneNumber
void SetPhoneNumber(const char *value)
Definition: CreateContactRequest.h:219
Aws::AlexaForBusiness::Model::CreateContactRequest::SetDisplayName
void SetDisplayName(const char *value)
Definition: CreateContactRequest.h:65
Aws::AlexaForBusiness::Model::CreateContactRequest::SetPhoneNumber
void SetPhoneNumber(Aws::String &&value)
Definition: CreateContactRequest.h:211
Aws::AlexaForBusiness::Model::CreateContactRequest::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: CreateContactRequest.h:60
Aws::AlexaForBusiness::Model::CreateContactRequest::GetSipAddresses
const Aws::Vector< SipAddress > & GetSipAddresses() const
Definition: CreateContactRequest.h:290
Aws::AlexaForBusiness::Model::CreateContactRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateContactRequest.h:356
Aws::AlexaForBusiness::Model::CreateContactRequest::WithClientRequestToken
CreateContactRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateContactRequest.h:362
Tag.h
Aws::AlexaForBusiness::Model::CreateContactRequest::SetSipAddresses
void SetSipAddresses(const Aws::Vector< SipAddress > &value)
Definition: CreateContactRequest.h:300
Aws::AlexaForBusiness::Model::CreateContactRequest::WithClientRequestToken
CreateContactRequest & WithClientRequestToken(const char *value)
Definition: CreateContactRequest.h:374
Aws::AlexaForBusiness::Model::CreateContactRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateContactRequest.h:350
Aws::AlexaForBusiness::Model::CreateContactRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AlexaForBusiness::Model::CreateContactRequest::SetPhoneNumbers
void SetPhoneNumbers(const Aws::Vector< PhoneNumber > &value)
Definition: CreateContactRequest.h:259
Aws::AlexaForBusiness::Model::CreateContactRequest::SetLastName
void SetLastName(const char *value)
Definition: CreateContactRequest.h:160
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AlexaForBusiness::Model::CreateContactRequest::SetPhoneNumbers
void SetPhoneNumbers(Aws::Vector< PhoneNumber > &&value)
Definition: CreateContactRequest.h:264
Aws::AlexaForBusiness::Model::CreateContactRequest::AddTags
CreateContactRequest & AddTags(Tag &&value)
Definition: CreateContactRequest.h:423
Aws::AlexaForBusiness::Model::CreateContactRequest::WithFirstName
CreateContactRequest & WithFirstName(Aws::String &&value)
Definition: CreateContactRequest.h:123
Aws::AlexaForBusiness::Model::CreateContactRequest::AddPhoneNumbers
CreateContactRequest & AddPhoneNumbers(PhoneNumber &&value)
Definition: CreateContactRequest.h:284
Aws::AlexaForBusiness::Model::CreateContactRequest::SetLastName
void SetLastName(const Aws::String &value)
Definition: CreateContactRequest.h:148
AWSVector.h
Aws::AlexaForBusiness::Model::CreateContactRequest::PhoneNumbersHasBeenSet
bool PhoneNumbersHasBeenSet() const
Definition: CreateContactRequest.h:254
Aws::AlexaForBusiness::Model::PhoneNumber
Definition: PhoneNumber.h:34
Aws::AlexaForBusiness::Model::CreateContactRequest
Definition: CreateContactRequest.h:27
Aws::AlexaForBusiness::Model::CreateContactRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateContactRequest.h:387
Aws::AlexaForBusiness::Model::CreateContactRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateContactRequest.h:332
Aws::AlexaForBusiness::Model::CreateContactRequest::GetPhoneNumber
const Aws::String & GetPhoneNumber() const
Definition: CreateContactRequest.h:187
Aws::AlexaForBusiness::Model::CreateContactRequest::SetSipAddresses
void SetSipAddresses(Aws::Vector< SipAddress > &&value)
Definition: CreateContactRequest.h:305
Aws::AlexaForBusiness::Model::CreateContactRequest::CreateContactRequest
CreateContactRequest()
Aws::AlexaForBusiness::Model::CreateContactRequest::PhoneNumberHasBeenSet
bool PhoneNumberHasBeenSet() const
Definition: CreateContactRequest.h:195
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::CreateContactRequest::WithDisplayName
CreateContactRequest & WithDisplayName(Aws::String &&value)
Definition: CreateContactRequest.h:75
Aws::AlexaForBusiness::Model::CreateContactRequest::AddPhoneNumbers
CreateContactRequest & AddPhoneNumbers(const PhoneNumber &value)
Definition: CreateContactRequest.h:279
Aws::AlexaForBusiness::Model::CreateContactRequest::AddSipAddresses
CreateContactRequest & AddSipAddresses(const SipAddress &value)
Definition: CreateContactRequest.h:320
Aws::AlexaForBusiness::Model::CreateContactRequest::WithDisplayName
CreateContactRequest & WithDisplayName(const char *value)
Definition: CreateContactRequest.h:80
Aws::AlexaForBusiness::Model::CreateContactRequest::WithTags
CreateContactRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateContactRequest.h:411
Aws::AlexaForBusiness::Model::CreateContactRequest::AddSipAddresses
CreateContactRequest & AddSipAddresses(SipAddress &&value)
Definition: CreateContactRequest.h:325
Aws::AlexaForBusiness::Model::CreateContactRequest::WithFirstName
CreateContactRequest & WithFirstName(const Aws::String &value)
Definition: CreateContactRequest.h:117
Aws::AlexaForBusiness::Model::CreateContactRequest::LastNameHasBeenSet
bool LastNameHasBeenSet() const
Definition: CreateContactRequest.h:142
Aws::AlexaForBusiness::Model::Tag
Definition: Tag.h:33
Aws::AlexaForBusiness::Model::CreateContactRequest::WithPhoneNumber
CreateContactRequest & WithPhoneNumber(const Aws::String &value)
Definition: CreateContactRequest.h:227
Aws::AlexaForBusiness::Model::CreateContactRequest::SipAddressesHasBeenSet
bool SipAddressesHasBeenSet() const
Definition: CreateContactRequest.h:295
Aws::AlexaForBusiness::Model::CreateContactRequest::SetFirstName
void SetFirstName(Aws::String &&value)
Definition: CreateContactRequest.h:105
AWSString.h
Aws::AlexaForBusiness::Model::CreateContactRequest::GetPhoneNumbers
const Aws::Vector< PhoneNumber > & GetPhoneNumbers() const
Definition: CreateContactRequest.h:249
Aws::AlexaForBusiness::Model::CreateContactRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::AlexaForBusiness::Model::CreateContactRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateContactRequest.h:381
Aws::AlexaForBusiness::Model::CreateContactRequest::SetFirstName
void SetFirstName(const Aws::String &value)
Definition: CreateContactRequest.h:99
Aws::AlexaForBusiness::Model::CreateContactRequest::SetLastName
void SetLastName(Aws::String &&value)
Definition: CreateContactRequest.h:154
Aws::AlexaForBusiness::Model::CreateContactRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateContactRequest.h:35
AlexaForBusiness_EXPORTS.h
Aws::AlexaForBusiness::Model::SipAddress
Definition: SipAddress.h:34
Aws::AlexaForBusiness::Model::CreateContactRequest::FirstNameHasBeenSet
bool FirstNameHasBeenSet() const
Definition: CreateContactRequest.h:93
SipAddress.h
Aws::AlexaForBusiness::Model::CreateContactRequest::DisplayNameHasBeenSet
bool DisplayNameHasBeenSet() const
Definition: CreateContactRequest.h:50
Aws::AlexaForBusiness::Model::CreateContactRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateContactRequest.h:393
Aws::AlexaForBusiness::Model::CreateContactRequest::WithClientRequestToken
CreateContactRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateContactRequest.h:368
Aws::AlexaForBusiness::Model::CreateContactRequest::GetLastName
const Aws::String & GetLastName() const
Definition: CreateContactRequest.h:136
Aws
Definition: AccessManagementClient.h:15
Aws::AlexaForBusiness::Model::CreateContactRequest::WithPhoneNumber
CreateContactRequest & WithPhoneNumber(const char *value)
Definition: CreateContactRequest.h:243
Aws::AlexaForBusiness::AlexaForBusinessRequest
Definition: AlexaForBusinessRequest.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::CreateContactRequest::WithPhoneNumbers
CreateContactRequest & WithPhoneNumbers(Aws::Vector< PhoneNumber > &&value)
Definition: CreateContactRequest.h:274
Aws::AlexaForBusiness::Model::CreateContactRequest::WithLastName
CreateContactRequest & WithLastName(const Aws::String &value)
Definition: CreateContactRequest.h:166
Aws::AlexaForBusiness::Model::CreateContactRequest::SetPhoneNumber
void SetPhoneNumber(const Aws::String &value)
Definition: CreateContactRequest.h:203
UUID.h
Aws::AlexaForBusiness::Model::CreateContactRequest::WithSipAddresses
CreateContactRequest & WithSipAddresses(Aws::Vector< SipAddress > &&value)
Definition: CreateContactRequest.h:315
Aws::AlexaForBusiness::Model::CreateContactRequest::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: CreateContactRequest.h:45
Aws::AlexaForBusiness::Model::CreateContactRequest::WithPhoneNumber
CreateContactRequest & WithPhoneNumber(Aws::String &&value)
Definition: CreateContactRequest.h:235
Aws::AlexaForBusiness::Model::CreateContactRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateContactRequest.h:399
Aws::AlexaForBusiness::Model::CreateContactRequest::WithDisplayName
CreateContactRequest & WithDisplayName(const Aws::String &value)
Definition: CreateContactRequest.h:70
Aws::AlexaForBusiness::Model::CreateContactRequest::WithFirstName
CreateContactRequest & WithFirstName(const char *value)
Definition: CreateContactRequest.h:129
AlexaForBusinessRequest.h
Aws::AlexaForBusiness::Model::CreateContactRequest::SetFirstName
void SetFirstName(const char *value)
Definition: CreateContactRequest.h:111
Aws::AlexaForBusiness::Model::CreateContactRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateContactRequest.h:338
Aws::AlexaForBusiness::Model::CreateContactRequest::WithLastName
CreateContactRequest & WithLastName(Aws::String &&value)
Definition: CreateContactRequest.h:172
Aws::AlexaForBusiness::Model::CreateContactRequest::WithPhoneNumbers
CreateContactRequest & WithPhoneNumbers(const Aws::Vector< PhoneNumber > &value)
Definition: CreateContactRequest.h:269