AWS SDK for C++  1.9.20
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 
299  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
300 
307  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
308 
315  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
316 
323  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
324 
331  inline CreateContainerServiceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
332 
339  inline CreateContainerServiceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
340 
347  inline CreateContainerServiceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
348 
355  inline CreateContainerServiceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
356 
357 
372  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetPublicDomainNames() const{ return m_publicDomainNames; }
373 
388  inline bool PublicDomainNamesHasBeenSet() const { return m_publicDomainNamesHasBeenSet; }
389 
404  inline void SetPublicDomainNames(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames = value; }
405 
420  inline void SetPublicDomainNames(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames = std::move(value); }
421 
436  inline CreateContainerServiceRequest& WithPublicDomainNames(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetPublicDomainNames(value); return *this;}
437 
452  inline CreateContainerServiceRequest& WithPublicDomainNames(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetPublicDomainNames(std::move(value)); return *this;}
453 
468  inline CreateContainerServiceRequest& AddPublicDomainNames(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, value); return *this; }
469 
484  inline CreateContainerServiceRequest& AddPublicDomainNames(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(std::move(key), value); return *this; }
485 
500  inline CreateContainerServiceRequest& AddPublicDomainNames(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, std::move(value)); return *this; }
501 
516  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; }
517 
532  inline CreateContainerServiceRequest& AddPublicDomainNames(const char* key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, std::move(value)); return *this; }
533 
548  inline CreateContainerServiceRequest& AddPublicDomainNames(const char* key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, value); return *this; }
549 
550 
559  inline const ContainerServiceDeploymentRequest& GetDeployment() const{ return m_deployment; }
560 
569  inline bool DeploymentHasBeenSet() const { return m_deploymentHasBeenSet; }
570 
579  inline void SetDeployment(const ContainerServiceDeploymentRequest& value) { m_deploymentHasBeenSet = true; m_deployment = value; }
580 
589  inline void SetDeployment(ContainerServiceDeploymentRequest&& value) { m_deploymentHasBeenSet = true; m_deployment = std::move(value); }
590 
599  inline CreateContainerServiceRequest& WithDeployment(const ContainerServiceDeploymentRequest& value) { SetDeployment(value); return *this;}
600 
609  inline CreateContainerServiceRequest& WithDeployment(ContainerServiceDeploymentRequest&& value) { SetDeployment(std::move(value)); return *this;}
610 
611  private:
612 
613  Aws::String m_serviceName;
614  bool m_serviceNameHasBeenSet;
615 
617  bool m_powerHasBeenSet;
618 
619  int m_scale;
620  bool m_scaleHasBeenSet;
621 
622  Aws::Vector<Tag> m_tags;
623  bool m_tagsHasBeenSet;
624 
626  bool m_publicDomainNamesHasBeenSet;
627 
629  bool m_deploymentHasBeenSet;
630  };
631 
632 } // namespace Model
633 } // namespace Lightsail
634 } // namespace Aws
Aws::Lightsail::Model::CreateContainerServiceRequest::AddTags
CreateContainerServiceRequest & AddTags(Tag &&value)
Definition: CreateContainerServiceRequest.h:355
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:559
Aws::Lightsail::Model::CreateContainerServiceRequest::AddPublicDomainNames
CreateContainerServiceRequest & AddPublicDomainNames(const char *key, Aws::Vector< Aws::String > &&value)
Definition: CreateContainerServiceRequest.h:532
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:331
Aws::Lightsail::Model::CreateContainerServiceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateContainerServiceRequest.h:307
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:404
Aws::Lightsail::Model::CreateContainerServiceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateContainerServiceRequest.h:299
Aws::Lightsail::Model::CreateContainerServiceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateContainerServiceRequest.h:323
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:339
Aws::Lightsail::Model::CreateContainerServiceRequest::AddPublicDomainNames
CreateContainerServiceRequest & AddPublicDomainNames(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition: CreateContainerServiceRequest.h:516
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:599
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:436
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:589
Aws::Lightsail::Model::CreateContainerServiceRequest::SetDeployment
void SetDeployment(const ContainerServiceDeploymentRequest &value)
Definition: CreateContainerServiceRequest.h:579
Aws::Lightsail::Model::CreateContainerServiceRequest::SetPublicDomainNames
void SetPublicDomainNames(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: CreateContainerServiceRequest.h:420
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:484
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:452
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:609
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:468
Aws::Lightsail::Model::CreateContainerServiceRequest::GetPublicDomainNames
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetPublicDomainNames() const
Definition: CreateContainerServiceRequest.h:372
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CreateContainerServiceRequest::DeploymentHasBeenSet
bool DeploymentHasBeenSet() const
Definition: CreateContainerServiceRequest.h:569
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:315
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:347
Aws::Lightsail::Model::CreateContainerServiceRequest::AddPublicDomainNames
CreateContainerServiceRequest & AddPublicDomainNames(const char *key, const Aws::Vector< Aws::String > &value)
Definition: CreateContainerServiceRequest.h:548
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:500
Aws::Lightsail::Model::CreateContainerServiceRequest::PublicDomainNamesHasBeenSet
bool PublicDomainNamesHasBeenSet() const
Definition: CreateContainerServiceRequest.h:388
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