AWS SDK for C++

AWS SDK for C++ Version 1.11.918

Loading...
Searching...
No Matches
Gateway.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/AccessType.h>
12#include <aws/ecs/model/DescribeGatewayConfiguration.h>
13#include <aws/ecs/model/GatewayResourceFailure.h>
14#include <aws/ecs/model/GatewayStatus.h>
15#include <aws/ecs/model/PropagateGatewayTags.h>
16#include <aws/ecs/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ECS {
28namespace Model {
29
36class Gateway {
37 public:
38 AWS_ECS_API Gateway() = default;
39 AWS_ECS_API Gateway(Aws::Utils::Json::JsonView jsonValue);
42
44
47 inline const Aws::String& GetGatewayArn() const { return m_gatewayArn; }
48 inline bool GatewayArnHasBeenSet() const { return m_gatewayArnHasBeenSet; }
49 template <typename GatewayArnT = Aws::String>
50 void SetGatewayArn(GatewayArnT&& value) {
51 m_gatewayArnHasBeenSet = true;
52 m_gatewayArn = std::forward<GatewayArnT>(value);
53 }
54 template <typename GatewayArnT = Aws::String>
55 Gateway& WithGatewayArn(GatewayArnT&& value) {
56 SetGatewayArn(std::forward<GatewayArnT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template <typename NameT = Aws::String>
68 void SetName(NameT&& value) {
69 m_nameHasBeenSet = true;
70 m_name = std::forward<NameT>(value);
71 }
72 template <typename NameT = Aws::String>
73 Gateway& WithName(NameT&& value) {
74 SetName(std::forward<NameT>(value));
75 return *this;
76 }
78
80
83 inline GatewayStatus GetStatus() const { return m_status; }
84 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
85 inline void SetStatus(GatewayStatus value) {
86 m_statusHasBeenSet = true;
87 m_status = value;
88 }
90 SetStatus(value);
91 return *this;
92 }
94
96
100 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
101 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
102 template <typename StatusReasonT = Aws::String>
103 void SetStatusReason(StatusReasonT&& value) {
104 m_statusReasonHasBeenSet = true;
105 m_statusReason = std::forward<StatusReasonT>(value);
106 }
107 template <typename StatusReasonT = Aws::String>
108 Gateway& WithStatusReason(StatusReasonT&& value) {
109 SetStatusReason(std::forward<StatusReasonT>(value));
110 return *this;
111 }
113
115
120 inline const Aws::Vector<GatewayResourceFailure>& GetFailures() const { return m_failures; }
121 inline bool FailuresHasBeenSet() const { return m_failuresHasBeenSet; }
122 template <typename FailuresT = Aws::Vector<GatewayResourceFailure>>
123 void SetFailures(FailuresT&& value) {
124 m_failuresHasBeenSet = true;
125 m_failures = std::forward<FailuresT>(value);
126 }
127 template <typename FailuresT = Aws::Vector<GatewayResourceFailure>>
128 Gateway& WithFailures(FailuresT&& value) {
129 SetFailures(std::forward<FailuresT>(value));
130 return *this;
131 }
132 template <typename FailuresT = GatewayResourceFailure>
133 Gateway& AddFailures(FailuresT&& value) {
134 m_failuresHasBeenSet = true;
135 m_failures.emplace_back(std::forward<FailuresT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::String& GetInfrastructureRoleArn() const { return m_infrastructureRoleArn; }
146 inline bool InfrastructureRoleArnHasBeenSet() const { return m_infrastructureRoleArnHasBeenSet; }
147 template <typename InfrastructureRoleArnT = Aws::String>
148 void SetInfrastructureRoleArn(InfrastructureRoleArnT&& value) {
149 m_infrastructureRoleArnHasBeenSet = true;
150 m_infrastructureRoleArn = std::forward<InfrastructureRoleArnT>(value);
151 }
152 template <typename InfrastructureRoleArnT = Aws::String>
153 Gateway& WithInfrastructureRoleArn(InfrastructureRoleArnT&& value) {
154 SetInfrastructureRoleArn(std::forward<InfrastructureRoleArnT>(value));
155 return *this;
156 }
158
160
163 inline bool GetDeletionProtection() const { return m_deletionProtection; }
164 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
165 inline void SetDeletionProtection(bool value) {
166 m_deletionProtectionHasBeenSet = true;
167 m_deletionProtection = value;
168 }
169 inline Gateway& WithDeletionProtection(bool value) {
171 return *this;
172 }
174
176
179 inline const DescribeGatewayConfiguration& GetConfiguration() const { return m_configuration; }
180 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
181 template <typename ConfigurationT = DescribeGatewayConfiguration>
182 void SetConfiguration(ConfigurationT&& value) {
183 m_configurationHasBeenSet = true;
184 m_configuration = std::forward<ConfigurationT>(value);
185 }
186 template <typename ConfigurationT = DescribeGatewayConfiguration>
187 Gateway& WithConfiguration(ConfigurationT&& value) {
188 SetConfiguration(std::forward<ConfigurationT>(value));
189 return *this;
190 }
192
194
199 inline AccessType GetAccessType() const { return m_accessType; }
200 inline bool AccessTypeHasBeenSet() const { return m_accessTypeHasBeenSet; }
201 inline void SetAccessType(AccessType value) {
202 m_accessTypeHasBeenSet = true;
203 m_accessType = value;
204 }
206 SetAccessType(value);
207 return *this;
208 }
210
212
216 inline PropagateGatewayTags GetPropagateTags() const { return m_propagateTags; }
217 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
219 m_propagateTagsHasBeenSet = true;
220 m_propagateTags = value;
221 }
223 SetPropagateTags(value);
224 return *this;
225 }
227
229
233 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
234 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
235 template <typename TagsT = Aws::Vector<Tag>>
236 void SetTags(TagsT&& value) {
237 m_tagsHasBeenSet = true;
238 m_tags = std::forward<TagsT>(value);
239 }
240 template <typename TagsT = Aws::Vector<Tag>>
241 Gateway& WithTags(TagsT&& value) {
242 SetTags(std::forward<TagsT>(value));
243 return *this;
244 }
245 template <typename TagsT = Tag>
246 Gateway& AddTags(TagsT&& value) {
247 m_tagsHasBeenSet = true;
248 m_tags.emplace_back(std::forward<TagsT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
258 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
259 template <typename CreatedAtT = Aws::Utils::DateTime>
260 void SetCreatedAt(CreatedAtT&& value) {
261 m_createdAtHasBeenSet = true;
262 m_createdAt = std::forward<CreatedAtT>(value);
263 }
264 template <typename CreatedAtT = Aws::Utils::DateTime>
265 Gateway& WithCreatedAt(CreatedAtT&& value) {
266 SetCreatedAt(std::forward<CreatedAtT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
276 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
277 template <typename UpdatedAtT = Aws::Utils::DateTime>
278 void SetUpdatedAt(UpdatedAtT&& value) {
279 m_updatedAtHasBeenSet = true;
280 m_updatedAt = std::forward<UpdatedAtT>(value);
281 }
282 template <typename UpdatedAtT = Aws::Utils::DateTime>
283 Gateway& WithUpdatedAt(UpdatedAtT&& value) {
284 SetUpdatedAt(std::forward<UpdatedAtT>(value));
285 return *this;
286 }
288 private:
289 Aws::String m_gatewayArn;
290
291 Aws::String m_name;
292
294
295 Aws::String m_statusReason;
296
298
299 Aws::String m_infrastructureRoleArn;
300
301 bool m_deletionProtection{false};
302
303 DescribeGatewayConfiguration m_configuration;
304
305 AccessType m_accessType{AccessType::NOT_SET};
306
308
309 Aws::Vector<Tag> m_tags;
310
311 Aws::Utils::DateTime m_createdAt{};
312
313 Aws::Utils::DateTime m_updatedAt{};
314 bool m_gatewayArnHasBeenSet = false;
315 bool m_nameHasBeenSet = false;
316 bool m_statusHasBeenSet = false;
317 bool m_statusReasonHasBeenSet = false;
318 bool m_failuresHasBeenSet = false;
319 bool m_infrastructureRoleArnHasBeenSet = false;
320 bool m_deletionProtectionHasBeenSet = false;
321 bool m_configurationHasBeenSet = false;
322 bool m_accessTypeHasBeenSet = false;
323 bool m_propagateTagsHasBeenSet = false;
324 bool m_tagsHasBeenSet = false;
325 bool m_createdAtHasBeenSet = false;
326 bool m_updatedAtHasBeenSet = false;
327};
328
329} // namespace Model
330} // namespace ECS
331} // namespace Aws
AWS_ECS_API Gateway(Aws::Utils::Json::JsonView jsonValue)
Gateway & WithGatewayArn(GatewayArnT &&value)
Definition Gateway.h:55
AccessType GetAccessType() const
Definition Gateway.h:199
void SetName(NameT &&value)
Definition Gateway.h:68
Gateway & WithStatusReason(StatusReasonT &&value)
Definition Gateway.h:108
void SetUpdatedAt(UpdatedAtT &&value)
Definition Gateway.h:278
AWS_ECS_API Gateway()=default
bool StatusReasonHasBeenSet() const
Definition Gateway.h:101
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Gateway.h:257
bool CreatedAtHasBeenSet() const
Definition Gateway.h:258
const Aws::String & GetName() const
Definition Gateway.h:65
Gateway & AddFailures(FailuresT &&value)
Definition Gateway.h:133
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Gateway.h:275
void SetAccessType(AccessType value)
Definition Gateway.h:201
const Aws::String & GetGatewayArn() const
Definition Gateway.h:47
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< GatewayResourceFailure > & GetFailures() const
Definition Gateway.h:120
bool DeletionProtectionHasBeenSet() const
Definition Gateway.h:164
bool GatewayArnHasBeenSet() const
Definition Gateway.h:48
Gateway & WithDeletionProtection(bool value)
Definition Gateway.h:169
bool StatusHasBeenSet() const
Definition Gateway.h:84
Gateway & WithFailures(FailuresT &&value)
Definition Gateway.h:128
Gateway & WithUpdatedAt(UpdatedAtT &&value)
Definition Gateway.h:283
Gateway & WithInfrastructureRoleArn(InfrastructureRoleArnT &&value)
Definition Gateway.h:153
const DescribeGatewayConfiguration & GetConfiguration() const
Definition Gateway.h:179
GatewayStatus GetStatus() const
Definition Gateway.h:83
void SetFailures(FailuresT &&value)
Definition Gateway.h:123
Gateway & WithCreatedAt(CreatedAtT &&value)
Definition Gateway.h:265
void SetCreatedAt(CreatedAtT &&value)
Definition Gateway.h:260
void SetPropagateTags(PropagateGatewayTags value)
Definition Gateway.h:218
Gateway & WithName(NameT &&value)
Definition Gateway.h:73
void SetInfrastructureRoleArn(InfrastructureRoleArnT &&value)
Definition Gateway.h:148
void SetDeletionProtection(bool value)
Definition Gateway.h:165
Gateway & WithAccessType(AccessType value)
Definition Gateway.h:205
bool TagsHasBeenSet() const
Definition Gateway.h:234
bool ConfigurationHasBeenSet() const
Definition Gateway.h:180
bool FailuresHasBeenSet() const
Definition Gateway.h:121
void SetTags(TagsT &&value)
Definition Gateway.h:236
void SetConfiguration(ConfigurationT &&value)
Definition Gateway.h:182
void SetGatewayArn(GatewayArnT &&value)
Definition Gateway.h:50
bool AccessTypeHasBeenSet() const
Definition Gateway.h:200
void SetStatusReason(StatusReasonT &&value)
Definition Gateway.h:103
bool UpdatedAtHasBeenSet() const
Definition Gateway.h:276
const Aws::String & GetStatusReason() const
Definition Gateway.h:100
const Aws::Vector< Tag > & GetTags() const
Definition Gateway.h:233
Gateway & WithPropagateTags(PropagateGatewayTags value)
Definition Gateway.h:222
bool GetDeletionProtection() const
Definition Gateway.h:163
AWS_ECS_API Gateway & operator=(Aws::Utils::Json::JsonView jsonValue)
Gateway & WithTags(TagsT &&value)
Definition Gateway.h:241
bool InfrastructureRoleArnHasBeenSet() const
Definition Gateway.h:146
Gateway & AddTags(TagsT &&value)
Definition Gateway.h:246
PropagateGatewayTags GetPropagateTags() const
Definition Gateway.h:216
Gateway & WithConfiguration(ConfigurationT &&value)
Definition Gateway.h:187
bool PropagateTagsHasBeenSet() const
Definition Gateway.h:217
bool NameHasBeenSet() const
Definition Gateway.h:66
const Aws::String & GetInfrastructureRoleArn() const
Definition Gateway.h:145
void SetStatus(GatewayStatus value)
Definition Gateway.h:85
Gateway & WithStatus(GatewayStatus value)
Definition Gateway.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue