AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StaticIp.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_LIGHTSAIL_API StaticIp();
38 AWS_LIGHTSAIL_API StaticIp(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LIGHTSAIL_API StaticIp& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline StaticIp& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline StaticIp& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline StaticIp& WithName(const char* value) { SetName(value); return *this;}
56
58
62 inline const Aws::String& GetArn() const{ return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
65 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
66 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
67 inline StaticIp& WithArn(const Aws::String& value) { SetArn(value); return *this;}
68 inline StaticIp& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
69 inline StaticIp& WithArn(const char* value) { SetArn(value); return *this;}
71
73
78 inline const Aws::String& GetSupportCode() const{ return m_supportCode; }
79 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
80 inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; }
81 inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); }
82 inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); }
83 inline StaticIp& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;}
84 inline StaticIp& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;}
85 inline StaticIp& WithSupportCode(const char* value) { SetSupportCode(value); return *this;}
87
89
93 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
96 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
97 inline StaticIp& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
98 inline StaticIp& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
100
102
105 inline const ResourceLocation& GetLocation() const{ return m_location; }
106 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
107 inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
108 inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
109 inline StaticIp& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
110 inline StaticIp& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
112
114
117 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
118 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
119 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
120 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
121 inline StaticIp& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
122 inline StaticIp& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
124
126
129 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
130 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
131 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
132 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
133 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
134 inline StaticIp& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
135 inline StaticIp& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
136 inline StaticIp& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
138
140
144 inline const Aws::String& GetAttachedTo() const{ return m_attachedTo; }
145 inline bool AttachedToHasBeenSet() const { return m_attachedToHasBeenSet; }
146 inline void SetAttachedTo(const Aws::String& value) { m_attachedToHasBeenSet = true; m_attachedTo = value; }
147 inline void SetAttachedTo(Aws::String&& value) { m_attachedToHasBeenSet = true; m_attachedTo = std::move(value); }
148 inline void SetAttachedTo(const char* value) { m_attachedToHasBeenSet = true; m_attachedTo.assign(value); }
149 inline StaticIp& WithAttachedTo(const Aws::String& value) { SetAttachedTo(value); return *this;}
150 inline StaticIp& WithAttachedTo(Aws::String&& value) { SetAttachedTo(std::move(value)); return *this;}
151 inline StaticIp& WithAttachedTo(const char* value) { SetAttachedTo(value); return *this;}
153
155
158 inline bool GetIsAttached() const{ return m_isAttached; }
159 inline bool IsAttachedHasBeenSet() const { return m_isAttachedHasBeenSet; }
160 inline void SetIsAttached(bool value) { m_isAttachedHasBeenSet = true; m_isAttached = value; }
161 inline StaticIp& WithIsAttached(bool value) { SetIsAttached(value); return *this;}
163 private:
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 Aws::String m_arn;
169 bool m_arnHasBeenSet = false;
170
171 Aws::String m_supportCode;
172 bool m_supportCodeHasBeenSet = false;
173
174 Aws::Utils::DateTime m_createdAt;
175 bool m_createdAtHasBeenSet = false;
176
177 ResourceLocation m_location;
178 bool m_locationHasBeenSet = false;
179
180 ResourceType m_resourceType;
181 bool m_resourceTypeHasBeenSet = false;
182
183 Aws::String m_ipAddress;
184 bool m_ipAddressHasBeenSet = false;
185
186 Aws::String m_attachedTo;
187 bool m_attachedToHasBeenSet = false;
188
189 bool m_isAttached;
190 bool m_isAttachedHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace Lightsail
195} // namespace Aws
void SetIpAddress(Aws::String &&value)
Definition StaticIp.h:132
StaticIp & WithArn(Aws::String &&value)
Definition StaticIp.h:68
StaticIp & WithLocation(ResourceLocation &&value)
Definition StaticIp.h:110
StaticIp & WithName(const Aws::String &value)
Definition StaticIp.h:52
const Aws::String & GetSupportCode() const
Definition StaticIp.h:78
StaticIp & WithSupportCode(Aws::String &&value)
Definition StaticIp.h:84
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition StaticIp.h:95
StaticIp & WithIsAttached(bool value)
Definition StaticIp.h:161
StaticIp & WithAttachedTo(Aws::String &&value)
Definition StaticIp.h:150
StaticIp & WithIpAddress(const char *value)
Definition StaticIp.h:136
const Aws::String & GetAttachedTo() const
Definition StaticIp.h:144
const Aws::String & GetArn() const
Definition StaticIp.h:62
void SetAttachedTo(const char *value)
Definition StaticIp.h:148
void SetArn(Aws::String &&value)
Definition StaticIp.h:65
const Aws::String & GetName() const
Definition StaticIp.h:47
StaticIp & WithLocation(const ResourceLocation &value)
Definition StaticIp.h:109
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition StaticIp.h:96
void SetIpAddress(const Aws::String &value)
Definition StaticIp.h:131
void SetName(const char *value)
Definition StaticIp.h:51
const ResourceLocation & GetLocation() const
Definition StaticIp.h:105
void SetLocation(const ResourceLocation &value)
Definition StaticIp.h:107
void SetName(Aws::String &&value)
Definition StaticIp.h:50
StaticIp & WithIpAddress(const Aws::String &value)
Definition StaticIp.h:134
bool SupportCodeHasBeenSet() const
Definition StaticIp.h:79
void SetAttachedTo(const Aws::String &value)
Definition StaticIp.h:146
StaticIp & WithSupportCode(const Aws::String &value)
Definition StaticIp.h:83
const ResourceType & GetResourceType() const
Definition StaticIp.h:117
StaticIp & WithArn(const char *value)
Definition StaticIp.h:69
StaticIp & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition StaticIp.h:98
bool ResourceTypeHasBeenSet() const
Definition StaticIp.h:118
StaticIp & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition StaticIp.h:97
AWS_LIGHTSAIL_API StaticIp()
void SetSupportCode(Aws::String &&value)
Definition StaticIp.h:81
StaticIp & WithName(Aws::String &&value)
Definition StaticIp.h:53
const Aws::Utils::DateTime & GetCreatedAt() const
Definition StaticIp.h:93
void SetLocation(ResourceLocation &&value)
Definition StaticIp.h:108
void SetSupportCode(const char *value)
Definition StaticIp.h:82
const Aws::String & GetIpAddress() const
Definition StaticIp.h:129
StaticIp & WithAttachedTo(const Aws::String &value)
Definition StaticIp.h:149
AWS_LIGHTSAIL_API StaticIp & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetArn(const Aws::String &value)
Definition StaticIp.h:64
void SetResourceType(const ResourceType &value)
Definition StaticIp.h:119
StaticIp & WithName(const char *value)
Definition StaticIp.h:54
void SetSupportCode(const Aws::String &value)
Definition StaticIp.h:80
void SetResourceType(ResourceType &&value)
Definition StaticIp.h:120
AWS_LIGHTSAIL_API StaticIp(Aws::Utils::Json::JsonView jsonValue)
StaticIp & WithResourceType(ResourceType &&value)
Definition StaticIp.h:122
void SetIsAttached(bool value)
Definition StaticIp.h:160
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
StaticIp & WithIpAddress(Aws::String &&value)
Definition StaticIp.h:135
StaticIp & WithArn(const Aws::String &value)
Definition StaticIp.h:67
void SetAttachedTo(Aws::String &&value)
Definition StaticIp.h:147
void SetName(const Aws::String &value)
Definition StaticIp.h:49
void SetIpAddress(const char *value)
Definition StaticIp.h:133
StaticIp & WithAttachedTo(const char *value)
Definition StaticIp.h:151
StaticIp & WithResourceType(const ResourceType &value)
Definition StaticIp.h:121
void SetArn(const char *value)
Definition StaticIp.h:66
StaticIp & WithSupportCode(const char *value)
Definition StaticIp.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue