AWS SDK for C++  1.9.14
AWS SDK for C++
StaticIp.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 Lightsail
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetName() const{ return m_name; }
47 
51  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 
56  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 
61  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 
66  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 
71  inline StaticIp& WithName(const Aws::String& value) { SetName(value); return *this;}
72 
76  inline StaticIp& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
77 
81  inline StaticIp& WithName(const char* value) { SetName(value); return *this;}
82 
83 
88  inline const Aws::String& GetArn() const{ return m_arn; }
89 
94  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
95 
100  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
101 
106  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
107 
112  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
113 
118  inline StaticIp& WithArn(const Aws::String& value) { SetArn(value); return *this;}
119 
124  inline StaticIp& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
125 
130  inline StaticIp& WithArn(const char* value) { SetArn(value); return *this;}
131 
132 
138  inline const Aws::String& GetSupportCode() const{ return m_supportCode; }
139 
145  inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
146 
152  inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; }
153 
159  inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); }
160 
166  inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); }
167 
173  inline StaticIp& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;}
174 
180  inline StaticIp& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;}
181 
187  inline StaticIp& WithSupportCode(const char* value) { SetSupportCode(value); return *this;}
188 
189 
194  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
195 
200  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
201 
206  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
207 
212  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
213 
218  inline StaticIp& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
219 
224  inline StaticIp& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
225 
226 
230  inline const ResourceLocation& GetLocation() const{ return m_location; }
231 
235  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
236 
240  inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
241 
245  inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
246 
250  inline StaticIp& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
251 
255  inline StaticIp& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
256 
257 
261  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
262 
266  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
267 
271  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
272 
276  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
277 
281  inline StaticIp& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
282 
286  inline StaticIp& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
287 
288 
292  inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
293 
297  inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
298 
302  inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
303 
307  inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
308 
312  inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
313 
317  inline StaticIp& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
318 
322  inline StaticIp& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
323 
327  inline StaticIp& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
328 
329 
334  inline const Aws::String& GetAttachedTo() const{ return m_attachedTo; }
335 
340  inline bool AttachedToHasBeenSet() const { return m_attachedToHasBeenSet; }
341 
346  inline void SetAttachedTo(const Aws::String& value) { m_attachedToHasBeenSet = true; m_attachedTo = value; }
347 
352  inline void SetAttachedTo(Aws::String&& value) { m_attachedToHasBeenSet = true; m_attachedTo = std::move(value); }
353 
358  inline void SetAttachedTo(const char* value) { m_attachedToHasBeenSet = true; m_attachedTo.assign(value); }
359 
364  inline StaticIp& WithAttachedTo(const Aws::String& value) { SetAttachedTo(value); return *this;}
365 
370  inline StaticIp& WithAttachedTo(Aws::String&& value) { SetAttachedTo(std::move(value)); return *this;}
371 
376  inline StaticIp& WithAttachedTo(const char* value) { SetAttachedTo(value); return *this;}
377 
378 
382  inline bool GetIsAttached() const{ return m_isAttached; }
383 
387  inline bool IsAttachedHasBeenSet() const { return m_isAttachedHasBeenSet; }
388 
392  inline void SetIsAttached(bool value) { m_isAttachedHasBeenSet = true; m_isAttached = value; }
393 
397  inline StaticIp& WithIsAttached(bool value) { SetIsAttached(value); return *this;}
398 
399  private:
400 
401  Aws::String m_name;
402  bool m_nameHasBeenSet;
403 
404  Aws::String m_arn;
405  bool m_arnHasBeenSet;
406 
407  Aws::String m_supportCode;
408  bool m_supportCodeHasBeenSet;
409 
410  Aws::Utils::DateTime m_createdAt;
411  bool m_createdAtHasBeenSet;
412 
413  ResourceLocation m_location;
414  bool m_locationHasBeenSet;
415 
416  ResourceType m_resourceType;
417  bool m_resourceTypeHasBeenSet;
418 
419  Aws::String m_ipAddress;
420  bool m_ipAddressHasBeenSet;
421 
422  Aws::String m_attachedTo;
423  bool m_attachedToHasBeenSet;
424 
425  bool m_isAttached;
426  bool m_isAttachedHasBeenSet;
427  };
428 
429 } // namespace Model
430 } // namespace Lightsail
431 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::StaticIp::WithIpAddress
StaticIp & WithIpAddress(Aws::String &&value)
Definition: StaticIp.h:322
Aws::Lightsail::Model::StaticIp::WithIpAddress
StaticIp & WithIpAddress(const Aws::String &value)
Definition: StaticIp.h:317
Aws::Lightsail::Model::StaticIp::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: StaticIp.h:212
ResourceType.h
Aws::Lightsail::Model::StaticIp::SetArn
void SetArn(const char *value)
Definition: StaticIp.h:112
Aws::Lightsail::Model::StaticIp::SetName
void SetName(Aws::String &&value)
Definition: StaticIp.h:61
Aws::Lightsail::Model::StaticIp::SetIpAddress
void SetIpAddress(const char *value)
Definition: StaticIp.h:312
Aws::Lightsail::Model::StaticIp
Definition: StaticIp.h:35
Aws::Lightsail::Model::StaticIp::IsAttachedHasBeenSet
bool IsAttachedHasBeenSet() const
Definition: StaticIp.h:387
Aws::Lightsail::Model::StaticIp::IpAddressHasBeenSet
bool IpAddressHasBeenSet() const
Definition: StaticIp.h:297
Aws::Lightsail::Model::StaticIp::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: StaticIp.h:271
Aws::Lightsail::Model::StaticIp::WithName
StaticIp & WithName(Aws::String &&value)
Definition: StaticIp.h:76
DateTime.h
Aws::Lightsail::Model::StaticIp::WithArn
StaticIp & WithArn(const Aws::String &value)
Definition: StaticIp.h:118
Aws::Lightsail::Model::StaticIp::GetArn
const Aws::String & GetArn() const
Definition: StaticIp.h:88
Aws::Lightsail::Model::StaticIp::SetSupportCode
void SetSupportCode(const char *value)
Definition: StaticIp.h:166
Aws::Lightsail::Model::StaticIp::SetArn
void SetArn(Aws::String &&value)
Definition: StaticIp.h:106
Aws::Lightsail::Model::StaticIp::GetIsAttached
bool GetIsAttached() const
Definition: StaticIp.h:382
Aws::Lightsail::Model::StaticIp::NameHasBeenSet
bool NameHasBeenSet() const
Definition: StaticIp.h:51
Aws::Lightsail::Model::StaticIp::WithLocation
StaticIp & WithLocation(const ResourceLocation &value)
Definition: StaticIp.h:250
Aws::Lightsail::Model::StaticIp::WithCreatedAt
StaticIp & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: StaticIp.h:224
Aws::Lightsail::Model::StaticIp::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: StaticIp.h:276
Aws::Lightsail::Model::StaticIp::SetName
void SetName(const Aws::String &value)
Definition: StaticIp.h:56
Aws::Lightsail::Model::StaticIp::SetArn
void SetArn(const Aws::String &value)
Definition: StaticIp.h:100
Aws::Lightsail::Model::StaticIp::StaticIp
StaticIp(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::StaticIp::SetLocation
void SetLocation(const ResourceLocation &value)
Definition: StaticIp.h:240
Aws::Lightsail::Model::StaticIp::WithIpAddress
StaticIp & WithIpAddress(const char *value)
Definition: StaticIp.h:327
Aws::Lightsail::Model::StaticIp::WithArn
StaticIp & WithArn(const char *value)
Definition: StaticIp.h:130
Aws::Lightsail::Model::StaticIp::operator=
StaticIp & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::StaticIp::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: StaticIp.h:266
Aws::Lightsail::Model::StaticIp::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: StaticIp.h:194
Aws::Lightsail::Model::StaticIp::SupportCodeHasBeenSet
bool SupportCodeHasBeenSet() const
Definition: StaticIp.h:145
Aws::Lightsail::Model::StaticIp::GetIpAddress
const Aws::String & GetIpAddress() const
Definition: StaticIp.h:292
Aws::Lightsail::Model::StaticIp::AttachedToHasBeenSet
bool AttachedToHasBeenSet() const
Definition: StaticIp.h:340
Aws::Lightsail::Model::StaticIp::SetAttachedTo
void SetAttachedTo(Aws::String &&value)
Definition: StaticIp.h:352
Aws::Lightsail::Model::StaticIp::WithName
StaticIp & WithName(const char *value)
Definition: StaticIp.h:81
Aws::Lightsail::Model::StaticIp::WithSupportCode
StaticIp & WithSupportCode(const Aws::String &value)
Definition: StaticIp.h:173
Aws::Lightsail::Model::StaticIp::GetLocation
const ResourceLocation & GetLocation() const
Definition: StaticIp.h:230
Aws::Lightsail::Model::StaticIp::WithSupportCode
StaticIp & WithSupportCode(const char *value)
Definition: StaticIp.h:187
Aws::Lightsail::Model::StaticIp::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: StaticIp.h:206
Aws::Lightsail::Model::ResourceLocation
Definition: ResourceLocation.h:33
Aws::Lightsail::Model::StaticIp::SetAttachedTo
void SetAttachedTo(const Aws::String &value)
Definition: StaticIp.h:346
Aws::Lightsail::Model::StaticIp::WithAttachedTo
StaticIp & WithAttachedTo(const char *value)
Definition: StaticIp.h:376
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Lightsail::Model::StaticIp::WithArn
StaticIp & WithArn(Aws::String &&value)
Definition: StaticIp.h:124
Aws::Lightsail::Model::StaticIp::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: StaticIp.h:200
Aws::Lightsail::Model::StaticIp::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: StaticIp.h:94
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::StaticIp::GetName
const Aws::String & GetName() const
Definition: StaticIp.h:46
Aws::Lightsail::Model::StaticIp::SetName
void SetName(const char *value)
Definition: StaticIp.h:66
Aws::Lightsail::Model::StaticIp::WithName
StaticIp & WithName(const Aws::String &value)
Definition: StaticIp.h:71
Aws::Lightsail::Model::StaticIp::GetResourceType
const ResourceType & GetResourceType() const
Definition: StaticIp.h:261
Aws::Lightsail::Model::StaticIp::SetIpAddress
void SetIpAddress(Aws::String &&value)
Definition: StaticIp.h:307
Aws::Lightsail::Model::StaticIp::SetSupportCode
void SetSupportCode(Aws::String &&value)
Definition: StaticIp.h:159
Lightsail_EXPORTS.h
Aws::Lightsail::Model::StaticIp::WithSupportCode
StaticIp & WithSupportCode(Aws::String &&value)
Definition: StaticIp.h:180
Aws::Lightsail::Model::StaticIp::SetAttachedTo
void SetAttachedTo(const char *value)
Definition: StaticIp.h:358
Aws::Lightsail::Model::StaticIp::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
ResourceLocation.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::StaticIp::WithLocation
StaticIp & WithLocation(ResourceLocation &&value)
Definition: StaticIp.h:255
Aws::Lightsail::Model::StaticIp::SetSupportCode
void SetSupportCode(const Aws::String &value)
Definition: StaticIp.h:152
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::StaticIp::StaticIp
StaticIp()
Aws::Lightsail::Model::StaticIp::WithCreatedAt
StaticIp & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: StaticIp.h:218
Aws::Lightsail::Model::StaticIp::SetLocation
void SetLocation(ResourceLocation &&value)
Definition: StaticIp.h:245
Aws::Lightsail::Model::StaticIp::WithResourceType
StaticIp & WithResourceType(const ResourceType &value)
Definition: StaticIp.h:281
Aws::Lightsail::Model::StaticIp::WithIsAttached
StaticIp & WithIsAttached(bool value)
Definition: StaticIp.h:397
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::StaticIp::SetIpAddress
void SetIpAddress(const Aws::String &value)
Definition: StaticIp.h:302
Aws::Lightsail::Model::StaticIp::WithAttachedTo
StaticIp & WithAttachedTo(const Aws::String &value)
Definition: StaticIp.h:364
Aws::Lightsail::Model::StaticIp::WithResourceType
StaticIp & WithResourceType(ResourceType &&value)
Definition: StaticIp.h:286
Aws::Lightsail::Model::StaticIp::WithAttachedTo
StaticIp & WithAttachedTo(Aws::String &&value)
Definition: StaticIp.h:370
Aws::Lightsail::Model::StaticIp::SetIsAttached
void SetIsAttached(bool value)
Definition: StaticIp.h:392
Aws::Lightsail::Model::StaticIp::GetSupportCode
const Aws::String & GetSupportCode() const
Definition: StaticIp.h:138
Aws::Lightsail::Model::StaticIp::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: StaticIp.h:235
Aws::Lightsail::Model::StaticIp::GetAttachedTo
const Aws::String & GetAttachedTo() const
Definition: StaticIp.h:334