AWS SDK for C++  1.9.20
AWS SDK for C++
UpdateClusterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace ECS
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 "UpdateCluster"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetCluster() const{ return m_cluster; }
44 
48  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
49 
53  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
54 
58  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
59 
63  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
64 
68  inline UpdateClusterRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
69 
73  inline UpdateClusterRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
74 
78  inline UpdateClusterRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
79 
80 
84  inline const Aws::Vector<ClusterSetting>& GetSettings() const{ return m_settings; }
85 
89  inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
90 
94  inline void SetSettings(const Aws::Vector<ClusterSetting>& value) { m_settingsHasBeenSet = true; m_settings = value; }
95 
99  inline void SetSettings(Aws::Vector<ClusterSetting>&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
100 
104  inline UpdateClusterRequest& WithSettings(const Aws::Vector<ClusterSetting>& value) { SetSettings(value); return *this;}
105 
109  inline UpdateClusterRequest& WithSettings(Aws::Vector<ClusterSetting>&& value) { SetSettings(std::move(value)); return *this;}
110 
114  inline UpdateClusterRequest& AddSettings(const ClusterSetting& value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; }
115 
119  inline UpdateClusterRequest& AddSettings(ClusterSetting&& value) { m_settingsHasBeenSet = true; m_settings.push_back(std::move(value)); return *this; }
120 
121 
125  inline const ClusterConfiguration& GetConfiguration() const{ return m_configuration; }
126 
130  inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
131 
135  inline void SetConfiguration(const ClusterConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
136 
140  inline void SetConfiguration(ClusterConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
141 
145  inline UpdateClusterRequest& WithConfiguration(const ClusterConfiguration& value) { SetConfiguration(value); return *this;}
146 
150  inline UpdateClusterRequest& WithConfiguration(ClusterConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
151 
152  private:
153 
154  Aws::String m_cluster;
155  bool m_clusterHasBeenSet;
156 
157  Aws::Vector<ClusterSetting> m_settings;
158  bool m_settingsHasBeenSet;
159 
160  ClusterConfiguration m_configuration;
161  bool m_configurationHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace ECS
166 } // namespace Aws
Aws::ECS::Model::UpdateClusterRequest::WithConfiguration
UpdateClusterRequest & WithConfiguration(ClusterConfiguration &&value)
Definition: UpdateClusterRequest.h:150
Aws::ECS::Model::UpdateClusterRequest::AddSettings
UpdateClusterRequest & AddSettings(ClusterSetting &&value)
Definition: UpdateClusterRequest.h:119
Aws::ECS::Model::UpdateClusterRequest::WithSettings
UpdateClusterRequest & WithSettings(Aws::Vector< ClusterSetting > &&value)
Definition: UpdateClusterRequest.h:109
Aws::ECS::Model::UpdateClusterRequest::ConfigurationHasBeenSet
bool ConfigurationHasBeenSet() const
Definition: UpdateClusterRequest.h:130
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::UpdateClusterRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::UpdateClusterRequest::WithSettings
UpdateClusterRequest & WithSettings(const Aws::Vector< ClusterSetting > &value)
Definition: UpdateClusterRequest.h:104
Aws::ECS::Model::UpdateClusterRequest
Definition: UpdateClusterRequest.h:25
Aws::ECS::Model::UpdateClusterRequest::GetConfiguration
const ClusterConfiguration & GetConfiguration() const
Definition: UpdateClusterRequest.h:125
Aws::ECS::Model::UpdateClusterRequest::WithConfiguration
UpdateClusterRequest & WithConfiguration(const ClusterConfiguration &value)
Definition: UpdateClusterRequest.h:145
Aws::ECS::Model::UpdateClusterRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: UpdateClusterRequest.h:58
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::UpdateClusterRequest::SetCluster
void SetCluster(const char *value)
Definition: UpdateClusterRequest.h:63
Aws::ECS::Model::ClusterConfiguration
Definition: ClusterConfiguration.h:33
AWSVector.h
Aws::ECS::Model::UpdateClusterRequest::SetSettings
void SetSettings(Aws::Vector< ClusterSetting > &&value)
Definition: UpdateClusterRequest.h:99
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::UpdateClusterRequest::WithCluster
UpdateClusterRequest & WithCluster(Aws::String &&value)
Definition: UpdateClusterRequest.h:73
Aws::ECS::Model::UpdateClusterRequest::WithCluster
UpdateClusterRequest & WithCluster(const Aws::String &value)
Definition: UpdateClusterRequest.h:68
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
ClusterConfiguration.h
Aws::ECS::Model::UpdateClusterRequest::GetCluster
const Aws::String & GetCluster() const
Definition: UpdateClusterRequest.h:43
Aws::ECS::Model::UpdateClusterRequest::GetSettings
const Aws::Vector< ClusterSetting > & GetSettings() const
Definition: UpdateClusterRequest.h:84
Aws::ECS::Model::UpdateClusterRequest::AddSettings
UpdateClusterRequest & AddSettings(const ClusterSetting &value)
Definition: UpdateClusterRequest.h:114
Aws::ECS::Model::UpdateClusterRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: UpdateClusterRequest.h:53
AWSString.h
Aws::ECS::Model::ClusterSetting
Definition: ClusterSetting.h:34
Aws::ECS::Model::UpdateClusterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::UpdateClusterRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: UpdateClusterRequest.h:48
Aws::ECS::Model::UpdateClusterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateClusterRequest.h:33
Aws::ECS::Model::UpdateClusterRequest::SetConfiguration
void SetConfiguration(const ClusterConfiguration &value)
Definition: UpdateClusterRequest.h:135
Aws::ECS::Model::UpdateClusterRequest::SettingsHasBeenSet
bool SettingsHasBeenSet() const
Definition: UpdateClusterRequest.h:89
Aws::ECS::Model::UpdateClusterRequest::SetConfiguration
void SetConfiguration(ClusterConfiguration &&value)
Definition: UpdateClusterRequest.h:140
Aws::ECS::Model::UpdateClusterRequest::WithCluster
UpdateClusterRequest & WithCluster(const char *value)
Definition: UpdateClusterRequest.h:78
ClusterSetting.h
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::UpdateClusterRequest::SetSettings
void SetSettings(const Aws::Vector< ClusterSetting > &value)
Definition: UpdateClusterRequest.h:94
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::UpdateClusterRequest::UpdateClusterRequest
UpdateClusterRequest()
ECS_EXPORTS.h
ECSRequest.h