AWS SDK for C++  1.9.16
AWS SDK for C++
UpdateContainerServiceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Lightsail
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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 "UpdateContainerService"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
44 
48  inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
49 
53  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
54 
58  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
59 
63  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
64 
68  inline UpdateContainerServiceRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
69 
73  inline UpdateContainerServiceRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
74 
78  inline UpdateContainerServiceRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
79 
80 
91  inline const ContainerServicePowerName& GetPower() const{ return m_power; }
92 
103  inline bool PowerHasBeenSet() const { return m_powerHasBeenSet; }
104 
115  inline void SetPower(const ContainerServicePowerName& value) { m_powerHasBeenSet = true; m_power = value; }
116 
127  inline void SetPower(ContainerServicePowerName&& value) { m_powerHasBeenSet = true; m_power = std::move(value); }
128 
139  inline UpdateContainerServiceRequest& WithPower(const ContainerServicePowerName& value) { SetPower(value); return *this;}
140 
151  inline UpdateContainerServiceRequest& WithPower(ContainerServicePowerName&& value) { SetPower(std::move(value)); return *this;}
152 
153 
162  inline int GetScale() const{ return m_scale; }
163 
172  inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
173 
182  inline void SetScale(int value) { m_scaleHasBeenSet = true; m_scale = value; }
183 
192  inline UpdateContainerServiceRequest& WithScale(int value) { SetScale(value); return *this;}
193 
194 
198  inline bool GetIsDisabled() const{ return m_isDisabled; }
199 
203  inline bool IsDisabledHasBeenSet() const { return m_isDisabledHasBeenSet; }
204 
208  inline void SetIsDisabled(bool value) { m_isDisabledHasBeenSet = true; m_isDisabled = value; }
209 
213  inline UpdateContainerServiceRequest& WithIsDisabled(bool value) { SetIsDisabled(value); return *this;}
214 
215 
230  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetPublicDomainNames() const{ return m_publicDomainNames; }
231 
246  inline bool PublicDomainNamesHasBeenSet() const { return m_publicDomainNamesHasBeenSet; }
247 
262  inline void SetPublicDomainNames(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames = value; }
263 
278  inline void SetPublicDomainNames(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames = std::move(value); }
279 
294  inline UpdateContainerServiceRequest& WithPublicDomainNames(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetPublicDomainNames(value); return *this;}
295 
310  inline UpdateContainerServiceRequest& WithPublicDomainNames(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetPublicDomainNames(std::move(value)); return *this;}
311 
326  inline UpdateContainerServiceRequest& AddPublicDomainNames(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, value); return *this; }
327 
342  inline UpdateContainerServiceRequest& AddPublicDomainNames(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(std::move(key), value); return *this; }
343 
358  inline UpdateContainerServiceRequest& AddPublicDomainNames(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, std::move(value)); return *this; }
359 
374  inline UpdateContainerServiceRequest& AddPublicDomainNames(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(std::move(key), std::move(value)); return *this; }
375 
390  inline UpdateContainerServiceRequest& AddPublicDomainNames(const char* key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, std::move(value)); return *this; }
391 
406  inline UpdateContainerServiceRequest& AddPublicDomainNames(const char* key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, value); return *this; }
407 
408  private:
409 
410  Aws::String m_serviceName;
411  bool m_serviceNameHasBeenSet;
412 
414  bool m_powerHasBeenSet;
415 
416  int m_scale;
417  bool m_scaleHasBeenSet;
418 
419  bool m_isDisabled;
420  bool m_isDisabledHasBeenSet;
421 
423  bool m_publicDomainNamesHasBeenSet;
424  };
425 
426 } // namespace Model
427 } // namespace Lightsail
428 } // namespace Aws
Aws::Lightsail::Model::UpdateContainerServiceRequest::WithServiceName
UpdateContainerServiceRequest & WithServiceName(const Aws::String &value)
Definition: UpdateContainerServiceRequest.h:68
Aws::Lightsail::Model::UpdateContainerServiceRequest::GetIsDisabled
bool GetIsDisabled() const
Definition: UpdateContainerServiceRequest.h:198
Aws::Lightsail::Model::UpdateContainerServiceRequest::WithServiceName
UpdateContainerServiceRequest & WithServiceName(Aws::String &&value)
Definition: UpdateContainerServiceRequest.h:73
Aws::Lightsail::Model::UpdateContainerServiceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::UpdateContainerServiceRequest::UpdateContainerServiceRequest
UpdateContainerServiceRequest()
Aws::Lightsail::Model::UpdateContainerServiceRequest::AddPublicDomainNames
UpdateContainerServiceRequest & AddPublicDomainNames(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition: UpdateContainerServiceRequest.h:374
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::UpdateContainerServiceRequest::SetPower
void SetPower(const ContainerServicePowerName &value)
Definition: UpdateContainerServiceRequest.h:115
Aws::Lightsail::Model::UpdateContainerServiceRequest::SetIsDisabled
void SetIsDisabled(bool value)
Definition: UpdateContainerServiceRequest.h:208
Aws::Lightsail::Model::UpdateContainerServiceRequest::AddPublicDomainNames
UpdateContainerServiceRequest & AddPublicDomainNames(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition: UpdateContainerServiceRequest.h:358
Aws::Lightsail::Model::UpdateContainerServiceRequest::SetPower
void SetPower(ContainerServicePowerName &&value)
Definition: UpdateContainerServiceRequest.h:127
Aws::Lightsail::Model::UpdateContainerServiceRequest::SetPublicDomainNames
void SetPublicDomainNames(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: UpdateContainerServiceRequest.h:262
Aws::Lightsail::Model::UpdateContainerServiceRequest::ScaleHasBeenSet
bool ScaleHasBeenSet() const
Definition: UpdateContainerServiceRequest.h:172
Aws::Lightsail::Model::UpdateContainerServiceRequest::AddPublicDomainNames
UpdateContainerServiceRequest & AddPublicDomainNames(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition: UpdateContainerServiceRequest.h:326
ContainerServicePowerName.h
Aws::Lightsail::Model::UpdateContainerServiceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::UpdateContainerServiceRequest::SetPublicDomainNames
void SetPublicDomainNames(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: UpdateContainerServiceRequest.h:278
Aws::Lightsail::Model::UpdateContainerServiceRequest::WithServiceName
UpdateContainerServiceRequest & WithServiceName(const char *value)
Definition: UpdateContainerServiceRequest.h:78
LightsailRequest.h
Aws::Lightsail::Model::UpdateContainerServiceRequest::GetPower
const ContainerServicePowerName & GetPower() const
Definition: UpdateContainerServiceRequest.h:91
Aws::Lightsail::Model::UpdateContainerServiceRequest::SetServiceName
void SetServiceName(Aws::String &&value)
Definition: UpdateContainerServiceRequest.h:58
Aws::Lightsail::Model::UpdateContainerServiceRequest::WithPublicDomainNames
UpdateContainerServiceRequest & WithPublicDomainNames(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: UpdateContainerServiceRequest.h:294
Aws::Lightsail::Model::UpdateContainerServiceRequest::GetScale
int GetScale() const
Definition: UpdateContainerServiceRequest.h:162
Aws::Lightsail::Model::UpdateContainerServiceRequest::GetServiceName
const Aws::String & GetServiceName() const
Definition: UpdateContainerServiceRequest.h:43
Aws::Lightsail::Model::UpdateContainerServiceRequest::WithIsDisabled
UpdateContainerServiceRequest & WithIsDisabled(bool value)
Definition: UpdateContainerServiceRequest.h:213
Aws::Lightsail::Model::UpdateContainerServiceRequest::AddPublicDomainNames
UpdateContainerServiceRequest & AddPublicDomainNames(const char *key, Aws::Vector< Aws::String > &&value)
Definition: UpdateContainerServiceRequest.h:390
Aws::Lightsail::Model::UpdateContainerServiceRequest::ServiceNameHasBeenSet
bool ServiceNameHasBeenSet() const
Definition: UpdateContainerServiceRequest.h:48
Aws::Lightsail::Model::UpdateContainerServiceRequest::AddPublicDomainNames
UpdateContainerServiceRequest & AddPublicDomainNames(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition: UpdateContainerServiceRequest.h:342
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
AWSString.h
Aws::Lightsail::Model::UpdateContainerServiceRequest::PowerHasBeenSet
bool PowerHasBeenSet() const
Definition: UpdateContainerServiceRequest.h:103
Aws::Lightsail::Model::UpdateContainerServiceRequest::WithPower
UpdateContainerServiceRequest & WithPower(ContainerServicePowerName &&value)
Definition: UpdateContainerServiceRequest.h:151
Aws::Lightsail::Model::UpdateContainerServiceRequest::AddPublicDomainNames
UpdateContainerServiceRequest & AddPublicDomainNames(const char *key, const Aws::Vector< Aws::String > &value)
Definition: UpdateContainerServiceRequest.h:406
Aws::Lightsail::Model::UpdateContainerServiceRequest::SetScale
void SetScale(int value)
Definition: UpdateContainerServiceRequest.h:182
Lightsail_EXPORTS.h
Aws::Lightsail::Model::UpdateContainerServiceRequest::SetServiceName
void SetServiceName(const char *value)
Definition: UpdateContainerServiceRequest.h:63
Aws::Lightsail::Model::UpdateContainerServiceRequest::WithPower
UpdateContainerServiceRequest & WithPower(const ContainerServicePowerName &value)
Definition: UpdateContainerServiceRequest.h:139
Aws::Lightsail::Model::ContainerServicePowerName
ContainerServicePowerName
Definition: ContainerServicePowerName.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::UpdateContainerServiceRequest::WithPublicDomainNames
UpdateContainerServiceRequest & WithPublicDomainNames(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: UpdateContainerServiceRequest.h:310
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::UpdateContainerServiceRequest::GetPublicDomainNames
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetPublicDomainNames() const
Definition: UpdateContainerServiceRequest.h:230
Aws::Lightsail::Model::UpdateContainerServiceRequest::SetServiceName
void SetServiceName(const Aws::String &value)
Definition: UpdateContainerServiceRequest.h:53
AWSMap.h
Aws::Lightsail::Model::UpdateContainerServiceRequest
Definition: UpdateContainerServiceRequest.h:25
Aws::Lightsail::Model::UpdateContainerServiceRequest::PublicDomainNamesHasBeenSet
bool PublicDomainNamesHasBeenSet() const
Definition: UpdateContainerServiceRequest.h:246
Aws::Lightsail::Model::UpdateContainerServiceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateContainerServiceRequest.h:33
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Lightsail::Model::UpdateContainerServiceRequest::WithScale
UpdateContainerServiceRequest & WithScale(int value)
Definition: UpdateContainerServiceRequest.h:192
Aws::Lightsail::Model::UpdateContainerServiceRequest::IsDisabledHasBeenSet
bool IsDisabledHasBeenSet() const
Definition: UpdateContainerServiceRequest.h:203