AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StaticIp.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail {
23namespace Model {
24
30class StaticIp {
31 public:
32 AWS_LIGHTSAIL_API StaticIp() = default;
33 AWS_LIGHTSAIL_API StaticIp(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LIGHTSAIL_API StaticIp& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 StaticIp& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
68 StaticIp& WithArn(ArnT&& value) {
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetSupportCode() const { return m_supportCode; }
81 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
82 template <typename SupportCodeT = Aws::String>
83 void SetSupportCode(SupportCodeT&& value) {
84 m_supportCodeHasBeenSet = true;
85 m_supportCode = std::forward<SupportCodeT>(value);
86 }
87 template <typename SupportCodeT = Aws::String>
88 StaticIp& WithSupportCode(SupportCodeT&& value) {
89 SetSupportCode(std::forward<SupportCodeT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
100 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
101 template <typename CreatedAtT = Aws::Utils::DateTime>
102 void SetCreatedAt(CreatedAtT&& value) {
103 m_createdAtHasBeenSet = true;
104 m_createdAt = std::forward<CreatedAtT>(value);
105 }
106 template <typename CreatedAtT = Aws::Utils::DateTime>
107 StaticIp& WithCreatedAt(CreatedAtT&& value) {
108 SetCreatedAt(std::forward<CreatedAtT>(value));
109 return *this;
110 }
112
114
117 inline const ResourceLocation& GetLocation() const { return m_location; }
118 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
119 template <typename LocationT = ResourceLocation>
120 void SetLocation(LocationT&& value) {
121 m_locationHasBeenSet = true;
122 m_location = std::forward<LocationT>(value);
123 }
124 template <typename LocationT = ResourceLocation>
125 StaticIp& WithLocation(LocationT&& value) {
126 SetLocation(std::forward<LocationT>(value));
127 return *this;
128 }
130
132
135 inline ResourceType GetResourceType() const { return m_resourceType; }
136 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
137 inline void SetResourceType(ResourceType value) {
138 m_resourceTypeHasBeenSet = true;
139 m_resourceType = value;
140 }
142 SetResourceType(value);
143 return *this;
144 }
146
148
151 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
152 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
153 template <typename IpAddressT = Aws::String>
154 void SetIpAddress(IpAddressT&& value) {
155 m_ipAddressHasBeenSet = true;
156 m_ipAddress = std::forward<IpAddressT>(value);
157 }
158 template <typename IpAddressT = Aws::String>
159 StaticIp& WithIpAddress(IpAddressT&& value) {
160 SetIpAddress(std::forward<IpAddressT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::String& GetAttachedTo() const { return m_attachedTo; }
171 inline bool AttachedToHasBeenSet() const { return m_attachedToHasBeenSet; }
172 template <typename AttachedToT = Aws::String>
173 void SetAttachedTo(AttachedToT&& value) {
174 m_attachedToHasBeenSet = true;
175 m_attachedTo = std::forward<AttachedToT>(value);
176 }
177 template <typename AttachedToT = Aws::String>
178 StaticIp& WithAttachedTo(AttachedToT&& value) {
179 SetAttachedTo(std::forward<AttachedToT>(value));
180 return *this;
181 }
183
185
188 inline bool GetIsAttached() const { return m_isAttached; }
189 inline bool IsAttachedHasBeenSet() const { return m_isAttachedHasBeenSet; }
190 inline void SetIsAttached(bool value) {
191 m_isAttachedHasBeenSet = true;
192 m_isAttached = value;
193 }
194 inline StaticIp& WithIsAttached(bool value) {
195 SetIsAttached(value);
196 return *this;
197 }
199 private:
200 Aws::String m_name;
201
202 Aws::String m_arn;
203
204 Aws::String m_supportCode;
205
206 Aws::Utils::DateTime m_createdAt{};
207
208 ResourceLocation m_location;
209
210 ResourceType m_resourceType{ResourceType::NOT_SET};
211
212 Aws::String m_ipAddress;
213
214 Aws::String m_attachedTo;
215
216 bool m_isAttached{false};
217 bool m_nameHasBeenSet = false;
218 bool m_arnHasBeenSet = false;
219 bool m_supportCodeHasBeenSet = false;
220 bool m_createdAtHasBeenSet = false;
221 bool m_locationHasBeenSet = false;
222 bool m_resourceTypeHasBeenSet = false;
223 bool m_ipAddressHasBeenSet = false;
224 bool m_attachedToHasBeenSet = false;
225 bool m_isAttachedHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace Lightsail
230} // namespace Aws
const Aws::String & GetSupportCode() const
Definition StaticIp.h:80
StaticIp & WithAttachedTo(AttachedToT &&value)
Definition StaticIp.h:178
StaticIp & WithIsAttached(bool value)
Definition StaticIp.h:194
void SetIpAddress(IpAddressT &&value)
Definition StaticIp.h:154
const Aws::String & GetAttachedTo() const
Definition StaticIp.h:170
void SetLocation(LocationT &&value)
Definition StaticIp.h:120
const Aws::String & GetArn() const
Definition StaticIp.h:60
const Aws::String & GetName() const
Definition StaticIp.h:41
StaticIp & WithResourceType(ResourceType value)
Definition StaticIp.h:141
void SetCreatedAt(CreatedAtT &&value)
Definition StaticIp.h:102
StaticIp & WithCreatedAt(CreatedAtT &&value)
Definition StaticIp.h:107
AWS_LIGHTSAIL_API StaticIp()=default
const ResourceLocation & GetLocation() const
Definition StaticIp.h:117
ResourceType GetResourceType() const
Definition StaticIp.h:135
StaticIp & WithIpAddress(IpAddressT &&value)
Definition StaticIp.h:159
bool SupportCodeHasBeenSet() const
Definition StaticIp.h:81
void SetName(NameT &&value)
Definition StaticIp.h:44
bool ResourceTypeHasBeenSet() const
Definition StaticIp.h:136
StaticIp & WithLocation(LocationT &&value)
Definition StaticIp.h:125
void SetResourceType(ResourceType value)
Definition StaticIp.h:137
StaticIp & WithArn(ArnT &&value)
Definition StaticIp.h:68
const Aws::Utils::DateTime & GetCreatedAt() const
Definition StaticIp.h:99
const Aws::String & GetIpAddress() const
Definition StaticIp.h:151
void SetAttachedTo(AttachedToT &&value)
Definition StaticIp.h:173
void SetArn(ArnT &&value)
Definition StaticIp.h:63
AWS_LIGHTSAIL_API StaticIp & operator=(Aws::Utils::Json::JsonView jsonValue)
StaticIp & WithName(NameT &&value)
Definition StaticIp.h:49
AWS_LIGHTSAIL_API StaticIp(Aws::Utils::Json::JsonView jsonValue)
void SetIsAttached(bool value)
Definition StaticIp.h:190
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
StaticIp & WithSupportCode(SupportCodeT &&value)
Definition StaticIp.h:88
void SetSupportCode(SupportCodeT &&value)
Definition StaticIp.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue