AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
UpdateClusterRequest.h
Go to the documentation of this file.
1
6#pragma once
14#include <utility>
15
16namespace Aws
17{
18namespace ECS
19{
20namespace Model
21{
22
26 {
27 public:
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 "UpdateCluster"; }
35
37
39
40
44 inline const Aws::String& GetCluster() const{ return m_cluster; }
45
49 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
50
54 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
55
59 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
60
64 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
65
69 inline UpdateClusterRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
70
74 inline UpdateClusterRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
75
79 inline UpdateClusterRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
80
81
85 inline const Aws::Vector<ClusterSetting>& GetSettings() const{ return m_settings; }
86
90 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
91
95 inline void SetSettings(const Aws::Vector<ClusterSetting>& value) { m_settingsHasBeenSet = true; m_settings = value; }
96
100 inline void SetSettings(Aws::Vector<ClusterSetting>&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
101
105 inline UpdateClusterRequest& WithSettings(const Aws::Vector<ClusterSetting>& value) { SetSettings(value); return *this;}
106
110 inline UpdateClusterRequest& WithSettings(Aws::Vector<ClusterSetting>&& value) { SetSettings(std::move(value)); return *this;}
111
115 inline UpdateClusterRequest& AddSettings(const ClusterSetting& value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; }
116
120 inline UpdateClusterRequest& AddSettings(ClusterSetting&& value) { m_settingsHasBeenSet = true; m_settings.push_back(std::move(value)); return *this; }
121
122
126 inline const ClusterConfiguration& GetConfiguration() const{ return m_configuration; }
127
131 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
132
136 inline void SetConfiguration(const ClusterConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
137
141 inline void SetConfiguration(ClusterConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
142
147
151 inline UpdateClusterRequest& WithConfiguration(ClusterConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
152
153
171 inline const ClusterServiceConnectDefaultsRequest& GetServiceConnectDefaults() const{ return m_serviceConnectDefaults; }
172
190 inline bool ServiceConnectDefaultsHasBeenSet() const { return m_serviceConnectDefaultsHasBeenSet; }
191
209 inline void SetServiceConnectDefaults(const ClusterServiceConnectDefaultsRequest& value) { m_serviceConnectDefaultsHasBeenSet = true; m_serviceConnectDefaults = value; }
210
228 inline void SetServiceConnectDefaults(ClusterServiceConnectDefaultsRequest&& value) { m_serviceConnectDefaultsHasBeenSet = true; m_serviceConnectDefaults = std::move(value); }
229
248
267
268 private:
269
270 Aws::String m_cluster;
271 bool m_clusterHasBeenSet = false;
272
274 bool m_settingsHasBeenSet = false;
275
276 ClusterConfiguration m_configuration;
277 bool m_configurationHasBeenSet = false;
278
279 ClusterServiceConnectDefaultsRequest m_serviceConnectDefaults;
280 bool m_serviceConnectDefaultsHasBeenSet = false;
281 };
282
283} // namespace Model
284} // namespace ECS
285} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
void SetCluster(const Aws::String &value)
UpdateClusterRequest & WithCluster(const Aws::String &value)
const ClusterConfiguration & GetConfiguration() const
UpdateClusterRequest & WithConfiguration(const ClusterConfiguration &value)
void SetSettings(Aws::Vector< ClusterSetting > &&value)
UpdateClusterRequest & WithServiceConnectDefaults(const ClusterServiceConnectDefaultsRequest &value)
void SetServiceConnectDefaults(const ClusterServiceConnectDefaultsRequest &value)
UpdateClusterRequest & WithCluster(const char *value)
void SetConfiguration(const ClusterConfiguration &value)
AWS_ECS_API Aws::String SerializePayload() const override
UpdateClusterRequest & AddSettings(const ClusterSetting &value)
void SetConfiguration(ClusterConfiguration &&value)
void SetServiceConnectDefaults(ClusterServiceConnectDefaultsRequest &&value)
virtual const char * GetServiceRequestName() const override
UpdateClusterRequest & WithSettings(Aws::Vector< ClusterSetting > &&value)
UpdateClusterRequest & AddSettings(ClusterSetting &&value)
void SetSettings(const Aws::Vector< ClusterSetting > &value)
UpdateClusterRequest & WithCluster(Aws::String &&value)
UpdateClusterRequest & WithServiceConnectDefaults(ClusterServiceConnectDefaultsRequest &&value)
const ClusterServiceConnectDefaultsRequest & GetServiceConnectDefaults() const
UpdateClusterRequest & WithConfiguration(ClusterConfiguration &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateClusterRequest & WithSettings(const Aws::Vector< ClusterSetting > &value)
const Aws::Vector< ClusterSetting > & GetSettings() const
const Aws::String & GetCluster() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector