AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerService.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 <aws/core/utils/memory/stl/AWSVector.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/ContainerServiceDeployment.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/lightsail/model/PrivateRegistryAccess.h>
19#include <aws/lightsail/model/Tag.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29 class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace Lightsail
33{
34namespace Model
35{
36
44 {
45 public:
46 AWS_LIGHTSAIL_API ContainerService();
47 AWS_LIGHTSAIL_API ContainerService(Aws::Utils::Json::JsonView jsonValue);
49 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetContainerServiceName() const{ return m_containerServiceName; }
57 inline bool ContainerServiceNameHasBeenSet() const { return m_containerServiceNameHasBeenSet; }
58 inline void SetContainerServiceName(const Aws::String& value) { m_containerServiceNameHasBeenSet = true; m_containerServiceName = value; }
59 inline void SetContainerServiceName(Aws::String&& value) { m_containerServiceNameHasBeenSet = true; m_containerServiceName = std::move(value); }
60 inline void SetContainerServiceName(const char* value) { m_containerServiceNameHasBeenSet = true; m_containerServiceName.assign(value); }
62 inline ContainerService& WithContainerServiceName(Aws::String&& value) { SetContainerServiceName(std::move(value)); return *this;}
63 inline ContainerService& WithContainerServiceName(const char* value) { SetContainerServiceName(value); return *this;}
65
67
70 inline const Aws::String& GetArn() const{ return m_arn; }
71 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
72 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
73 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
74 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
75 inline ContainerService& WithArn(const Aws::String& value) { SetArn(value); return *this;}
76 inline ContainerService& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
77 inline ContainerService& WithArn(const char* value) { SetArn(value); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
85 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
86 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
87 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
88 inline ContainerService& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
89 inline ContainerService& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
91
93
97 inline const ResourceLocation& GetLocation() const{ return m_location; }
98 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
99 inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
100 inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
101 inline ContainerService& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
102 inline ContainerService& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
104
106
109 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
110 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
111 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
112 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
113 inline ContainerService& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
114 inline ContainerService& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
116
118
124 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
127 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
128 inline ContainerService& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
129 inline ContainerService& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
130 inline ContainerService& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
131 inline ContainerService& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
133
135
140 inline const ContainerServicePowerName& GetPower() const{ return m_power; }
141 inline bool PowerHasBeenSet() const { return m_powerHasBeenSet; }
142 inline void SetPower(const ContainerServicePowerName& value) { m_powerHasBeenSet = true; m_power = value; }
143 inline void SetPower(ContainerServicePowerName&& value) { m_powerHasBeenSet = true; m_power = std::move(value); }
144 inline ContainerService& WithPower(const ContainerServicePowerName& value) { SetPower(value); return *this;}
145 inline ContainerService& WithPower(ContainerServicePowerName&& value) { SetPower(std::move(value)); return *this;}
147
149
152 inline const Aws::String& GetPowerId() const{ return m_powerId; }
153 inline bool PowerIdHasBeenSet() const { return m_powerIdHasBeenSet; }
154 inline void SetPowerId(const Aws::String& value) { m_powerIdHasBeenSet = true; m_powerId = value; }
155 inline void SetPowerId(Aws::String&& value) { m_powerIdHasBeenSet = true; m_powerId = std::move(value); }
156 inline void SetPowerId(const char* value) { m_powerIdHasBeenSet = true; m_powerId.assign(value); }
157 inline ContainerService& WithPowerId(const Aws::String& value) { SetPowerId(value); return *this;}
158 inline ContainerService& WithPowerId(Aws::String&& value) { SetPowerId(std::move(value)); return *this;}
159 inline ContainerService& WithPowerId(const char* value) { SetPowerId(value); return *this;}
161
163
177 inline const ContainerServiceState& GetState() const{ return m_state; }
178 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
179 inline void SetState(const ContainerServiceState& value) { m_stateHasBeenSet = true; m_state = value; }
180 inline void SetState(ContainerServiceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
181 inline ContainerService& WithState(const ContainerServiceState& value) { SetState(value); return *this;}
182 inline ContainerService& WithState(ContainerServiceState&& value) { SetState(std::move(value)); return *this;}
184
186
192 inline const ContainerServiceStateDetail& GetStateDetail() const{ return m_stateDetail; }
193 inline bool StateDetailHasBeenSet() const { return m_stateDetailHasBeenSet; }
194 inline void SetStateDetail(const ContainerServiceStateDetail& value) { m_stateDetailHasBeenSet = true; m_stateDetail = value; }
195 inline void SetStateDetail(ContainerServiceStateDetail&& value) { m_stateDetailHasBeenSet = true; m_stateDetail = std::move(value); }
196 inline ContainerService& WithStateDetail(const ContainerServiceStateDetail& value) { SetStateDetail(value); return *this;}
197 inline ContainerService& WithStateDetail(ContainerServiceStateDetail&& value) { SetStateDetail(std::move(value)); return *this;}
199
201
205 inline int GetScale() const{ return m_scale; }
206 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
207 inline void SetScale(int value) { m_scaleHasBeenSet = true; m_scale = value; }
208 inline ContainerService& WithScale(int value) { SetScale(value); return *this;}
210
212
216 inline const ContainerServiceDeployment& GetCurrentDeployment() const{ return m_currentDeployment; }
217 inline bool CurrentDeploymentHasBeenSet() const { return m_currentDeploymentHasBeenSet; }
218 inline void SetCurrentDeployment(const ContainerServiceDeployment& value) { m_currentDeploymentHasBeenSet = true; m_currentDeployment = value; }
219 inline void SetCurrentDeployment(ContainerServiceDeployment&& value) { m_currentDeploymentHasBeenSet = true; m_currentDeployment = std::move(value); }
223
225
230 inline const ContainerServiceDeployment& GetNextDeployment() const{ return m_nextDeployment; }
231 inline bool NextDeploymentHasBeenSet() const { return m_nextDeploymentHasBeenSet; }
232 inline void SetNextDeployment(const ContainerServiceDeployment& value) { m_nextDeploymentHasBeenSet = true; m_nextDeployment = value; }
233 inline void SetNextDeployment(ContainerServiceDeployment&& value) { m_nextDeploymentHasBeenSet = true; m_nextDeployment = std::move(value); }
235 inline ContainerService& WithNextDeployment(ContainerServiceDeployment&& value) { SetNextDeployment(std::move(value)); return *this;}
237
239
242 inline bool GetIsDisabled() const{ return m_isDisabled; }
243 inline bool IsDisabledHasBeenSet() const { return m_isDisabledHasBeenSet; }
244 inline void SetIsDisabled(bool value) { m_isDisabledHasBeenSet = true; m_isDisabled = value; }
245 inline ContainerService& WithIsDisabled(bool value) { SetIsDisabled(value); return *this;}
247
249
256 inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
257 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
258 inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
259 inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
260 inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
261 inline ContainerService& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
262 inline ContainerService& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
263 inline ContainerService& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
265
267
272 inline const Aws::String& GetPrivateDomainName() const{ return m_privateDomainName; }
273 inline bool PrivateDomainNameHasBeenSet() const { return m_privateDomainNameHasBeenSet; }
274 inline void SetPrivateDomainName(const Aws::String& value) { m_privateDomainNameHasBeenSet = true; m_privateDomainName = value; }
275 inline void SetPrivateDomainName(Aws::String&& value) { m_privateDomainNameHasBeenSet = true; m_privateDomainName = std::move(value); }
276 inline void SetPrivateDomainName(const char* value) { m_privateDomainNameHasBeenSet = true; m_privateDomainName.assign(value); }
277 inline ContainerService& WithPrivateDomainName(const Aws::String& value) { SetPrivateDomainName(value); return *this;}
278 inline ContainerService& WithPrivateDomainName(Aws::String&& value) { SetPrivateDomainName(std::move(value)); return *this;}
279 inline ContainerService& WithPrivateDomainName(const char* value) { SetPrivateDomainName(value); return *this;}
281
283
298 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetPublicDomainNames() const{ return m_publicDomainNames; }
299 inline bool PublicDomainNamesHasBeenSet() const { return m_publicDomainNamesHasBeenSet; }
300 inline void SetPublicDomainNames(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames = value; }
301 inline void SetPublicDomainNames(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames = std::move(value); }
304 inline ContainerService& AddPublicDomainNames(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, value); return *this; }
305 inline ContainerService& AddPublicDomainNames(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(std::move(key), value); return *this; }
306 inline ContainerService& AddPublicDomainNames(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, std::move(value)); return *this; }
307 inline ContainerService& AddPublicDomainNames(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(std::move(key), std::move(value)); return *this; }
308 inline ContainerService& AddPublicDomainNames(const char* key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, std::move(value)); return *this; }
309 inline ContainerService& AddPublicDomainNames(const char* key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, value); return *this; }
311
313
318 inline const Aws::String& GetUrl() const{ return m_url; }
319 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
320 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
321 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
322 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
323 inline ContainerService& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
324 inline ContainerService& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
325 inline ContainerService& WithUrl(const char* value) { SetUrl(value); return *this;}
327
329
337 inline const PrivateRegistryAccess& GetPrivateRegistryAccess() const{ return m_privateRegistryAccess; }
338 inline bool PrivateRegistryAccessHasBeenSet() const { return m_privateRegistryAccessHasBeenSet; }
339 inline void SetPrivateRegistryAccess(const PrivateRegistryAccess& value) { m_privateRegistryAccessHasBeenSet = true; m_privateRegistryAccess = value; }
340 inline void SetPrivateRegistryAccess(PrivateRegistryAccess&& value) { m_privateRegistryAccessHasBeenSet = true; m_privateRegistryAccess = std::move(value); }
344 private:
345
346 Aws::String m_containerServiceName;
347 bool m_containerServiceNameHasBeenSet = false;
348
349 Aws::String m_arn;
350 bool m_arnHasBeenSet = false;
351
352 Aws::Utils::DateTime m_createdAt;
353 bool m_createdAtHasBeenSet = false;
354
355 ResourceLocation m_location;
356 bool m_locationHasBeenSet = false;
357
358 ResourceType m_resourceType;
359 bool m_resourceTypeHasBeenSet = false;
360
361 Aws::Vector<Tag> m_tags;
362 bool m_tagsHasBeenSet = false;
363
365 bool m_powerHasBeenSet = false;
366
367 Aws::String m_powerId;
368 bool m_powerIdHasBeenSet = false;
369
370 ContainerServiceState m_state;
371 bool m_stateHasBeenSet = false;
372
373 ContainerServiceStateDetail m_stateDetail;
374 bool m_stateDetailHasBeenSet = false;
375
376 int m_scale;
377 bool m_scaleHasBeenSet = false;
378
379 ContainerServiceDeployment m_currentDeployment;
380 bool m_currentDeploymentHasBeenSet = false;
381
382 ContainerServiceDeployment m_nextDeployment;
383 bool m_nextDeploymentHasBeenSet = false;
384
385 bool m_isDisabled;
386 bool m_isDisabledHasBeenSet = false;
387
388 Aws::String m_principalArn;
389 bool m_principalArnHasBeenSet = false;
390
391 Aws::String m_privateDomainName;
392 bool m_privateDomainNameHasBeenSet = false;
393
395 bool m_publicDomainNamesHasBeenSet = false;
396
397 Aws::String m_url;
398 bool m_urlHasBeenSet = false;
399
400 PrivateRegistryAccess m_privateRegistryAccess;
401 bool m_privateRegistryAccessHasBeenSet = false;
402 };
403
404} // namespace Model
405} // namespace Lightsail
406} // namespace Aws
void SetPrincipalArn(const Aws::String &value)
const Aws::String & GetPrivateDomainName() const
ContainerService & WithArn(const Aws::String &value)
ContainerService & WithContainerServiceName(const char *value)
ContainerService & AddPublicDomainNames(Aws::String &&key, Aws::Vector< Aws::String > &&value)
ContainerService & WithCurrentDeployment(const ContainerServiceDeployment &value)
void SetPrivateRegistryAccess(PrivateRegistryAccess &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
ContainerService & WithPublicDomainNames(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
ContainerService & WithArn(Aws::String &&value)
ContainerService & AddTags(Tag &&value)
ContainerService & WithState(ContainerServiceState &&value)
void SetUrl(const Aws::String &value)
void SetNextDeployment(ContainerServiceDeployment &&value)
void SetPublicDomainNames(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetStateDetail(ContainerServiceStateDetail &&value)
ContainerService & WithStateDetail(ContainerServiceStateDetail &&value)
ContainerService & WithUrl(const char *value)
void SetContainerServiceName(const Aws::String &value)
void SetPrivateDomainName(Aws::String &&value)
void SetState(ContainerServiceState &&value)
void SetLocation(ResourceLocation &&value)
const Aws::String & GetPrincipalArn() const
void SetNextDeployment(const ContainerServiceDeployment &value)
ContainerService & WithScale(int value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetPublicDomainNames() const
const Aws::String & GetPowerId() const
ContainerService & WithLocation(const ResourceLocation &value)
void SetTags(Aws::Vector< Tag > &&value)
void SetArn(const Aws::String &value)
ContainerService & WithState(const ContainerServiceState &value)
ContainerService & AddPublicDomainNames(const char *key, Aws::Vector< Aws::String > &&value)
ContainerService & WithPrivateDomainName(const char *value)
void SetResourceType(ResourceType &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerService & WithPrivateRegistryAccess(const PrivateRegistryAccess &value)
void SetStateDetail(const ContainerServiceStateDetail &value)
void SetCurrentDeployment(ContainerServiceDeployment &&value)
ContainerService & WithCurrentDeployment(ContainerServiceDeployment &&value)
ContainerService & WithContainerServiceName(const Aws::String &value)
const ContainerServiceStateDetail & GetStateDetail() const
ContainerService & AddTags(const Tag &value)
ContainerService & WithCreatedAt(Aws::Utils::DateTime &&value)
const PrivateRegistryAccess & GetPrivateRegistryAccess() const
ContainerService & AddPublicDomainNames(const char *key, const Aws::Vector< Aws::String > &value)
void SetPowerId(const Aws::String &value)
ContainerService & WithPower(ContainerServicePowerName &&value)
ContainerService & WithIsDisabled(bool value)
ContainerService & WithNextDeployment(ContainerServiceDeployment &&value)
ContainerService & WithArn(const char *value)
ContainerService & WithUrl(const Aws::String &value)
void SetPublicDomainNames(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
ContainerService & WithPrincipalArn(const Aws::String &value)
void SetPower(ContainerServicePowerName &&value)
void SetPrincipalArn(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
ContainerService & WithNextDeployment(const ContainerServiceDeployment &value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetLocation(const ResourceLocation &value)
ContainerService & AddPublicDomainNames(const Aws::String &key, const Aws::Vector< Aws::String > &value)
void SetPrivateDomainName(const Aws::String &value)
ContainerService & WithPrivateDomainName(const Aws::String &value)
AWS_LIGHTSAIL_API ContainerService & operator=(Aws::Utils::Json::JsonView jsonValue)
const ContainerServiceDeployment & GetNextDeployment() const
ContainerService & WithTags(Aws::Vector< Tag > &&value)
ContainerService & WithLocation(ResourceLocation &&value)
void SetContainerServiceName(const char *value)
ContainerService & WithPowerId(const Aws::String &value)
void SetResourceType(const ResourceType &value)
const ContainerServiceDeployment & GetCurrentDeployment() const
ContainerService & WithContainerServiceName(Aws::String &&value)
ContainerService & WithPrincipalArn(const char *value)
const Aws::String & GetContainerServiceName() const
ContainerService & WithPowerId(const char *value)
const ResourceLocation & GetLocation() const
ContainerService & WithResourceType(const ResourceType &value)
ContainerService & WithPrivateRegistryAccess(PrivateRegistryAccess &&value)
ContainerService & WithStateDetail(const ContainerServiceStateDetail &value)
void SetPrivateRegistryAccess(const PrivateRegistryAccess &value)
ContainerService & WithUrl(Aws::String &&value)
ContainerService & WithCreatedAt(const Aws::Utils::DateTime &value)
AWS_LIGHTSAIL_API ContainerService(Aws::Utils::Json::JsonView jsonValue)
void SetContainerServiceName(Aws::String &&value)
const ContainerServiceState & GetState() const
void SetState(const ContainerServiceState &value)
ContainerService & WithPower(const ContainerServicePowerName &value)
ContainerService & AddPublicDomainNames(Aws::String &&key, const Aws::Vector< Aws::String > &value)
const ResourceType & GetResourceType() const
void SetCreatedAt(Aws::Utils::DateTime &&value)
ContainerService & AddPublicDomainNames(const Aws::String &key, Aws::Vector< Aws::String > &&value)
const Aws::Vector< Tag > & GetTags() const
const ContainerServicePowerName & GetPower() const
ContainerService & WithPublicDomainNames(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetPower(const ContainerServicePowerName &value)
ContainerService & WithPowerId(Aws::String &&value)
ContainerService & WithPrincipalArn(Aws::String &&value)
void SetCurrentDeployment(const ContainerServiceDeployment &value)
ContainerService & WithResourceType(ResourceType &&value)
ContainerService & WithPrivateDomainName(Aws::String &&value)
ContainerService & WithTags(const Aws::Vector< Tag > &value)
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