AWS SDK for C++  1.9.125
AWS SDK for C++
CreateContainerServiceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Lightsail
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateContainerService"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
57  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
58 
74  inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
75 
91  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
92 
108  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
109 
125  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
126 
142  inline CreateContainerServiceRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
143 
159  inline CreateContainerServiceRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
160 
176  inline CreateContainerServiceRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
177 
178 
189  inline const ContainerServicePowerName& GetPower() const{ return m_power; }
190 
201  inline bool PowerHasBeenSet() const { return m_powerHasBeenSet; }
202 
213  inline void SetPower(const ContainerServicePowerName& value) { m_powerHasBeenSet = true; m_power = value; }
214 
225  inline void SetPower(ContainerServicePowerName&& value) { m_powerHasBeenSet = true; m_power = std::move(value); }
226 
237  inline CreateContainerServiceRequest& WithPower(const ContainerServicePowerName& value) { SetPower(value); return *this;}
238 
249  inline CreateContainerServiceRequest& WithPower(ContainerServicePowerName&& value) { SetPower(std::move(value)); return *this;}
250 
251 
260  inline int GetScale() const{ return m_scale; }
261 
270  inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
271 
280  inline void SetScale(int value) { m_scaleHasBeenSet = true; m_scale = value; }
281 
290  inline CreateContainerServiceRequest& WithScale(int value) { SetScale(value); return *this;}
291 
292 
300  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
301 
309  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
310 
318  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
319 
327  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
328 
336  inline CreateContainerServiceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
337 
345  inline CreateContainerServiceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
346 
354  inline CreateContainerServiceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
355 
363  inline CreateContainerServiceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
364 
365 
380  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetPublicDomainNames() const{ return m_publicDomainNames; }
381 
396  inline bool PublicDomainNamesHasBeenSet() const { return m_publicDomainNamesHasBeenSet; }
397 
412  inline void SetPublicDomainNames(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames = value; }
413 
428  inline void SetPublicDomainNames(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames = std::move(value); }
429 
444  inline CreateContainerServiceRequest& WithPublicDomainNames(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetPublicDomainNames(value); return *this;}
445 
460  inline CreateContainerServiceRequest& WithPublicDomainNames(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetPublicDomainNames(std::move(value)); return *this;}
461 
476  inline CreateContainerServiceRequest& AddPublicDomainNames(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, value); return *this; }
477 
492  inline CreateContainerServiceRequest& AddPublicDomainNames(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(std::move(key), value); return *this; }
493 
508  inline CreateContainerServiceRequest& AddPublicDomainNames(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, std::move(value)); return *this; }
509 
524  inline CreateContainerServiceRequest& AddPublicDomainNames(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(std::move(key), std::move(value)); return *this; }
525 
540  inline CreateContainerServiceRequest& AddPublicDomainNames(const char* key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, std::move(value)); return *this; }
541 
556  inline CreateContainerServiceRequest& AddPublicDomainNames(const char* key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, value); return *this; }
557 
558 
567  inline const ContainerServiceDeploymentRequest& GetDeployment() const{ return m_deployment; }
568 
577  inline bool DeploymentHasBeenSet() const { return m_deploymentHasBeenSet; }
578 
587  inline void SetDeployment(const ContainerServiceDeploymentRequest& value) { m_deploymentHasBeenSet = true; m_deployment = value; }
588 
597  inline void SetDeployment(ContainerServiceDeploymentRequest&& value) { m_deploymentHasBeenSet = true; m_deployment = std::move(value); }
598 
607  inline CreateContainerServiceRequest& WithDeployment(const ContainerServiceDeploymentRequest& value) { SetDeployment(value); return *this;}
608 
617  inline CreateContainerServiceRequest& WithDeployment(ContainerServiceDeploymentRequest&& value) { SetDeployment(std::move(value)); return *this;}
618 
619  private:
620 
621  Aws::String m_serviceName;
622  bool m_serviceNameHasBeenSet;
623 
625  bool m_powerHasBeenSet;
626 
627  int m_scale;
628  bool m_scaleHasBeenSet;
629 
630  Aws::Vector<Tag> m_tags;
631  bool m_tagsHasBeenSet;
632 
634  bool m_publicDomainNamesHasBeenSet;
635 
637  bool m_deploymentHasBeenSet;
638  };
639 
640 } // namespace Model
641 } // namespace Lightsail
642 } // namespace Aws
Aws::Lightsail::Model::CreateContainerServiceRequest::AddTags
CreateContainerServiceRequest & AddTags(Tag &&value)
Definition: CreateContainerServiceRequest.h:363
Aws::Lightsail::Model::CreateContainerServiceRequest::WithServiceName
CreateContainerServiceRequest & WithServiceName(Aws::String &&value)
Definition: CreateContainerServiceRequest.h:159
Aws::Lightsail::Model::CreateContainerServiceRequest::SetScale
void SetScale(int value)
Definition: CreateContainerServiceRequest.h:280
Aws::Lightsail::Model::CreateContainerServiceRequest::GetDeployment
const ContainerServiceDeploymentRequest & GetDeployment() const
Definition: CreateContainerServiceRequest.h:567
Aws::Lightsail::Model::CreateContainerServiceRequest::AddPublicDomainNames
CreateContainerServiceRequest & AddPublicDomainNames(const char *key, Aws::Vector< Aws::String > &&value)
Definition: CreateContainerServiceRequest.h:540
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::CreateContainerServiceRequest::WithTags
CreateContainerServiceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateContainerServiceRequest.h:336
Aws::Lightsail::Model::CreateContainerServiceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateContainerServiceRequest.h:309
Aws::Lightsail::Model::CreateContainerServiceRequest::WithPower
CreateContainerServiceRequest & WithPower(const ContainerServicePowerName &value)
Definition: CreateContainerServiceRequest.h:237
Aws::Lightsail::Model::CreateContainerServiceRequest::SetPublicDomainNames
void SetPublicDomainNames(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: CreateContainerServiceRequest.h:412
Aws::Lightsail::Model::CreateContainerServiceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateContainerServiceRequest.h:300
Aws::Lightsail::Model::CreateContainerServiceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateContainerServiceRequest.h:327
Aws::Lightsail::Model::CreateContainerServiceRequest::SetPower
void SetPower(const ContainerServicePowerName &value)
Definition: CreateContainerServiceRequest.h:213
Aws::Lightsail::Model::CreateContainerServiceRequest::WithTags
CreateContainerServiceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateContainerServiceRequest.h:345
Aws::Lightsail::Model::CreateContainerServiceRequest::AddPublicDomainNames
CreateContainerServiceRequest & AddPublicDomainNames(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition: CreateContainerServiceRequest.h:524
ContainerServicePowerName.h
Aws::Lightsail::Model::CreateContainerServiceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateContainerServiceRequest.h:35
Aws::Lightsail::Model::CreateContainerServiceRequest::WithDeployment
CreateContainerServiceRequest & WithDeployment(const ContainerServiceDeploymentRequest &value)
Definition: CreateContainerServiceRequest.h:607
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
ContainerServiceDeploymentRequest.h
Aws::Lightsail::Model::CreateContainerServiceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::CreateContainerServiceRequest::CreateContainerServiceRequest
CreateContainerServiceRequest()
AWSVector.h
Aws::Lightsail::Model::CreateContainerServiceRequest::WithPublicDomainNames
CreateContainerServiceRequest & WithPublicDomainNames(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: CreateContainerServiceRequest.h:444
LightsailRequest.h
Aws::Lightsail::Model::CreateContainerServiceRequest::GetServiceName
const Aws::String & GetServiceName() const
Definition: CreateContainerServiceRequest.h:57
Aws::Lightsail::Model::CreateContainerServiceRequest
Definition: CreateContainerServiceRequest.h:27
Aws::Lightsail::Model::CreateContainerServiceRequest::SetDeployment
void SetDeployment(ContainerServiceDeploymentRequest &&value)
Definition: CreateContainerServiceRequest.h:597
Aws::Lightsail::Model::CreateContainerServiceRequest::SetDeployment
void SetDeployment(const ContainerServiceDeploymentRequest &value)
Definition: CreateContainerServiceRequest.h:587
Aws::Lightsail::Model::CreateContainerServiceRequest::SetPublicDomainNames
void SetPublicDomainNames(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: CreateContainerServiceRequest.h:428
Aws::Lightsail::Model::CreateContainerServiceRequest::WithScale
CreateContainerServiceRequest & WithScale(int value)
Definition: CreateContainerServiceRequest.h:290
Aws::Lightsail::Model::CreateContainerServiceRequest::SetServiceName
void SetServiceName(const Aws::String &value)
Definition: CreateContainerServiceRequest.h:91
Aws::Lightsail::Model::CreateContainerServiceRequest::AddPublicDomainNames
CreateContainerServiceRequest & AddPublicDomainNames(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition: CreateContainerServiceRequest.h:492
Aws::Lightsail::Model::CreateContainerServiceRequest::SetPower
void SetPower(ContainerServicePowerName &&value)
Definition: CreateContainerServiceRequest.h:225
Aws::Lightsail::Model::CreateContainerServiceRequest::GetPower
const ContainerServicePowerName & GetPower() const
Definition: CreateContainerServiceRequest.h:189
Aws::Lightsail::Model::CreateContainerServiceRequest::WithPublicDomainNames
CreateContainerServiceRequest & WithPublicDomainNames(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: CreateContainerServiceRequest.h:460
Tag.h
Aws::Lightsail::Model::CreateContainerServiceRequest::WithPower
CreateContainerServiceRequest & WithPower(ContainerServicePowerName &&value)
Definition: CreateContainerServiceRequest.h:249
Aws::Lightsail::Model::CreateContainerServiceRequest::WithDeployment
CreateContainerServiceRequest & WithDeployment(ContainerServiceDeploymentRequest &&value)
Definition: CreateContainerServiceRequest.h:617
Aws::Lightsail::Model::CreateContainerServiceRequest::WithServiceName
CreateContainerServiceRequest & WithServiceName(const char *value)
Definition: CreateContainerServiceRequest.h:176
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::ContainerServiceDeploymentRequest
Definition: ContainerServiceDeploymentRequest.h:38
Aws::Lightsail::Model::CreateContainerServiceRequest::ServiceNameHasBeenSet
bool ServiceNameHasBeenSet() const
Definition: CreateContainerServiceRequest.h:74
Aws::Lightsail::Model::Tag
Definition: Tag.h:35
AWSString.h
Aws::Lightsail::Model::CreateContainerServiceRequest::AddPublicDomainNames
CreateContainerServiceRequest & AddPublicDomainNames(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition: CreateContainerServiceRequest.h:476
Aws::Lightsail::Model::CreateContainerServiceRequest::GetPublicDomainNames
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetPublicDomainNames() const
Definition: CreateContainerServiceRequest.h:380
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CreateContainerServiceRequest::DeploymentHasBeenSet
bool DeploymentHasBeenSet() const
Definition: CreateContainerServiceRequest.h:577
Aws::Lightsail::Model::ContainerServicePowerName
ContainerServicePowerName
Definition: ContainerServicePowerName.h:17
Aws::Lightsail::Model::CreateContainerServiceRequest::WithServiceName
CreateContainerServiceRequest & WithServiceName(const Aws::String &value)
Definition: CreateContainerServiceRequest.h:142
Aws::Lightsail::Model::CreateContainerServiceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::CreateContainerServiceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateContainerServiceRequest.h:318
Aws::Lightsail::Model::CreateContainerServiceRequest::SetServiceName
void SetServiceName(const char *value)
Definition: CreateContainerServiceRequest.h:125
Aws::Lightsail::Model::CreateContainerServiceRequest::SetServiceName
void SetServiceName(Aws::String &&value)
Definition: CreateContainerServiceRequest.h:108
Aws::Lightsail::Model::CreateContainerServiceRequest::PowerHasBeenSet
bool PowerHasBeenSet() const
Definition: CreateContainerServiceRequest.h:201
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::CreateContainerServiceRequest::GetScale
int GetScale() const
Definition: CreateContainerServiceRequest.h:260
Aws::Lightsail::Model::CreateContainerServiceRequest::AddTags
CreateContainerServiceRequest & AddTags(const Tag &value)
Definition: CreateContainerServiceRequest.h:354
Aws::Lightsail::Model::CreateContainerServiceRequest::AddPublicDomainNames
CreateContainerServiceRequest & AddPublicDomainNames(const char *key, const Aws::Vector< Aws::String > &value)
Definition: CreateContainerServiceRequest.h:556
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
AWSMap.h
Aws::Lightsail::Model::CreateContainerServiceRequest::AddPublicDomainNames
CreateContainerServiceRequest & AddPublicDomainNames(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition: CreateContainerServiceRequest.h:508
Aws::Lightsail::Model::CreateContainerServiceRequest::PublicDomainNamesHasBeenSet
bool PublicDomainNamesHasBeenSet() const
Definition: CreateContainerServiceRequest.h:396
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Lightsail::Model::CreateContainerServiceRequest::ScaleHasBeenSet
bool ScaleHasBeenSet() const
Definition: CreateContainerServiceRequest.h:270