AWS SDK for C++  1.9.108
AWS SDK for C++
ContactMethod.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace Lightsail
27 {
28 namespace Model
29 {
30 
40  {
41  public:
46 
47 
52  inline const Aws::String& GetContactEndpoint() const{ return m_contactEndpoint; }
53 
58  inline bool ContactEndpointHasBeenSet() const { return m_contactEndpointHasBeenSet; }
59 
64  inline void SetContactEndpoint(const Aws::String& value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint = value; }
65 
70  inline void SetContactEndpoint(Aws::String&& value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint = std::move(value); }
71 
76  inline void SetContactEndpoint(const char* value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint.assign(value); }
77 
82  inline ContactMethod& WithContactEndpoint(const Aws::String& value) { SetContactEndpoint(value); return *this;}
83 
88  inline ContactMethod& WithContactEndpoint(Aws::String&& value) { SetContactEndpoint(std::move(value)); return *this;}
89 
94  inline ContactMethod& WithContactEndpoint(const char* value) { SetContactEndpoint(value); return *this;}
95 
96 
105  inline const ContactMethodStatus& GetStatus() const{ return m_status; }
106 
115  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 
125  inline void SetStatus(const ContactMethodStatus& value) { m_statusHasBeenSet = true; m_status = value; }
126 
135  inline void SetStatus(ContactMethodStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
136 
145  inline ContactMethod& WithStatus(const ContactMethodStatus& value) { SetStatus(value); return *this;}
146 
155  inline ContactMethod& WithStatus(ContactMethodStatus&& value) { SetStatus(std::move(value)); return *this;}
156 
157 
162  inline const ContactProtocol& GetProtocol() const{ return m_protocol; }
163 
168  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
169 
174  inline void SetProtocol(const ContactProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
175 
180  inline void SetProtocol(ContactProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
181 
186  inline ContactMethod& WithProtocol(const ContactProtocol& value) { SetProtocol(value); return *this;}
187 
192  inline ContactMethod& WithProtocol(ContactProtocol&& value) { SetProtocol(std::move(value)); return *this;}
193 
194 
198  inline const Aws::String& GetName() const{ return m_name; }
199 
203  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
204 
208  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
209 
213  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
214 
218  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
219 
223  inline ContactMethod& WithName(const Aws::String& value) { SetName(value); return *this;}
224 
228  inline ContactMethod& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
229 
233  inline ContactMethod& WithName(const char* value) { SetName(value); return *this;}
234 
235 
239  inline const Aws::String& GetArn() const{ return m_arn; }
240 
244  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
245 
249  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
250 
254  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
255 
259  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
260 
264  inline ContactMethod& WithArn(const Aws::String& value) { SetArn(value); return *this;}
265 
269  inline ContactMethod& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
270 
274  inline ContactMethod& WithArn(const char* value) { SetArn(value); return *this;}
275 
276 
280  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
281 
285  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
286 
290  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
291 
295  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
296 
300  inline ContactMethod& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
301 
305  inline ContactMethod& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
306 
307 
308 
309  inline const ResourceLocation& GetLocation() const{ return m_location; }
310 
311 
312  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
313 
314 
315  inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
316 
317 
318  inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
319 
320 
321  inline ContactMethod& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
322 
323 
324  inline ContactMethod& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
325 
326 
330  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
331 
335  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
336 
340  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
341 
345  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
346 
350  inline ContactMethod& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
351 
355  inline ContactMethod& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
356 
357 
363  inline const Aws::String& GetSupportCode() const{ return m_supportCode; }
364 
370  inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
371 
377  inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; }
378 
384  inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); }
385 
391  inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); }
392 
398  inline ContactMethod& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;}
399 
405  inline ContactMethod& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;}
406 
412  inline ContactMethod& WithSupportCode(const char* value) { SetSupportCode(value); return *this;}
413 
414  private:
415 
416  Aws::String m_contactEndpoint;
417  bool m_contactEndpointHasBeenSet;
418 
419  ContactMethodStatus m_status;
420  bool m_statusHasBeenSet;
421 
422  ContactProtocol m_protocol;
423  bool m_protocolHasBeenSet;
424 
425  Aws::String m_name;
426  bool m_nameHasBeenSet;
427 
428  Aws::String m_arn;
429  bool m_arnHasBeenSet;
430 
431  Aws::Utils::DateTime m_createdAt;
432  bool m_createdAtHasBeenSet;
433 
434  ResourceLocation m_location;
435  bool m_locationHasBeenSet;
436 
437  ResourceType m_resourceType;
438  bool m_resourceTypeHasBeenSet;
439 
440  Aws::String m_supportCode;
441  bool m_supportCodeHasBeenSet;
442  };
443 
444 } // namespace Model
445 } // namespace Lightsail
446 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::ContactMethod::WithSupportCode
ContactMethod & WithSupportCode(Aws::String &&value)
Definition: ContactMethod.h:405
Aws::Lightsail::Model::ContactMethod::WithStatus
ContactMethod & WithStatus(ContactMethodStatus &&value)
Definition: ContactMethod.h:155
Aws::Lightsail::Model::ContactMethod::WithLocation
ContactMethod & WithLocation(const ResourceLocation &value)
Definition: ContactMethod.h:321
ResourceType.h
Aws::Lightsail::Model::ContactMethod::SetContactEndpoint
void SetContactEndpoint(const char *value)
Definition: ContactMethod.h:76
Aws::Lightsail::Model::ContactMethod::SupportCodeHasBeenSet
bool SupportCodeHasBeenSet() const
Definition: ContactMethod.h:370
Aws::Lightsail::Model::ContactMethod::WithStatus
ContactMethod & WithStatus(const ContactMethodStatus &value)
Definition: ContactMethod.h:145
Aws::Lightsail::Model::ContactMethod::SetSupportCode
void SetSupportCode(Aws::String &&value)
Definition: ContactMethod.h:384
Aws::Lightsail::Model::ContactMethod::GetProtocol
const ContactProtocol & GetProtocol() const
Definition: ContactMethod.h:162
Aws::Lightsail::Model::ContactMethod::WithProtocol
ContactMethod & WithProtocol(const ContactProtocol &value)
Definition: ContactMethod.h:186
ContactProtocol.h
Aws::Lightsail::Model::ContactMethod::SetName
void SetName(Aws::String &&value)
Definition: ContactMethod.h:213
Aws::Lightsail::Model::ContactMethod::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: ContactMethod.h:340
Aws::Lightsail::Model::ContactMethod::SetArn
void SetArn(const Aws::String &value)
Definition: ContactMethod.h:249
Aws::Lightsail::Model::ContactMethod::SetName
void SetName(const Aws::String &value)
Definition: ContactMethod.h:208
Aws::Lightsail::Model::ContactMethod::WithResourceType
ContactMethod & WithResourceType(ResourceType &&value)
Definition: ContactMethod.h:355
Aws::Lightsail::Model::ContactMethod::ContactMethod
ContactMethod(Aws::Utils::Json::JsonView jsonValue)
DateTime.h
Aws::Lightsail::Model::ContactMethod::WithContactEndpoint
ContactMethod & WithContactEndpoint(const char *value)
Definition: ContactMethod.h:94
Aws::Lightsail::Model::ContactMethod::GetArn
const Aws::String & GetArn() const
Definition: ContactMethod.h:239
Aws::Lightsail::Model::ContactMethod::SetLocation
void SetLocation(ResourceLocation &&value)
Definition: ContactMethod.h:318
Aws::Lightsail::Model::ContactMethod::SetContactEndpoint
void SetContactEndpoint(Aws::String &&value)
Definition: ContactMethod.h:70
Aws::Lightsail::Model::ContactMethod::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: ContactMethod.h:312
Aws::Lightsail::Model::ContactMethod::WithCreatedAt
ContactMethod & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: ContactMethod.h:300
Aws::Lightsail::Model::ContactMethod::operator=
ContactMethod & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ContactMethod::SetStatus
void SetStatus(ContactMethodStatus &&value)
Definition: ContactMethod.h:135
Aws::Lightsail::Model::ContactMethod::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ContactMethod.h:115
Aws::Lightsail::Model::ContactMethod::SetStatus
void SetStatus(const ContactMethodStatus &value)
Definition: ContactMethod.h:125
Aws::Lightsail::Model::ContactMethod::SetLocation
void SetLocation(const ResourceLocation &value)
Definition: ContactMethod.h:315
Aws::Lightsail::Model::ContactMethod::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::ContactMethod::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: ContactMethod.h:295
Aws::Lightsail::Model::ContactMethodStatus
ContactMethodStatus
Definition: ContactMethodStatus.h:17
Aws::Lightsail::Model::ResourceLocation
Definition: ResourceLocation.h:33
Aws::Lightsail::Model::ContactMethod::SetArn
void SetArn(const char *value)
Definition: ContactMethod.h:259
Aws::Lightsail::Model::ContactMethod::SetProtocol
void SetProtocol(const ContactProtocol &value)
Definition: ContactMethod.h:174
Aws::Lightsail::Model::ContactMethod::WithName
ContactMethod & WithName(Aws::String &&value)
Definition: ContactMethod.h:228
Aws::Lightsail::Model::ContactMethod::WithSupportCode
ContactMethod & WithSupportCode(const Aws::String &value)
Definition: ContactMethod.h:398
Aws::Lightsail::Model::ContactMethod::WithContactEndpoint
ContactMethod & WithContactEndpoint(const Aws::String &value)
Definition: ContactMethod.h:82
Aws::Lightsail::Model::ContactMethod::SetContactEndpoint
void SetContactEndpoint(const Aws::String &value)
Definition: ContactMethod.h:64
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Lightsail::Model::ContactMethod::WithSupportCode
ContactMethod & WithSupportCode(const char *value)
Definition: ContactMethod.h:412
AWSString.h
Aws::Lightsail::Model::ContactMethod::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: ContactMethod.h:280
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
ContactMethodStatus.h
Aws::Lightsail::Model::ContactMethod::WithName
ContactMethod & WithName(const char *value)
Definition: ContactMethod.h:233
Lightsail_EXPORTS.h
Aws::Lightsail::Model::ContactMethod::SetProtocol
void SetProtocol(ContactProtocol &&value)
Definition: ContactMethod.h:180
Aws::Lightsail::Model::ContactMethod::WithArn
ContactMethod & WithArn(const char *value)
Definition: ContactMethod.h:274
Aws::Lightsail::Model::ContactMethod::GetResourceType
const ResourceType & GetResourceType() const
Definition: ContactMethod.h:330
Aws::Lightsail::Model::ContactMethod::ContactEndpointHasBeenSet
bool ContactEndpointHasBeenSet() const
Definition: ContactMethod.h:58
Aws::Lightsail::Model::ContactMethod::WithCreatedAt
ContactMethod & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: ContactMethod.h:305
Aws::Lightsail::Model::ContactMethod::WithProtocol
ContactMethod & WithProtocol(ContactProtocol &&value)
Definition: ContactMethod.h:192
Aws::Lightsail::Model::ContactMethod::WithContactEndpoint
ContactMethod & WithContactEndpoint(Aws::String &&value)
Definition: ContactMethod.h:88
Aws::Lightsail::Model::ContactMethod::WithResourceType
ContactMethod & WithResourceType(const ResourceType &value)
Definition: ContactMethod.h:350
Aws::Lightsail::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
ResourceLocation.h
Aws::Lightsail::Model::ContactMethod::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: ContactMethod.h:290
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::ContactMethod::GetStatus
const ContactMethodStatus & GetStatus() const
Definition: ContactMethod.h:105
Aws::Lightsail::Model::ContactMethod::GetName
const Aws::String & GetName() const
Definition: ContactMethod.h:198
Aws::Lightsail::Model::ContactMethod::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ContactMethod.h:203
Aws::Lightsail::Model::ContactMethod::ContactMethod
ContactMethod()
Aws::Lightsail::Model::ContactMethod::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: ContactMethod.h:345
Aws::Lightsail::Model::ContactMethod::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: ContactMethod.h:335
Aws::Lightsail::Model::ContactMethod::SetArn
void SetArn(Aws::String &&value)
Definition: ContactMethod.h:254
Aws::Lightsail::Model::ContactMethod::SetName
void SetName(const char *value)
Definition: ContactMethod.h:218
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::ContactMethod::WithName
ContactMethod & WithName(const Aws::String &value)
Definition: ContactMethod.h:223
Aws::Lightsail::Model::ContactMethod::WithArn
ContactMethod & WithArn(Aws::String &&value)
Definition: ContactMethod.h:269
Aws::Lightsail::Model::ContactMethod::GetLocation
const ResourceLocation & GetLocation() const
Definition: ContactMethod.h:309
Aws::Lightsail::Model::ContactMethod::SetSupportCode
void SetSupportCode(const Aws::String &value)
Definition: ContactMethod.h:377
Aws::Lightsail::Model::ContactMethod::WithLocation
ContactMethod & WithLocation(ResourceLocation &&value)
Definition: ContactMethod.h:324
Aws::Lightsail::Model::ContactMethod::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: ContactMethod.h:244
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::ContactMethod::SetSupportCode
void SetSupportCode(const char *value)
Definition: ContactMethod.h:391
Aws::Lightsail::Model::ContactMethod::GetContactEndpoint
const Aws::String & GetContactEndpoint() const
Definition: ContactMethod.h:52
Aws::Lightsail::Model::ContactMethod
Definition: ContactMethod.h:40
Aws::Lightsail::Model::ContactMethod::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: ContactMethod.h:285
Aws::Lightsail::Model::ContactMethod::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: ContactMethod.h:168
Aws::Lightsail::Model::ContactMethod::WithArn
ContactMethod & WithArn(const Aws::String &value)
Definition: ContactMethod.h:264
Aws::Lightsail::Model::ContactProtocol
ContactProtocol
Definition: ContactProtocol.h:17
Aws::Lightsail::Model::ContactMethod::GetSupportCode
const Aws::String & GetSupportCode() const
Definition: ContactMethod.h:363