AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ServiceNameT = Aws::String>
64 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
65 template<typename ServiceNameT = Aws::String>
66 CreateContainerServiceRequest& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
68
70
80 inline ContainerServicePowerName GetPower() const { return m_power; }
81 inline bool PowerHasBeenSet() const { return m_powerHasBeenSet; }
82 inline void SetPower(ContainerServicePowerName value) { m_powerHasBeenSet = true; m_power = value; }
85
87
95 inline int GetScale() const { return m_scale; }
96 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
97 inline void SetScale(int value) { m_scaleHasBeenSet = true; m_scale = value; }
98 inline CreateContainerServiceRequest& WithScale(int value) { SetScale(value); return *this;}
100
102
109 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template<typename TagsT = Aws::Vector<Tag>>
112 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
113 template<typename TagsT = Aws::Vector<Tag>>
114 CreateContainerServiceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
115 template<typename TagsT = Tag>
116 CreateContainerServiceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
118
120
134 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetPublicDomainNames() const { return m_publicDomainNames; }
135 inline bool PublicDomainNamesHasBeenSet() const { return m_publicDomainNamesHasBeenSet; }
136 template<typename PublicDomainNamesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
137 void SetPublicDomainNames(PublicDomainNamesT&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames = std::forward<PublicDomainNamesT>(value); }
138 template<typename PublicDomainNamesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
139 CreateContainerServiceRequest& WithPublicDomainNames(PublicDomainNamesT&& value) { SetPublicDomainNames(std::forward<PublicDomainNamesT>(value)); return *this;}
140 template<typename PublicDomainNamesKeyT = Aws::String, typename PublicDomainNamesValueT = Aws::Vector<Aws::String>>
141 CreateContainerServiceRequest& AddPublicDomainNames(PublicDomainNamesKeyT&& key, PublicDomainNamesValueT&& value) {
142 m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(std::forward<PublicDomainNamesKeyT>(key), std::forward<PublicDomainNamesValueT>(value)); return *this;
143 }
145
147
155 inline const ContainerServiceDeploymentRequest& GetDeployment() const { return m_deployment; }
156 inline bool DeploymentHasBeenSet() const { return m_deploymentHasBeenSet; }
157 template<typename DeploymentT = ContainerServiceDeploymentRequest>
158 void SetDeployment(DeploymentT&& value) { m_deploymentHasBeenSet = true; m_deployment = std::forward<DeploymentT>(value); }
159 template<typename DeploymentT = ContainerServiceDeploymentRequest>
160 CreateContainerServiceRequest& WithDeployment(DeploymentT&& value) { SetDeployment(std::forward<DeploymentT>(value)); return *this;}
162
164
172 inline const PrivateRegistryAccessRequest& GetPrivateRegistryAccess() const { return m_privateRegistryAccess; }
173 inline bool PrivateRegistryAccessHasBeenSet() const { return m_privateRegistryAccessHasBeenSet; }
174 template<typename PrivateRegistryAccessT = PrivateRegistryAccessRequest>
175 void SetPrivateRegistryAccess(PrivateRegistryAccessT&& value) { m_privateRegistryAccessHasBeenSet = true; m_privateRegistryAccess = std::forward<PrivateRegistryAccessT>(value); }
176 template<typename PrivateRegistryAccessT = PrivateRegistryAccessRequest>
177 CreateContainerServiceRequest& WithPrivateRegistryAccess(PrivateRegistryAccessT&& value) { SetPrivateRegistryAccess(std::forward<PrivateRegistryAccessT>(value)); return *this;}
179 private:
180
181 Aws::String m_serviceName;
182 bool m_serviceNameHasBeenSet = false;
183
185 bool m_powerHasBeenSet = false;
186
187 int m_scale{0};
188 bool m_scaleHasBeenSet = false;
189
190 Aws::Vector<Tag> m_tags;
191 bool m_tagsHasBeenSet = false;
192
194 bool m_publicDomainNamesHasBeenSet = false;
195
196 ContainerServiceDeploymentRequest m_deployment;
197 bool m_deploymentHasBeenSet = false;
198
199 PrivateRegistryAccessRequest m_privateRegistryAccess;
200 bool m_privateRegistryAccessHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace Lightsail
205} // 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