AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateContainerServiceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/LightsailRequest.h>
11#include <aws/lightsail/Lightsail_EXPORTS.h>
12#include <aws/lightsail/model/ContainerServiceDeploymentRequest.h>
13#include <aws/lightsail/model/ContainerServicePowerName.h>
14#include <aws/lightsail/model/PrivateRegistryAccessRequest.h>
15#include <aws/lightsail/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Lightsail {
21namespace Model {
22
26 public:
27 AWS_LIGHTSAIL_API CreateContainerServiceRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateContainerService"; }
34
35 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
36
38
40
57 inline const Aws::String& GetServiceName() const { return m_serviceName; }
58 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
59 template <typename ServiceNameT = Aws::String>
60 void SetServiceName(ServiceNameT&& value) {
61 m_serviceNameHasBeenSet = true;
62 m_serviceName = std::forward<ServiceNameT>(value);
63 }
64 template <typename ServiceNameT = Aws::String>
66 SetServiceName(std::forward<ServiceNameT>(value));
67 return *this;
68 }
70
72
82 inline ContainerServicePowerName GetPower() const { return m_power; }
83 inline bool PowerHasBeenSet() const { return m_powerHasBeenSet; }
85 m_powerHasBeenSet = true;
86 m_power = value;
87 }
89 SetPower(value);
90 return *this;
91 }
93
95
103 inline int GetScale() const { return m_scale; }
104 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
105 inline void SetScale(int value) {
106 m_scaleHasBeenSet = true;
107 m_scale = value;
108 }
110 SetScale(value);
111 return *this;
112 }
114
116
123 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 template <typename TagsT = Aws::Vector<Tag>>
126 void SetTags(TagsT&& value) {
127 m_tagsHasBeenSet = true;
128 m_tags = std::forward<TagsT>(value);
129 }
130 template <typename TagsT = Aws::Vector<Tag>>
132 SetTags(std::forward<TagsT>(value));
133 return *this;
134 }
135 template <typename TagsT = Tag>
137 m_tagsHasBeenSet = true;
138 m_tags.emplace_back(std::forward<TagsT>(value));
139 return *this;
140 }
142
144
158 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetPublicDomainNames() const { return m_publicDomainNames; }
159 inline bool PublicDomainNamesHasBeenSet() const { return m_publicDomainNamesHasBeenSet; }
160 template <typename PublicDomainNamesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
161 void SetPublicDomainNames(PublicDomainNamesT&& value) {
162 m_publicDomainNamesHasBeenSet = true;
163 m_publicDomainNames = std::forward<PublicDomainNamesT>(value);
164 }
165 template <typename PublicDomainNamesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
167 SetPublicDomainNames(std::forward<PublicDomainNamesT>(value));
168 return *this;
169 }
170 template <typename PublicDomainNamesKeyT = Aws::String, typename PublicDomainNamesValueT = Aws::Vector<Aws::String>>
171 CreateContainerServiceRequest& AddPublicDomainNames(PublicDomainNamesKeyT&& key, PublicDomainNamesValueT&& value) {
172 m_publicDomainNamesHasBeenSet = true;
173 m_publicDomainNames.emplace(std::forward<PublicDomainNamesKeyT>(key), std::forward<PublicDomainNamesValueT>(value));
174 return *this;
175 }
177
179
187 inline const ContainerServiceDeploymentRequest& GetDeployment() const { return m_deployment; }
188 inline bool DeploymentHasBeenSet() const { return m_deploymentHasBeenSet; }
189 template <typename DeploymentT = ContainerServiceDeploymentRequest>
190 void SetDeployment(DeploymentT&& value) {
191 m_deploymentHasBeenSet = true;
192 m_deployment = std::forward<DeploymentT>(value);
193 }
194 template <typename DeploymentT = ContainerServiceDeploymentRequest>
196 SetDeployment(std::forward<DeploymentT>(value));
197 return *this;
198 }
200
202
210 inline const PrivateRegistryAccessRequest& GetPrivateRegistryAccess() const { return m_privateRegistryAccess; }
211 inline bool PrivateRegistryAccessHasBeenSet() const { return m_privateRegistryAccessHasBeenSet; }
212 template <typename PrivateRegistryAccessT = PrivateRegistryAccessRequest>
213 void SetPrivateRegistryAccess(PrivateRegistryAccessT&& value) {
214 m_privateRegistryAccessHasBeenSet = true;
215 m_privateRegistryAccess = std::forward<PrivateRegistryAccessT>(value);
216 }
217 template <typename PrivateRegistryAccessT = PrivateRegistryAccessRequest>
219 SetPrivateRegistryAccess(std::forward<PrivateRegistryAccessT>(value));
220 return *this;
221 }
223 private:
224 Aws::String m_serviceName;
225
227
228 int m_scale{0};
229
230 Aws::Vector<Tag> m_tags;
231
233
234 ContainerServiceDeploymentRequest m_deployment;
235
236 PrivateRegistryAccessRequest m_privateRegistryAccess;
237 bool m_serviceNameHasBeenSet = false;
238 bool m_powerHasBeenSet = false;
239 bool m_scaleHasBeenSet = false;
240 bool m_tagsHasBeenSet = false;
241 bool m_publicDomainNamesHasBeenSet = false;
242 bool m_deploymentHasBeenSet = false;
243 bool m_privateRegistryAccessHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace Lightsail
248} // namespace Aws
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetPublicDomainNames() const
CreateContainerServiceRequest & WithPrivateRegistryAccess(PrivateRegistryAccessT &&value)
CreateContainerServiceRequest & WithPower(ContainerServicePowerName value)
CreateContainerServiceRequest & AddTags(TagsT &&value)
CreateContainerServiceRequest & WithTags(TagsT &&value)
const PrivateRegistryAccessRequest & GetPrivateRegistryAccess() const
CreateContainerServiceRequest & WithPublicDomainNames(PublicDomainNamesT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateContainerServiceRequest & AddPublicDomainNames(PublicDomainNamesKeyT &&key, PublicDomainNamesValueT &&value)
CreateContainerServiceRequest & WithDeployment(DeploymentT &&value)
CreateContainerServiceRequest & WithServiceName(ServiceNameT &&value)
AWS_LIGHTSAIL_API CreateContainerServiceRequest()=default
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
const ContainerServiceDeploymentRequest & GetDeployment() const
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