AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECSRequest.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/ClusterConfiguration.h>
12#include <aws/ecs/model/ClusterServiceConnectDefaultsRequest.h>
13#include <aws/ecs/model/ClusterSetting.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ECS {
19namespace Model {
20
24 public:
25 AWS_ECS_API UpdateClusterRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateCluster"; }
32
33 AWS_ECS_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetCluster() const { return m_cluster; }
42 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
43 template <typename ClusterT = Aws::String>
44 void SetCluster(ClusterT&& value) {
45 m_clusterHasBeenSet = true;
46 m_cluster = std::forward<ClusterT>(value);
47 }
48 template <typename ClusterT = Aws::String>
49 UpdateClusterRequest& WithCluster(ClusterT&& value) {
50 SetCluster(std::forward<ClusterT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<ClusterSetting>& GetSettings() const { return m_settings; }
60 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
61 template <typename SettingsT = Aws::Vector<ClusterSetting>>
62 void SetSettings(SettingsT&& value) {
63 m_settingsHasBeenSet = true;
64 m_settings = std::forward<SettingsT>(value);
65 }
66 template <typename SettingsT = Aws::Vector<ClusterSetting>>
67 UpdateClusterRequest& WithSettings(SettingsT&& value) {
68 SetSettings(std::forward<SettingsT>(value));
69 return *this;
70 }
71 template <typename SettingsT = ClusterSetting>
72 UpdateClusterRequest& AddSettings(SettingsT&& value) {
73 m_settingsHasBeenSet = true;
74 m_settings.emplace_back(std::forward<SettingsT>(value));
75 return *this;
76 }
78
80
83 inline const ClusterConfiguration& GetConfiguration() const { return m_configuration; }
84 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
85 template <typename ConfigurationT = ClusterConfiguration>
86 void SetConfiguration(ConfigurationT&& value) {
87 m_configurationHasBeenSet = true;
88 m_configuration = std::forward<ConfigurationT>(value);
89 }
90 template <typename ConfigurationT = ClusterConfiguration>
91 UpdateClusterRequest& WithConfiguration(ConfigurationT&& value) {
92 SetConfiguration(std::forward<ConfigurationT>(value));
93 return *this;
94 }
96
98
115 inline const ClusterServiceConnectDefaultsRequest& GetServiceConnectDefaults() const { return m_serviceConnectDefaults; }
116 inline bool ServiceConnectDefaultsHasBeenSet() const { return m_serviceConnectDefaultsHasBeenSet; }
117 template <typename ServiceConnectDefaultsT = ClusterServiceConnectDefaultsRequest>
118 void SetServiceConnectDefaults(ServiceConnectDefaultsT&& value) {
119 m_serviceConnectDefaultsHasBeenSet = true;
120 m_serviceConnectDefaults = std::forward<ServiceConnectDefaultsT>(value);
121 }
122 template <typename ServiceConnectDefaultsT = ClusterServiceConnectDefaultsRequest>
123 UpdateClusterRequest& WithServiceConnectDefaults(ServiceConnectDefaultsT&& value) {
124 SetServiceConnectDefaults(std::forward<ServiceConnectDefaultsT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_cluster;
130
132
133 ClusterConfiguration m_configuration;
134
135 ClusterServiceConnectDefaultsRequest m_serviceConnectDefaults;
136 bool m_clusterHasBeenSet = false;
137 bool m_settingsHasBeenSet = false;
138 bool m_configurationHasBeenSet = false;
139 bool m_serviceConnectDefaultsHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace ECS
144} // namespace Aws
const ClusterConfiguration & GetConfiguration() const
UpdateClusterRequest & AddSettings(SettingsT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
void SetServiceConnectDefaults(ServiceConnectDefaultsT &&value)
virtual const char * GetServiceRequestName() const override
const ClusterServiceConnectDefaultsRequest & GetServiceConnectDefaults() const
UpdateClusterRequest & WithSettings(SettingsT &&value)
UpdateClusterRequest & WithCluster(ClusterT &&value)
UpdateClusterRequest & WithConfiguration(ConfigurationT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< ClusterSetting > & GetSettings() const
AWS_ECS_API UpdateClusterRequest()=default
void SetConfiguration(ConfigurationT &&value)
UpdateClusterRequest & WithServiceConnectDefaults(ServiceConnectDefaultsT &&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