AWS SDK for C++  1.9.44
AWS SDK for C++
UpdateContactRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace AlexaForBusiness
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "UpdateContact"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetContactArn() const{ return m_contactArn; }
44 
48  inline bool ContactArnHasBeenSet() const { return m_contactArnHasBeenSet; }
49 
53  inline void SetContactArn(const Aws::String& value) { m_contactArnHasBeenSet = true; m_contactArn = value; }
54 
58  inline void SetContactArn(Aws::String&& value) { m_contactArnHasBeenSet = true; m_contactArn = std::move(value); }
59 
63  inline void SetContactArn(const char* value) { m_contactArnHasBeenSet = true; m_contactArn.assign(value); }
64 
68  inline UpdateContactRequest& WithContactArn(const Aws::String& value) { SetContactArn(value); return *this;}
69 
73  inline UpdateContactRequest& WithContactArn(Aws::String&& value) { SetContactArn(std::move(value)); return *this;}
74 
78  inline UpdateContactRequest& WithContactArn(const char* value) { SetContactArn(value); return *this;}
79 
80 
84  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
85 
89  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
90 
94  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
95 
99  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
100 
104  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
105 
109  inline UpdateContactRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
110 
114  inline UpdateContactRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
115 
119  inline UpdateContactRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
120 
121 
125  inline const Aws::String& GetFirstName() const{ return m_firstName; }
126 
130  inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
131 
135  inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
136 
140  inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); }
141 
145  inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); }
146 
150  inline UpdateContactRequest& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
151 
155  inline UpdateContactRequest& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;}
156 
160  inline UpdateContactRequest& WithFirstName(const char* value) { SetFirstName(value); return *this;}
161 
162 
166  inline const Aws::String& GetLastName() const{ return m_lastName; }
167 
171  inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
172 
176  inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
177 
181  inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); }
182 
186  inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); }
187 
191  inline UpdateContactRequest& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
192 
196  inline UpdateContactRequest& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;}
197 
201  inline UpdateContactRequest& WithLastName(const char* value) { SetLastName(value); return *this;}
202 
203 
210  inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
211 
218  inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
219 
226  inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
227 
234  inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
235 
242  inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
243 
250  inline UpdateContactRequest& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
251 
258  inline UpdateContactRequest& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
259 
266  inline UpdateContactRequest& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
267 
268 
272  inline const Aws::Vector<PhoneNumber>& GetPhoneNumbers() const{ return m_phoneNumbers; }
273 
277  inline bool PhoneNumbersHasBeenSet() const { return m_phoneNumbersHasBeenSet; }
278 
282  inline void SetPhoneNumbers(const Aws::Vector<PhoneNumber>& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers = value; }
283 
287  inline void SetPhoneNumbers(Aws::Vector<PhoneNumber>&& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers = std::move(value); }
288 
292  inline UpdateContactRequest& WithPhoneNumbers(const Aws::Vector<PhoneNumber>& value) { SetPhoneNumbers(value); return *this;}
293 
297  inline UpdateContactRequest& WithPhoneNumbers(Aws::Vector<PhoneNumber>&& value) { SetPhoneNumbers(std::move(value)); return *this;}
298 
302  inline UpdateContactRequest& AddPhoneNumbers(const PhoneNumber& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers.push_back(value); return *this; }
303 
307  inline UpdateContactRequest& AddPhoneNumbers(PhoneNumber&& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers.push_back(std::move(value)); return *this; }
308 
309 
313  inline const Aws::Vector<SipAddress>& GetSipAddresses() const{ return m_sipAddresses; }
314 
318  inline bool SipAddressesHasBeenSet() const { return m_sipAddressesHasBeenSet; }
319 
323  inline void SetSipAddresses(const Aws::Vector<SipAddress>& value) { m_sipAddressesHasBeenSet = true; m_sipAddresses = value; }
324 
328  inline void SetSipAddresses(Aws::Vector<SipAddress>&& value) { m_sipAddressesHasBeenSet = true; m_sipAddresses = std::move(value); }
329 
333  inline UpdateContactRequest& WithSipAddresses(const Aws::Vector<SipAddress>& value) { SetSipAddresses(value); return *this;}
334 
338  inline UpdateContactRequest& WithSipAddresses(Aws::Vector<SipAddress>&& value) { SetSipAddresses(std::move(value)); return *this;}
339 
343  inline UpdateContactRequest& AddSipAddresses(const SipAddress& value) { m_sipAddressesHasBeenSet = true; m_sipAddresses.push_back(value); return *this; }
344 
348  inline UpdateContactRequest& AddSipAddresses(SipAddress&& value) { m_sipAddressesHasBeenSet = true; m_sipAddresses.push_back(std::move(value)); return *this; }
349 
350  private:
351 
352  Aws::String m_contactArn;
353  bool m_contactArnHasBeenSet;
354 
355  Aws::String m_displayName;
356  bool m_displayNameHasBeenSet;
357 
358  Aws::String m_firstName;
359  bool m_firstNameHasBeenSet;
360 
361  Aws::String m_lastName;
362  bool m_lastNameHasBeenSet;
363 
364  Aws::String m_phoneNumber;
365  bool m_phoneNumberHasBeenSet;
366 
367  Aws::Vector<PhoneNumber> m_phoneNumbers;
368  bool m_phoneNumbersHasBeenSet;
369 
370  Aws::Vector<SipAddress> m_sipAddresses;
371  bool m_sipAddressesHasBeenSet;
372  };
373 
374 } // namespace Model
375 } // namespace AlexaForBusiness
376 } // namespace Aws
Aws::AlexaForBusiness::Model::UpdateContactRequest::GetContactArn
const Aws::String & GetContactArn() const
Definition: UpdateContactRequest.h:43
Aws::AlexaForBusiness::Model::UpdateContactRequest::LastNameHasBeenSet
bool LastNameHasBeenSet() const
Definition: UpdateContactRequest.h:171
Aws::AlexaForBusiness::Model::UpdateContactRequest::DisplayNameHasBeenSet
bool DisplayNameHasBeenSet() const
Definition: UpdateContactRequest.h:89
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithPhoneNumbers
UpdateContactRequest & WithPhoneNumbers(const Aws::Vector< PhoneNumber > &value)
Definition: UpdateContactRequest.h:292
Aws::AlexaForBusiness::Model::UpdateContactRequest::AddPhoneNumbers
UpdateContactRequest & AddPhoneNumbers(const PhoneNumber &value)
Definition: UpdateContactRequest.h:302
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithFirstName
UpdateContactRequest & WithFirstName(Aws::String &&value)
Definition: UpdateContactRequest.h:155
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithDisplayName
UpdateContactRequest & WithDisplayName(const char *value)
Definition: UpdateContactRequest.h:119
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: UpdateContactRequest.h:94
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithPhoneNumber
UpdateContactRequest & WithPhoneNumber(Aws::String &&value)
Definition: UpdateContactRequest.h:258
Aws::AlexaForBusiness::Model::UpdateContactRequest::GetLastName
const Aws::String & GetLastName() const
Definition: UpdateContactRequest.h:166
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithDisplayName
UpdateContactRequest & WithDisplayName(Aws::String &&value)
Definition: UpdateContactRequest.h:114
PhoneNumber.h
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetFirstName
void SetFirstName(const char *value)
Definition: UpdateContactRequest.h:145
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetContactArn
void SetContactArn(const Aws::String &value)
Definition: UpdateContactRequest.h:53
Aws::AlexaForBusiness::Model::UpdateContactRequest::GetPhoneNumbers
const Aws::Vector< PhoneNumber > & GetPhoneNumbers() const
Definition: UpdateContactRequest.h:272
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithLastName
UpdateContactRequest & WithLastName(const Aws::String &value)
Definition: UpdateContactRequest.h:191
Aws::AlexaForBusiness::Model::UpdateContactRequest::PhoneNumbersHasBeenSet
bool PhoneNumbersHasBeenSet() const
Definition: UpdateContactRequest.h:277
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithFirstName
UpdateContactRequest & WithFirstName(const Aws::String &value)
Definition: UpdateContactRequest.h:150
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithContactArn
UpdateContactRequest & WithContactArn(const char *value)
Definition: UpdateContactRequest.h:78
Aws::AlexaForBusiness::Model::UpdateContactRequest::GetSipAddresses
const Aws::Vector< SipAddress > & GetSipAddresses() const
Definition: UpdateContactRequest.h:313
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithFirstName
UpdateContactRequest & WithFirstName(const char *value)
Definition: UpdateContactRequest.h:160
AWSVector.h
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithSipAddresses
UpdateContactRequest & WithSipAddresses(Aws::Vector< SipAddress > &&value)
Definition: UpdateContactRequest.h:338
Aws::AlexaForBusiness::Model::UpdateContactRequest::AddSipAddresses
UpdateContactRequest & AddSipAddresses(const SipAddress &value)
Definition: UpdateContactRequest.h:343
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetPhoneNumber
void SetPhoneNumber(const Aws::String &value)
Definition: UpdateContactRequest.h:226
Aws::AlexaForBusiness::Model::UpdateContactRequest::FirstNameHasBeenSet
bool FirstNameHasBeenSet() const
Definition: UpdateContactRequest.h:130
Aws::AlexaForBusiness::Model::PhoneNumber
Definition: PhoneNumber.h:34
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithPhoneNumbers
UpdateContactRequest & WithPhoneNumbers(Aws::Vector< PhoneNumber > &&value)
Definition: UpdateContactRequest.h:297
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithLastName
UpdateContactRequest & WithLastName(Aws::String &&value)
Definition: UpdateContactRequest.h:196
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetContactArn
void SetContactArn(Aws::String &&value)
Definition: UpdateContactRequest.h:58
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::UpdateContactRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithContactArn
UpdateContactRequest & WithContactArn(const Aws::String &value)
Definition: UpdateContactRequest.h:68
Aws::AlexaForBusiness::Model::UpdateContactRequest::GetFirstName
const Aws::String & GetFirstName() const
Definition: UpdateContactRequest.h:125
Aws::AlexaForBusiness::Model::UpdateContactRequest
Definition: UpdateContactRequest.h:25
Aws::AlexaForBusiness::Model::UpdateContactRequest::SipAddressesHasBeenSet
bool SipAddressesHasBeenSet() const
Definition: UpdateContactRequest.h:318
AWSString.h
Aws::AlexaForBusiness::Model::UpdateContactRequest::UpdateContactRequest
UpdateContactRequest()
Aws::AlexaForBusiness::Model::UpdateContactRequest::ContactArnHasBeenSet
bool ContactArnHasBeenSet() const
Definition: UpdateContactRequest.h:48
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithPhoneNumber
UpdateContactRequest & WithPhoneNumber(const char *value)
Definition: UpdateContactRequest.h:266
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetPhoneNumbers
void SetPhoneNumbers(const Aws::Vector< PhoneNumber > &value)
Definition: UpdateContactRequest.h:282
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetFirstName
void SetFirstName(Aws::String &&value)
Definition: UpdateContactRequest.h:140
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetPhoneNumbers
void SetPhoneNumbers(Aws::Vector< PhoneNumber > &&value)
Definition: UpdateContactRequest.h:287
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithSipAddresses
UpdateContactRequest & WithSipAddresses(const Aws::Vector< SipAddress > &value)
Definition: UpdateContactRequest.h:333
Aws::AlexaForBusiness::Model::UpdateContactRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetLastName
void SetLastName(const Aws::String &value)
Definition: UpdateContactRequest.h:176
Aws::AlexaForBusiness::Model::UpdateContactRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateContactRequest.h:33
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetPhoneNumber
void SetPhoneNumber(Aws::String &&value)
Definition: UpdateContactRequest.h:234
AlexaForBusiness_EXPORTS.h
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetSipAddresses
void SetSipAddresses(Aws::Vector< SipAddress > &&value)
Definition: UpdateContactRequest.h:328
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithLastName
UpdateContactRequest & WithLastName(const char *value)
Definition: UpdateContactRequest.h:201
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithContactArn
UpdateContactRequest & WithContactArn(Aws::String &&value)
Definition: UpdateContactRequest.h:73
Aws::AlexaForBusiness::Model::SipAddress
Definition: SipAddress.h:34
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetDisplayName
void SetDisplayName(const char *value)
Definition: UpdateContactRequest.h:104
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetLastName
void SetLastName(Aws::String &&value)
Definition: UpdateContactRequest.h:181
SipAddress.h
Aws
Definition: AccessManagementClient.h:15
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithDisplayName
UpdateContactRequest & WithDisplayName(const Aws::String &value)
Definition: UpdateContactRequest.h:109
Aws::AlexaForBusiness::AlexaForBusinessRequest
Definition: AlexaForBusinessRequest.h:17
Aws::AlexaForBusiness::Model::UpdateContactRequest::GetPhoneNumber
const Aws::String & GetPhoneNumber() const
Definition: UpdateContactRequest.h:210
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetSipAddresses
void SetSipAddresses(const Aws::Vector< SipAddress > &value)
Definition: UpdateContactRequest.h:323
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetLastName
void SetLastName(const char *value)
Definition: UpdateContactRequest.h:186
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetFirstName
void SetFirstName(const Aws::String &value)
Definition: UpdateContactRequest.h:135
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetPhoneNumber
void SetPhoneNumber(const char *value)
Definition: UpdateContactRequest.h:242
Aws::AlexaForBusiness::Model::UpdateContactRequest::PhoneNumberHasBeenSet
bool PhoneNumberHasBeenSet() const
Definition: UpdateContactRequest.h:218
Aws::AlexaForBusiness::Model::UpdateContactRequest::AddPhoneNumbers
UpdateContactRequest & AddPhoneNumbers(PhoneNumber &&value)
Definition: UpdateContactRequest.h:307
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetContactArn
void SetContactArn(const char *value)
Definition: UpdateContactRequest.h:63
Aws::AlexaForBusiness::Model::UpdateContactRequest::WithPhoneNumber
UpdateContactRequest & WithPhoneNumber(const Aws::String &value)
Definition: UpdateContactRequest.h:250
Aws::AlexaForBusiness::Model::UpdateContactRequest::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: UpdateContactRequest.h:84
AlexaForBusinessRequest.h
Aws::AlexaForBusiness::Model::UpdateContactRequest::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: UpdateContactRequest.h:99
Aws::AlexaForBusiness::Model::UpdateContactRequest::AddSipAddresses
UpdateContactRequest & AddSipAddresses(SipAddress &&value)
Definition: UpdateContactRequest.h:348