AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateContainerServiceRequest.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/AWSMap.h>
12#include <aws/lightsail/model/PrivateRegistryAccessRequest.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Lightsail
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LIGHTSAIL_API UpdateContainerServiceRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateContainerService"; }
35
36 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
46 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
47 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
48 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
49 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
50 inline UpdateContainerServiceRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
51 inline UpdateContainerServiceRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
52 inline UpdateContainerServiceRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
54
56
66 inline const ContainerServicePowerName& GetPower() const{ return m_power; }
67 inline bool PowerHasBeenSet() const { return m_powerHasBeenSet; }
68 inline void SetPower(const ContainerServicePowerName& value) { m_powerHasBeenSet = true; m_power = value; }
69 inline void SetPower(ContainerServicePowerName&& value) { m_powerHasBeenSet = true; m_power = std::move(value); }
70 inline UpdateContainerServiceRequest& WithPower(const ContainerServicePowerName& value) { SetPower(value); return *this;}
71 inline UpdateContainerServiceRequest& WithPower(ContainerServicePowerName&& value) { SetPower(std::move(value)); return *this;}
73
75
83 inline int GetScale() const{ return m_scale; }
84 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
85 inline void SetScale(int value) { m_scaleHasBeenSet = true; m_scale = value; }
86 inline UpdateContainerServiceRequest& WithScale(int value) { SetScale(value); return *this;}
88
90
93 inline bool GetIsDisabled() const{ return m_isDisabled; }
94 inline bool IsDisabledHasBeenSet() const { return m_isDisabledHasBeenSet; }
95 inline void SetIsDisabled(bool value) { m_isDisabledHasBeenSet = true; m_isDisabled = value; }
96 inline UpdateContainerServiceRequest& WithIsDisabled(bool value) { SetIsDisabled(value); return *this;}
98
100
114 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetPublicDomainNames() const{ return m_publicDomainNames; }
115 inline bool PublicDomainNamesHasBeenSet() const { return m_publicDomainNamesHasBeenSet; }
116 inline void SetPublicDomainNames(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames = value; }
117 inline void SetPublicDomainNames(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames = std::move(value); }
120 inline UpdateContainerServiceRequest& AddPublicDomainNames(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, value); return *this; }
121 inline UpdateContainerServiceRequest& AddPublicDomainNames(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(std::move(key), value); return *this; }
122 inline UpdateContainerServiceRequest& AddPublicDomainNames(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, std::move(value)); return *this; }
123 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; }
124 inline UpdateContainerServiceRequest& AddPublicDomainNames(const char* key, Aws::Vector<Aws::String>&& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, std::move(value)); return *this; }
125 inline UpdateContainerServiceRequest& AddPublicDomainNames(const char* key, const Aws::Vector<Aws::String>& value) { m_publicDomainNamesHasBeenSet = true; m_publicDomainNames.emplace(key, value); return *this; }
127
129
137 inline const PrivateRegistryAccessRequest& GetPrivateRegistryAccess() const{ return m_privateRegistryAccess; }
138 inline bool PrivateRegistryAccessHasBeenSet() const { return m_privateRegistryAccessHasBeenSet; }
139 inline void SetPrivateRegistryAccess(const PrivateRegistryAccessRequest& value) { m_privateRegistryAccessHasBeenSet = true; m_privateRegistryAccess = value; }
140 inline void SetPrivateRegistryAccess(PrivateRegistryAccessRequest&& value) { m_privateRegistryAccessHasBeenSet = true; m_privateRegistryAccess = std::move(value); }
144 private:
145
146 Aws::String m_serviceName;
147 bool m_serviceNameHasBeenSet = false;
148
150 bool m_powerHasBeenSet = false;
151
152 int m_scale;
153 bool m_scaleHasBeenSet = false;
154
155 bool m_isDisabled;
156 bool m_isDisabledHasBeenSet = false;
157
159 bool m_publicDomainNamesHasBeenSet = false;
160
161 PrivateRegistryAccessRequest m_privateRegistryAccess;
162 bool m_privateRegistryAccessHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace Lightsail
167} // namespace Aws
UpdateContainerServiceRequest & WithPower(const ContainerServicePowerName &value)
UpdateContainerServiceRequest & AddPublicDomainNames(Aws::String &&key, Aws::Vector< Aws::String > &&value)
void SetPower(const ContainerServicePowerName &value)
UpdateContainerServiceRequest & WithPower(ContainerServicePowerName &&value)
void SetPublicDomainNames(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetPrivateRegistryAccess(const PrivateRegistryAccessRequest &value)
void SetPublicDomainNames(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
UpdateContainerServiceRequest & WithPrivateRegistryAccess(PrivateRegistryAccessRequest &&value)
UpdateContainerServiceRequest & AddPublicDomainNames(const Aws::String &key, const Aws::Vector< Aws::String > &value)
UpdateContainerServiceRequest & WithServiceName(const char *value)
UpdateContainerServiceRequest & WithPrivateRegistryAccess(const PrivateRegistryAccessRequest &value)
UpdateContainerServiceRequest & WithPublicDomainNames(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
UpdateContainerServiceRequest & WithServiceName(Aws::String &&value)
void SetPrivateRegistryAccess(PrivateRegistryAccessRequest &&value)
UpdateContainerServiceRequest & WithServiceName(const Aws::String &value)
UpdateContainerServiceRequest & AddPublicDomainNames(const char *key, const Aws::Vector< Aws::String > &value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
const PrivateRegistryAccessRequest & GetPrivateRegistryAccess() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetPublicDomainNames() const
UpdateContainerServiceRequest & AddPublicDomainNames(const char *key, Aws::Vector< Aws::String > &&value)
UpdateContainerServiceRequest & AddPublicDomainNames(Aws::String &&key, const Aws::Vector< Aws::String > &value)
UpdateContainerServiceRequest & WithPublicDomainNames(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
UpdateContainerServiceRequest & AddPublicDomainNames(const Aws::String &key, Aws::Vector< Aws::String > &&value)
UpdateContainerServiceRequest & WithIsDisabled(bool 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