AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ContainerServiceNameT = Aws::String>
59 void SetContainerServiceName(ContainerServiceNameT&& value) { m_containerServiceNameHasBeenSet = true; m_containerServiceName = std::forward<ContainerServiceNameT>(value); }
60 template<typename ContainerServiceNameT = Aws::String>
61 ContainerService& WithContainerServiceName(ContainerServiceNameT&& value) { SetContainerServiceName(std::forward<ContainerServiceNameT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
72 template<typename ArnT = Aws::String>
73 ContainerService& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
75
77
80 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
81 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
82 template<typename CreatedAtT = Aws::Utils::DateTime>
83 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
84 template<typename CreatedAtT = Aws::Utils::DateTime>
85 ContainerService& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
87
89
93 inline const ResourceLocation& GetLocation() const { return m_location; }
94 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
95 template<typename LocationT = ResourceLocation>
96 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
97 template<typename LocationT = ResourceLocation>
98 ContainerService& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
100
102
105 inline ResourceType GetResourceType() const { return m_resourceType; }
106 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
107 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
108 inline ContainerService& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
110
112
118 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 template<typename TagsT = Aws::Vector<Tag>>
121 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
122 template<typename TagsT = Aws::Vector<Tag>>
123 ContainerService& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
124 template<typename TagsT = Tag>
125 ContainerService& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
127
129
134 inline ContainerServicePowerName GetPower() const { return m_power; }
135 inline bool PowerHasBeenSet() const { return m_powerHasBeenSet; }
136 inline void SetPower(ContainerServicePowerName value) { m_powerHasBeenSet = true; m_power = value; }
137 inline ContainerService& WithPower(ContainerServicePowerName value) { SetPower(value); return *this;}
139
141
144 inline const Aws::String& GetPowerId() const { return m_powerId; }
145 inline bool PowerIdHasBeenSet() const { return m_powerIdHasBeenSet; }
146 template<typename PowerIdT = Aws::String>
147 void SetPowerId(PowerIdT&& value) { m_powerIdHasBeenSet = true; m_powerId = std::forward<PowerIdT>(value); }
148 template<typename PowerIdT = Aws::String>
149 ContainerService& WithPowerId(PowerIdT&& value) { SetPowerId(std::forward<PowerIdT>(value)); return *this;}
151
153
167 inline ContainerServiceState GetState() const { return m_state; }
168 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
169 inline void SetState(ContainerServiceState value) { m_stateHasBeenSet = true; m_state = value; }
170 inline ContainerService& WithState(ContainerServiceState value) { SetState(value); return *this;}
172
174
180 inline const ContainerServiceStateDetail& GetStateDetail() const { return m_stateDetail; }
181 inline bool StateDetailHasBeenSet() const { return m_stateDetailHasBeenSet; }
182 template<typename StateDetailT = ContainerServiceStateDetail>
183 void SetStateDetail(StateDetailT&& value) { m_stateDetailHasBeenSet = true; m_stateDetail = std::forward<StateDetailT>(value); }
184 template<typename StateDetailT = ContainerServiceStateDetail>
185 ContainerService& WithStateDetail(StateDetailT&& value) { SetStateDetail(std::forward<StateDetailT>(value)); return *this;}
187
189
193 inline int GetScale() const { return m_scale; }
194 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
195 inline void SetScale(int value) { m_scaleHasBeenSet = true; m_scale = value; }
196 inline ContainerService& WithScale(int value) { SetScale(value); return *this;}
198
200
204 inline const ContainerServiceDeployment& GetCurrentDeployment() const { return m_currentDeployment; }
205 inline bool CurrentDeploymentHasBeenSet() const { return m_currentDeploymentHasBeenSet; }
206 template<typename CurrentDeploymentT = ContainerServiceDeployment>
207 void SetCurrentDeployment(CurrentDeploymentT&& value) { m_currentDeploymentHasBeenSet = true; m_currentDeployment = std::forward<CurrentDeploymentT>(value); }
208 template<typename CurrentDeploymentT = ContainerServiceDeployment>
209 ContainerService& WithCurrentDeployment(CurrentDeploymentT&& value) { SetCurrentDeployment(std::forward<CurrentDeploymentT>(value)); return *this;}
211
213
218 inline const ContainerServiceDeployment& GetNextDeployment() const { return m_nextDeployment; }
219 inline bool NextDeploymentHasBeenSet() const { return m_nextDeploymentHasBeenSet; }
220 template<typename NextDeploymentT = ContainerServiceDeployment>
221 void SetNextDeployment(NextDeploymentT&& value) { m_nextDeploymentHasBeenSet = true; m_nextDeployment = std::forward<NextDeploymentT>(value); }
222 template<typename NextDeploymentT = ContainerServiceDeployment>
223 ContainerService& WithNextDeployment(NextDeploymentT&& value) { SetNextDeployment(std::forward<NextDeploymentT>(value)); return *this;}
225
227
230 inline bool GetIsDisabled() const { return m_isDisabled; }
231 inline bool IsDisabledHasBeenSet() const { return m_isDisabledHasBeenSet; }
232 inline void SetIsDisabled(bool value) { m_isDisabledHasBeenSet = true; m_isDisabled = value; }
233 inline ContainerService& WithIsDisabled(bool value) { SetIsDisabled(value); return *this;}
235
237
244 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
245 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
246 template<typename PrincipalArnT = Aws::String>
247 void SetPrincipalArn(PrincipalArnT&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::forward<PrincipalArnT>(value); }
248 template<typename PrincipalArnT = Aws::String>
249 ContainerService& WithPrincipalArn(PrincipalArnT&& value) { SetPrincipalArn(std::forward<PrincipalArnT>(value)); return *this;}
251
253
258 inline const Aws::String& GetPrivateDomainName() const { return m_privateDomainName; }
259 inline bool PrivateDomainNameHasBeenSet() const { return m_privateDomainNameHasBeenSet; }
260 template<typename PrivateDomainNameT = Aws::String>
261 void SetPrivateDomainName(PrivateDomainNameT&& value) { m_privateDomainNameHasBeenSet = true; m_privateDomainName = std::forward<PrivateDomainNameT>(value); }
262 template<typename PrivateDomainNameT = Aws::String>
263 ContainerService& WithPrivateDomainName(PrivateDomainNameT&& value) { SetPrivateDomainName(std::forward<PrivateDomainNameT>(value)); return *this;}
265
267
282 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetPublicDomainNames() const { return m_publicDomainNames; }
283 inline bool PublicDomainNamesHasBeenSet() const { return m_publicDomainNamesHasBeenSet; }
284 template<typename PublicDomainNamesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
285 void SetPublicDomainNames(PublicDomainNamesT&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames = std::forward<PublicDomainNamesT>(value); }
286 template<typename PublicDomainNamesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
287 ContainerService& WithPublicDomainNames(PublicDomainNamesT&& value) { SetPublicDomainNames(std::forward<PublicDomainNamesT>(value)); return *this;}
288 template<typename PublicDomainNamesKeyT = Aws::String, typename PublicDomainNamesValueT = Aws::Vector<Aws::String>>
289 ContainerService& AddPublicDomainNames(PublicDomainNamesKeyT&& key, PublicDomainNamesValueT&& value) {
290 m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(std::forward<PublicDomainNamesKeyT>(key), std::forward<PublicDomainNamesValueT>(value)); return *this;
291 }
293
295
300 inline const Aws::String& GetUrl() const { return m_url; }
301 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
302 template<typename UrlT = Aws::String>
303 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
304 template<typename UrlT = Aws::String>
305 ContainerService& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
307
309
317 inline const PrivateRegistryAccess& GetPrivateRegistryAccess() const { return m_privateRegistryAccess; }
318 inline bool PrivateRegistryAccessHasBeenSet() const { return m_privateRegistryAccessHasBeenSet; }
319 template<typename PrivateRegistryAccessT = PrivateRegistryAccess>
320 void SetPrivateRegistryAccess(PrivateRegistryAccessT&& value) { m_privateRegistryAccessHasBeenSet = true; m_privateRegistryAccess = std::forward<PrivateRegistryAccessT>(value); }
321 template<typename PrivateRegistryAccessT = PrivateRegistryAccess>
322 ContainerService& WithPrivateRegistryAccess(PrivateRegistryAccessT&& value) { SetPrivateRegistryAccess(std::forward<PrivateRegistryAccessT>(value)); return *this;}
324 private:
325
326 Aws::String m_containerServiceName;
327 bool m_containerServiceNameHasBeenSet = false;
328
329 Aws::String m_arn;
330 bool m_arnHasBeenSet = false;
331
332 Aws::Utils::DateTime m_createdAt{};
333 bool m_createdAtHasBeenSet = false;
334
335 ResourceLocation m_location;
336 bool m_locationHasBeenSet = false;
337
338 ResourceType m_resourceType{ResourceType::NOT_SET};
339 bool m_resourceTypeHasBeenSet = false;
340
341 Aws::Vector<Tag> m_tags;
342 bool m_tagsHasBeenSet = false;
343
345 bool m_powerHasBeenSet = false;
346
347 Aws::String m_powerId;
348 bool m_powerIdHasBeenSet = false;
349
351 bool m_stateHasBeenSet = false;
352
353 ContainerServiceStateDetail m_stateDetail;
354 bool m_stateDetailHasBeenSet = false;
355
356 int m_scale{0};
357 bool m_scaleHasBeenSet = false;
358
359 ContainerServiceDeployment m_currentDeployment;
360 bool m_currentDeploymentHasBeenSet = false;
361
362 ContainerServiceDeployment m_nextDeployment;
363 bool m_nextDeploymentHasBeenSet = false;
364
365 bool m_isDisabled{false};
366 bool m_isDisabledHasBeenSet = false;
367
368 Aws::String m_principalArn;
369 bool m_principalArnHasBeenSet = false;
370
371 Aws::String m_privateDomainName;
372 bool m_privateDomainNameHasBeenSet = false;
373
375 bool m_publicDomainNamesHasBeenSet = false;
376
377 Aws::String m_url;
378 bool m_urlHasBeenSet = false;
379
380 PrivateRegistryAccess m_privateRegistryAccess;
381 bool m_privateRegistryAccessHasBeenSet = false;
382 };
383
384} // namespace Model
385} // namespace Lightsail
386} // 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