AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateClusterRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/ClusterConfiguration.h>
12#include <aws/ecs/model/ClusterServiceConnectDefaultsRequest.h>
13#include <aws/ecs/model/ClusterSetting.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ECS
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_ECS_API UpdateClusterRequest() = default;
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
36 AWS_ECS_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetCluster() const { return m_cluster; }
46 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
47 template<typename ClusterT = Aws::String>
48 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet = true; m_cluster = std::forward<ClusterT>(value); }
49 template<typename ClusterT = Aws::String>
50 UpdateClusterRequest& WithCluster(ClusterT&& value) { SetCluster(std::forward<ClusterT>(value)); return *this;}
52
54
57 inline const Aws::Vector<ClusterSetting>& GetSettings() const { return m_settings; }
58 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
59 template<typename SettingsT = Aws::Vector<ClusterSetting>>
60 void SetSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings = std::forward<SettingsT>(value); }
61 template<typename SettingsT = Aws::Vector<ClusterSetting>>
62 UpdateClusterRequest& WithSettings(SettingsT&& value) { SetSettings(std::forward<SettingsT>(value)); return *this;}
63 template<typename SettingsT = ClusterSetting>
64 UpdateClusterRequest& AddSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings.emplace_back(std::forward<SettingsT>(value)); return *this; }
66
68
71 inline const ClusterConfiguration& GetConfiguration() const { return m_configuration; }
72 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
73 template<typename ConfigurationT = ClusterConfiguration>
74 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
75 template<typename ConfigurationT = ClusterConfiguration>
76 UpdateClusterRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
78
80
97 inline const ClusterServiceConnectDefaultsRequest& GetServiceConnectDefaults() const { return m_serviceConnectDefaults; }
98 inline bool ServiceConnectDefaultsHasBeenSet() const { return m_serviceConnectDefaultsHasBeenSet; }
99 template<typename ServiceConnectDefaultsT = ClusterServiceConnectDefaultsRequest>
100 void SetServiceConnectDefaults(ServiceConnectDefaultsT&& value) { m_serviceConnectDefaultsHasBeenSet = true; m_serviceConnectDefaults = std::forward<ServiceConnectDefaultsT>(value); }
101 template<typename ServiceConnectDefaultsT = ClusterServiceConnectDefaultsRequest>
102 UpdateClusterRequest& WithServiceConnectDefaults(ServiceConnectDefaultsT&& value) { SetServiceConnectDefaults(std::forward<ServiceConnectDefaultsT>(value)); return *this;}
104 private:
105
106 Aws::String m_cluster;
107 bool m_clusterHasBeenSet = false;
108
110 bool m_settingsHasBeenSet = false;
111
112 ClusterConfiguration m_configuration;
113 bool m_configurationHasBeenSet = false;
114
115 ClusterServiceConnectDefaultsRequest m_serviceConnectDefaults;
116 bool m_serviceConnectDefaultsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace ECS
121} // 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