AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateContainerServiceRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lightsail/model/ContainerServicePowerName.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/lightsail/model/ContainerServiceDeploymentRequest.h>
14#include <aws/lightsail/model/PrivateRegistryAccessRequest.h>
15#include <aws/lightsail/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Lightsail
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_LIGHTSAIL_API CreateContainerServiceRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateContainerService"; }
37
38 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
39
41
42
44
61 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
62 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
63 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
64 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
65 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
66 inline CreateContainerServiceRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
67 inline CreateContainerServiceRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
68 inline CreateContainerServiceRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
70
72
82 inline const ContainerServicePowerName& GetPower() const{ return m_power; }
83 inline bool PowerHasBeenSet() const { return m_powerHasBeenSet; }
84 inline void SetPower(const ContainerServicePowerName& value) { m_powerHasBeenSet = true; m_power = value; }
85 inline void SetPower(ContainerServicePowerName&& value) { m_powerHasBeenSet = true; m_power = std::move(value); }
86 inline CreateContainerServiceRequest& WithPower(const ContainerServicePowerName& value) { SetPower(value); return *this;}
87 inline CreateContainerServiceRequest& WithPower(ContainerServicePowerName&& value) { SetPower(std::move(value)); return *this;}
89
91
99 inline int GetScale() const{ return m_scale; }
100 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
101 inline void SetScale(int value) { m_scaleHasBeenSet = true; m_scale = value; }
102 inline CreateContainerServiceRequest& WithScale(int value) { SetScale(value); return *this;}
104
106
113 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
116 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
117 inline CreateContainerServiceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
118 inline CreateContainerServiceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
119 inline CreateContainerServiceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
120 inline CreateContainerServiceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
122
124
138 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetPublicDomainNames() const{ return m_publicDomainNames; }
139 inline bool PublicDomainNamesHasBeenSet() const { return m_publicDomainNamesHasBeenSet; }
140 inline void SetPublicDomainNames(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames = value; }
141 inline void SetPublicDomainNames(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames = std::move(value); }
144 inline CreateContainerServiceRequest& AddPublicDomainNames(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, value); return *this; }
145 inline CreateContainerServiceRequest& AddPublicDomainNames(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(std::move(key), value); return *this; }
146 inline CreateContainerServiceRequest& AddPublicDomainNames(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, std::move(value)); return *this; }
147 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; }
148 inline CreateContainerServiceRequest& AddPublicDomainNames(const char* key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, std::move(value)); return *this; }
149 inline CreateContainerServiceRequest& AddPublicDomainNames(const char* key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, value); return *this; }
151
153
161 inline const ContainerServiceDeploymentRequest& GetDeployment() const{ return m_deployment; }
162 inline bool DeploymentHasBeenSet() const { return m_deploymentHasBeenSet; }
163 inline void SetDeployment(const ContainerServiceDeploymentRequest& value) { m_deploymentHasBeenSet = true; m_deployment = value; }
164 inline void SetDeployment(ContainerServiceDeploymentRequest&& value) { m_deploymentHasBeenSet = true; m_deployment = std::move(value); }
168
170
178 inline const PrivateRegistryAccessRequest& GetPrivateRegistryAccess() const{ return m_privateRegistryAccess; }
179 inline bool PrivateRegistryAccessHasBeenSet() const { return m_privateRegistryAccessHasBeenSet; }
180 inline void SetPrivateRegistryAccess(const PrivateRegistryAccessRequest& value) { m_privateRegistryAccessHasBeenSet = true; m_privateRegistryAccess = value; }
181 inline void SetPrivateRegistryAccess(PrivateRegistryAccessRequest&& value) { m_privateRegistryAccessHasBeenSet = true; m_privateRegistryAccess = std::move(value); }
185 private:
186
187 Aws::String m_serviceName;
188 bool m_serviceNameHasBeenSet = false;
189
191 bool m_powerHasBeenSet = false;
192
193 int m_scale;
194 bool m_scaleHasBeenSet = false;
195
196 Aws::Vector<Tag> m_tags;
197 bool m_tagsHasBeenSet = false;
198
200 bool m_publicDomainNamesHasBeenSet = false;
201
203 bool m_deploymentHasBeenSet = false;
204
205 PrivateRegistryAccessRequest m_privateRegistryAccess;
206 bool m_privateRegistryAccessHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace Lightsail
211} // namespace Aws
CreateContainerServiceRequest & WithDeployment(const ContainerServiceDeploymentRequest &value)
CreateContainerServiceRequest & AddTags(const Tag &value)
void SetPublicDomainNames(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
CreateContainerServiceRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetPublicDomainNames() const
CreateContainerServiceRequest & WithServiceName(const Aws::String &value)
void SetDeployment(const ContainerServiceDeploymentRequest &value)
CreateContainerServiceRequest & AddPublicDomainNames(const char *key, const Aws::Vector< Aws::String > &value)
CreateContainerServiceRequest & WithServiceName(const char *value)
void SetPrivateRegistryAccess(const PrivateRegistryAccessRequest &value)
void SetPublicDomainNames(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
CreateContainerServiceRequest & AddPublicDomainNames(const Aws::String &key, const Aws::Vector< Aws::String > &value)
const PrivateRegistryAccessRequest & GetPrivateRegistryAccess() const
void SetPower(const ContainerServicePowerName &value)
CreateContainerServiceRequest & WithPrivateRegistryAccess(const PrivateRegistryAccessRequest &value)
CreateContainerServiceRequest & AddPublicDomainNames(Aws::String &&key, const Aws::Vector< Aws::String > &value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetDeployment(ContainerServiceDeploymentRequest &&value)
void SetPrivateRegistryAccess(PrivateRegistryAccessRequest &&value)
CreateContainerServiceRequest & WithPublicDomainNames(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
CreateContainerServiceRequest & WithPower(ContainerServicePowerName &&value)
CreateContainerServiceRequest & WithPrivateRegistryAccess(PrivateRegistryAccessRequest &&value)
CreateContainerServiceRequest & WithServiceName(Aws::String &&value)
CreateContainerServiceRequest & AddPublicDomainNames(const Aws::String &key, Aws::Vector< Aws::String > &&value)
CreateContainerServiceRequest & AddPublicDomainNames(Aws::String &&key, Aws::Vector< Aws::String > &&value)
CreateContainerServiceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateContainerServiceRequest & WithPublicDomainNames(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
CreateContainerServiceRequest & WithDeployment(ContainerServiceDeploymentRequest &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateContainerServiceRequest & AddPublicDomainNames(const char *key, Aws::Vector< Aws::String > &&value)
const ContainerServiceDeploymentRequest & GetDeployment() const
CreateContainerServiceRequest & WithPower(const ContainerServicePowerName &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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