AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
UpdateClusterSettingsRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateClusterSettings"; }
33
35
37
38
42 inline const Aws::String& GetCluster() const{ return m_cluster; }
43
47 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
48
52 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
53
57 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
58
62 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
63
67 inline UpdateClusterSettingsRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
68
72 inline UpdateClusterSettingsRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
73
77 inline UpdateClusterSettingsRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
78
79
92 inline const Aws::Vector<ClusterSetting>& GetSettings() const{ return m_settings; }
93
106 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
107
120 inline void SetSettings(const Aws::Vector<ClusterSetting>& value) { m_settingsHasBeenSet = true; m_settings = value; }
121
134 inline void SetSettings(Aws::Vector<ClusterSetting>&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
135
149
162 inline UpdateClusterSettingsRequest& WithSettings(Aws::Vector<ClusterSetting>&& value) { SetSettings(std::move(value)); return *this;}
163
176 inline UpdateClusterSettingsRequest& AddSettings(const ClusterSetting& value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; }
177
190 inline UpdateClusterSettingsRequest& AddSettings(ClusterSetting&& value) { m_settingsHasBeenSet = true; m_settings.push_back(std::move(value)); return *this; }
191
192 private:
193
194 Aws::String m_cluster;
195 bool m_clusterHasBeenSet = false;
196
198 bool m_settingsHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace ECS
203} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateClusterSettingsRequest & WithCluster(const Aws::String &value)
void SetSettings(Aws::Vector< ClusterSetting > &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< ClusterSetting > & GetSettings() const
void SetSettings(const Aws::Vector< ClusterSetting > &value)
UpdateClusterSettingsRequest & WithCluster(const char *value)
UpdateClusterSettingsRequest & WithSettings(Aws::Vector< ClusterSetting > &&value)
UpdateClusterSettingsRequest & WithCluster(Aws::String &&value)
UpdateClusterSettingsRequest & AddSettings(const ClusterSetting &value)
UpdateClusterSettingsRequest & AddSettings(ClusterSetting &&value)
AWS_ECS_API Aws::String SerializePayload() const override
UpdateClusterSettingsRequest & WithSettings(const Aws::Vector< ClusterSetting > &value)
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