AWS SDK for C++  1.9.16
AWS SDK for C++
UpdateClusterSettingsRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ECS
17 {
18 namespace 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 
34  Aws::String SerializePayload() const override;
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 
86  inline const Aws::Vector<ClusterSetting>& GetSettings() const{ return m_settings; }
87 
94  inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
95 
102  inline void SetSettings(const Aws::Vector<ClusterSetting>& value) { m_settingsHasBeenSet = true; m_settings = value; }
103 
110  inline void SetSettings(Aws::Vector<ClusterSetting>&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
111 
118  inline UpdateClusterSettingsRequest& WithSettings(const Aws::Vector<ClusterSetting>& value) { SetSettings(value); return *this;}
119 
126  inline UpdateClusterSettingsRequest& WithSettings(Aws::Vector<ClusterSetting>&& value) { SetSettings(std::move(value)); return *this;}
127 
134  inline UpdateClusterSettingsRequest& AddSettings(const ClusterSetting& value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; }
135 
142  inline UpdateClusterSettingsRequest& AddSettings(ClusterSetting&& value) { m_settingsHasBeenSet = true; m_settings.push_back(std::move(value)); return *this; }
143 
144  private:
145 
146  Aws::String m_cluster;
147  bool m_clusterHasBeenSet;
148 
149  Aws::Vector<ClusterSetting> m_settings;
150  bool m_settingsHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace ECS
155 } // namespace Aws
Aws::ECS::Model::UpdateClusterSettingsRequest::UpdateClusterSettingsRequest
UpdateClusterSettingsRequest()
Aws::ECS::Model::UpdateClusterSettingsRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: UpdateClusterSettingsRequest.h:57
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::UpdateClusterSettingsRequest::WithCluster
UpdateClusterSettingsRequest & WithCluster(const Aws::String &value)
Definition: UpdateClusterSettingsRequest.h:67
Aws::ECS::Model::UpdateClusterSettingsRequest::GetCluster
const Aws::String & GetCluster() const
Definition: UpdateClusterSettingsRequest.h:42
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::UpdateClusterSettingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateClusterSettingsRequest.h:32
Aws::ECS::Model::UpdateClusterSettingsRequest::WithCluster
UpdateClusterSettingsRequest & WithCluster(const char *value)
Definition: UpdateClusterSettingsRequest.h:77
Aws::ECS::Model::UpdateClusterSettingsRequest::SetCluster
void SetCluster(const char *value)
Definition: UpdateClusterSettingsRequest.h:62
Aws::ECS::Model::UpdateClusterSettingsRequest::AddSettings
UpdateClusterSettingsRequest & AddSettings(const ClusterSetting &value)
Definition: UpdateClusterSettingsRequest.h:134
Aws::ECS::Model::UpdateClusterSettingsRequest::GetSettings
const Aws::Vector< ClusterSetting > & GetSettings() const
Definition: UpdateClusterSettingsRequest.h:86
Aws::ECS::Model::UpdateClusterSettingsRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: UpdateClusterSettingsRequest.h:47
AWSString.h
Aws::ECS::Model::UpdateClusterSettingsRequest::SetSettings
void SetSettings(Aws::Vector< ClusterSetting > &&value)
Definition: UpdateClusterSettingsRequest.h:110
Aws::ECS::Model::UpdateClusterSettingsRequest::AddSettings
UpdateClusterSettingsRequest & AddSettings(ClusterSetting &&value)
Definition: UpdateClusterSettingsRequest.h:142
Aws::ECS::Model::UpdateClusterSettingsRequest::SetSettings
void SetSettings(const Aws::Vector< ClusterSetting > &value)
Definition: UpdateClusterSettingsRequest.h:102
Aws::ECS::Model::ClusterSetting
Definition: ClusterSetting.h:34
Aws::ECS::Model::UpdateClusterSettingsRequest::WithSettings
UpdateClusterSettingsRequest & WithSettings(Aws::Vector< ClusterSetting > &&value)
Definition: UpdateClusterSettingsRequest.h:126
Aws::ECS::Model::UpdateClusterSettingsRequest::WithCluster
UpdateClusterSettingsRequest & WithCluster(Aws::String &&value)
Definition: UpdateClusterSettingsRequest.h:72
Aws::ECS::Model::UpdateClusterSettingsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ClusterSetting.h
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::UpdateClusterSettingsRequest
Definition: UpdateClusterSettingsRequest.h:24
Aws::ECS::Model::UpdateClusterSettingsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::UpdateClusterSettingsRequest::SettingsHasBeenSet
bool SettingsHasBeenSet() const
Definition: UpdateClusterSettingsRequest.h:94
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::UpdateClusterSettingsRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: UpdateClusterSettingsRequest.h:52
Aws::ECS::Model::UpdateClusterSettingsRequest::WithSettings
UpdateClusterSettingsRequest & WithSettings(const Aws::Vector< ClusterSetting > &value)
Definition: UpdateClusterSettingsRequest.h:118