AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ContainerService.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lightsail/Lightsail_EXPORTS.h>
12#include <aws/lightsail/model/ContainerServiceDeployment.h>
13#include <aws/lightsail/model/ContainerServicePowerName.h>
14#include <aws/lightsail/model/ContainerServiceState.h>
15#include <aws/lightsail/model/ContainerServiceStateDetail.h>
16#include <aws/lightsail/model/PrivateRegistryAccess.h>
17#include <aws/lightsail/model/ResourceLocation.h>
18#include <aws/lightsail/model/ResourceType.h>
19#include <aws/lightsail/model/Tag.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Lightsail {
31namespace Model {
32
40 public:
41 AWS_LIGHTSAIL_API ContainerService() = default;
42 AWS_LIGHTSAIL_API ContainerService(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const Aws::String& GetContainerServiceName() const { return m_containerServiceName; }
51 inline bool ContainerServiceNameHasBeenSet() const { return m_containerServiceNameHasBeenSet; }
52 template <typename ContainerServiceNameT = Aws::String>
53 void SetContainerServiceName(ContainerServiceNameT&& value) {
54 m_containerServiceNameHasBeenSet = true;
55 m_containerServiceName = std::forward<ContainerServiceNameT>(value);
56 }
57 template <typename ContainerServiceNameT = Aws::String>
58 ContainerService& WithContainerServiceName(ContainerServiceNameT&& value) {
59 SetContainerServiceName(std::forward<ContainerServiceNameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetArn() const { return m_arn; }
69 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
70 template <typename ArnT = Aws::String>
71 void SetArn(ArnT&& value) {
72 m_arnHasBeenSet = true;
73 m_arn = std::forward<ArnT>(value);
74 }
75 template <typename ArnT = Aws::String>
76 ContainerService& WithArn(ArnT&& value) {
77 SetArn(std::forward<ArnT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
87 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
88 template <typename CreatedAtT = Aws::Utils::DateTime>
89 void SetCreatedAt(CreatedAtT&& value) {
90 m_createdAtHasBeenSet = true;
91 m_createdAt = std::forward<CreatedAtT>(value);
92 }
93 template <typename CreatedAtT = Aws::Utils::DateTime>
94 ContainerService& WithCreatedAt(CreatedAtT&& value) {
95 SetCreatedAt(std::forward<CreatedAtT>(value));
96 return *this;
97 }
99
101
105 inline const ResourceLocation& GetLocation() const { return m_location; }
106 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
107 template <typename LocationT = ResourceLocation>
108 void SetLocation(LocationT&& value) {
109 m_locationHasBeenSet = true;
110 m_location = std::forward<LocationT>(value);
111 }
112 template <typename LocationT = ResourceLocation>
113 ContainerService& WithLocation(LocationT&& value) {
114 SetLocation(std::forward<LocationT>(value));
115 return *this;
116 }
118
120
123 inline ResourceType GetResourceType() const { return m_resourceType; }
124 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
125 inline void SetResourceType(ResourceType value) {
126 m_resourceTypeHasBeenSet = true;
127 m_resourceType = value;
128 }
130 SetResourceType(value);
131 return *this;
132 }
134
136
142 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 template <typename TagsT = Aws::Vector<Tag>>
145 void SetTags(TagsT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags = std::forward<TagsT>(value);
148 }
149 template <typename TagsT = Aws::Vector<Tag>>
150 ContainerService& WithTags(TagsT&& value) {
151 SetTags(std::forward<TagsT>(value));
152 return *this;
153 }
154 template <typename TagsT = Tag>
155 ContainerService& AddTags(TagsT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags.emplace_back(std::forward<TagsT>(value));
158 return *this;
159 }
161
163
168 inline ContainerServicePowerName GetPower() const { return m_power; }
169 inline bool PowerHasBeenSet() const { return m_powerHasBeenSet; }
171 m_powerHasBeenSet = true;
172 m_power = value;
173 }
175 SetPower(value);
176 return *this;
177 }
179
181
184 inline const Aws::String& GetPowerId() const { return m_powerId; }
185 inline bool PowerIdHasBeenSet() const { return m_powerIdHasBeenSet; }
186 template <typename PowerIdT = Aws::String>
187 void SetPowerId(PowerIdT&& value) {
188 m_powerIdHasBeenSet = true;
189 m_powerId = std::forward<PowerIdT>(value);
190 }
191 template <typename PowerIdT = Aws::String>
192 ContainerService& WithPowerId(PowerIdT&& value) {
193 SetPowerId(std::forward<PowerIdT>(value));
194 return *this;
195 }
197
199
213 inline ContainerServiceState GetState() const { return m_state; }
214 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
215 inline void SetState(ContainerServiceState value) {
216 m_stateHasBeenSet = true;
217 m_state = value;
218 }
220 SetState(value);
221 return *this;
222 }
224
226
232 inline const ContainerServiceStateDetail& GetStateDetail() const { return m_stateDetail; }
233 inline bool StateDetailHasBeenSet() const { return m_stateDetailHasBeenSet; }
234 template <typename StateDetailT = ContainerServiceStateDetail>
235 void SetStateDetail(StateDetailT&& value) {
236 m_stateDetailHasBeenSet = true;
237 m_stateDetail = std::forward<StateDetailT>(value);
238 }
239 template <typename StateDetailT = ContainerServiceStateDetail>
240 ContainerService& WithStateDetail(StateDetailT&& value) {
241 SetStateDetail(std::forward<StateDetailT>(value));
242 return *this;
243 }
245
247
251 inline int GetScale() const { return m_scale; }
252 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
253 inline void SetScale(int value) {
254 m_scaleHasBeenSet = true;
255 m_scale = value;
256 }
257 inline ContainerService& WithScale(int value) {
258 SetScale(value);
259 return *this;
260 }
262
264
268 inline const ContainerServiceDeployment& GetCurrentDeployment() const { return m_currentDeployment; }
269 inline bool CurrentDeploymentHasBeenSet() const { return m_currentDeploymentHasBeenSet; }
270 template <typename CurrentDeploymentT = ContainerServiceDeployment>
271 void SetCurrentDeployment(CurrentDeploymentT&& value) {
272 m_currentDeploymentHasBeenSet = true;
273 m_currentDeployment = std::forward<CurrentDeploymentT>(value);
274 }
275 template <typename CurrentDeploymentT = ContainerServiceDeployment>
276 ContainerService& WithCurrentDeployment(CurrentDeploymentT&& value) {
277 SetCurrentDeployment(std::forward<CurrentDeploymentT>(value));
278 return *this;
279 }
281
283
288 inline const ContainerServiceDeployment& GetNextDeployment() const { return m_nextDeployment; }
289 inline bool NextDeploymentHasBeenSet() const { return m_nextDeploymentHasBeenSet; }
290 template <typename NextDeploymentT = ContainerServiceDeployment>
291 void SetNextDeployment(NextDeploymentT&& value) {
292 m_nextDeploymentHasBeenSet = true;
293 m_nextDeployment = std::forward<NextDeploymentT>(value);
294 }
295 template <typename NextDeploymentT = ContainerServiceDeployment>
296 ContainerService& WithNextDeployment(NextDeploymentT&& value) {
297 SetNextDeployment(std::forward<NextDeploymentT>(value));
298 return *this;
299 }
301
303
306 inline bool GetIsDisabled() const { return m_isDisabled; }
307 inline bool IsDisabledHasBeenSet() const { return m_isDisabledHasBeenSet; }
308 inline void SetIsDisabled(bool value) {
309 m_isDisabledHasBeenSet = true;
310 m_isDisabled = value;
311 }
312 inline ContainerService& WithIsDisabled(bool value) {
313 SetIsDisabled(value);
314 return *this;
315 }
317
319
326 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
327 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
328 template <typename PrincipalArnT = Aws::String>
329 void SetPrincipalArn(PrincipalArnT&& value) {
330 m_principalArnHasBeenSet = true;
331 m_principalArn = std::forward<PrincipalArnT>(value);
332 }
333 template <typename PrincipalArnT = Aws::String>
334 ContainerService& WithPrincipalArn(PrincipalArnT&& value) {
335 SetPrincipalArn(std::forward<PrincipalArnT>(value));
336 return *this;
337 }
339
341
346 inline const Aws::String& GetPrivateDomainName() const { return m_privateDomainName; }
347 inline bool PrivateDomainNameHasBeenSet() const { return m_privateDomainNameHasBeenSet; }
348 template <typename PrivateDomainNameT = Aws::String>
349 void SetPrivateDomainName(PrivateDomainNameT&& value) {
350 m_privateDomainNameHasBeenSet = true;
351 m_privateDomainName = std::forward<PrivateDomainNameT>(value);
352 }
353 template <typename PrivateDomainNameT = Aws::String>
354 ContainerService& WithPrivateDomainName(PrivateDomainNameT&& value) {
355 SetPrivateDomainName(std::forward<PrivateDomainNameT>(value));
356 return *this;
357 }
359
361
376 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetPublicDomainNames() const { return m_publicDomainNames; }
377 inline bool PublicDomainNamesHasBeenSet() const { return m_publicDomainNamesHasBeenSet; }
378 template <typename PublicDomainNamesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
379 void SetPublicDomainNames(PublicDomainNamesT&& value) {
380 m_publicDomainNamesHasBeenSet = true;
381 m_publicDomainNames = std::forward<PublicDomainNamesT>(value);
382 }
383 template <typename PublicDomainNamesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
384 ContainerService& WithPublicDomainNames(PublicDomainNamesT&& value) {
385 SetPublicDomainNames(std::forward<PublicDomainNamesT>(value));
386 return *this;
387 }
388 template <typename PublicDomainNamesKeyT = Aws::String, typename PublicDomainNamesValueT = Aws::Vector<Aws::String>>
389 ContainerService& AddPublicDomainNames(PublicDomainNamesKeyT&& key, PublicDomainNamesValueT&& value) {
390 m_publicDomainNamesHasBeenSet = true;
391 m_publicDomainNames.emplace(std::forward<PublicDomainNamesKeyT>(key), std::forward<PublicDomainNamesValueT>(value));
392 return *this;
393 }
395
397
402 inline const Aws::String& GetUrl() const { return m_url; }
403 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
404 template <typename UrlT = Aws::String>
405 void SetUrl(UrlT&& value) {
406 m_urlHasBeenSet = true;
407 m_url = std::forward<UrlT>(value);
408 }
409 template <typename UrlT = Aws::String>
410 ContainerService& WithUrl(UrlT&& value) {
411 SetUrl(std::forward<UrlT>(value));
412 return *this;
413 }
415
417
425 inline const PrivateRegistryAccess& GetPrivateRegistryAccess() const { return m_privateRegistryAccess; }
426 inline bool PrivateRegistryAccessHasBeenSet() const { return m_privateRegistryAccessHasBeenSet; }
427 template <typename PrivateRegistryAccessT = PrivateRegistryAccess>
428 void SetPrivateRegistryAccess(PrivateRegistryAccessT&& value) {
429 m_privateRegistryAccessHasBeenSet = true;
430 m_privateRegistryAccess = std::forward<PrivateRegistryAccessT>(value);
431 }
432 template <typename PrivateRegistryAccessT = PrivateRegistryAccess>
433 ContainerService& WithPrivateRegistryAccess(PrivateRegistryAccessT&& value) {
434 SetPrivateRegistryAccess(std::forward<PrivateRegistryAccessT>(value));
435 return *this;
436 }
438 private:
439 Aws::String m_containerServiceName;
440
441 Aws::String m_arn;
442
443 Aws::Utils::DateTime m_createdAt{};
444
445 ResourceLocation m_location;
446
447 ResourceType m_resourceType{ResourceType::NOT_SET};
448
449 Aws::Vector<Tag> m_tags;
450
452
453 Aws::String m_powerId;
454
456
457 ContainerServiceStateDetail m_stateDetail;
458
459 int m_scale{0};
460
461 ContainerServiceDeployment m_currentDeployment;
462
463 ContainerServiceDeployment m_nextDeployment;
464
465 bool m_isDisabled{false};
466
467 Aws::String m_principalArn;
468
469 Aws::String m_privateDomainName;
470
472
473 Aws::String m_url;
474
475 PrivateRegistryAccess m_privateRegistryAccess;
476 bool m_containerServiceNameHasBeenSet = false;
477 bool m_arnHasBeenSet = false;
478 bool m_createdAtHasBeenSet = false;
479 bool m_locationHasBeenSet = false;
480 bool m_resourceTypeHasBeenSet = false;
481 bool m_tagsHasBeenSet = false;
482 bool m_powerHasBeenSet = false;
483 bool m_powerIdHasBeenSet = false;
484 bool m_stateHasBeenSet = false;
485 bool m_stateDetailHasBeenSet = false;
486 bool m_scaleHasBeenSet = false;
487 bool m_currentDeploymentHasBeenSet = false;
488 bool m_nextDeploymentHasBeenSet = false;
489 bool m_isDisabledHasBeenSet = false;
490 bool m_principalArnHasBeenSet = false;
491 bool m_privateDomainNameHasBeenSet = false;
492 bool m_publicDomainNamesHasBeenSet = false;
493 bool m_urlHasBeenSet = false;
494 bool m_privateRegistryAccessHasBeenSet = false;
495};
496
497} // namespace Model
498} // namespace Lightsail
499} // namespace Aws
ContainerService & WithPrivateRegistryAccess(PrivateRegistryAccessT &&value)
const Aws::String & GetPrivateDomainName() const
ContainerServiceState GetState() const
void SetPrincipalArn(PrincipalArnT &&value)
void SetPublicDomainNames(PublicDomainNamesT &&value)
ContainerService & WithPower(ContainerServicePowerName value)
void SetPower(ContainerServicePowerName value)
ContainerService & WithPrincipalArn(PrincipalArnT &&value)
const Aws::String & GetPrincipalArn() const
ContainerService & WithScale(int value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetPublicDomainNames() const
const Aws::String & GetPowerId() const
void SetState(ContainerServiceState value)
ContainerService & WithArn(ArnT &&value)
void SetNextDeployment(NextDeploymentT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrivateRegistryAccess(PrivateRegistryAccessT &&value)
void SetPrivateDomainName(PrivateDomainNameT &&value)
const ContainerServiceStateDetail & GetStateDetail() const
ContainerService & AddPublicDomainNames(PublicDomainNamesKeyT &&key, PublicDomainNamesValueT &&value)
ContainerService & WithTags(TagsT &&value)
const PrivateRegistryAccess & GetPrivateRegistryAccess() const
ContainerService & WithIsDisabled(bool value)
ContainerServicePowerName GetPower() const
ContainerService & WithPowerId(PowerIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_LIGHTSAIL_API ContainerService & operator=(Aws::Utils::Json::JsonView jsonValue)
const ContainerServiceDeployment & GetNextDeployment() const
ContainerService & WithNextDeployment(NextDeploymentT &&value)
ContainerService & WithContainerServiceName(ContainerServiceNameT &&value)
const ContainerServiceDeployment & GetCurrentDeployment() const
const Aws::String & GetContainerServiceName() const
ContainerService & WithCreatedAt(CreatedAtT &&value)
ContainerService & WithCurrentDeployment(CurrentDeploymentT &&value)
ContainerService & WithResourceType(ResourceType value)
const ResourceLocation & GetLocation() const
void SetContainerServiceName(ContainerServiceNameT &&value)
ContainerService & WithPrivateDomainName(PrivateDomainNameT &&value)
ContainerService & WithStateDetail(StateDetailT &&value)
AWS_LIGHTSAIL_API ContainerService(Aws::Utils::Json::JsonView jsonValue)
ContainerService & WithPublicDomainNames(PublicDomainNamesT &&value)
void SetCurrentDeployment(CurrentDeploymentT &&value)
ContainerService & WithLocation(LocationT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetStateDetail(StateDetailT &&value)
ContainerService & AddTags(TagsT &&value)
ContainerService & WithUrl(UrlT &&value)
ContainerService & WithState(ContainerServiceState value)
AWS_LIGHTSAIL_API ContainerService()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue