AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
48 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
49 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
50 inline UpdateClusterRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
51 inline UpdateClusterRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
52 inline UpdateClusterRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
54
56
59 inline const Aws::Vector<ClusterSetting>& GetSettings() const{ return m_settings; }
60 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
61 inline void SetSettings(const Aws::Vector<ClusterSetting>& value) { m_settingsHasBeenSet = true; m_settings = value; }
62 inline void SetSettings(Aws::Vector<ClusterSetting>&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
63 inline UpdateClusterRequest& WithSettings(const Aws::Vector<ClusterSetting>& value) { SetSettings(value); return *this;}
64 inline UpdateClusterRequest& WithSettings(Aws::Vector<ClusterSetting>&& value) { SetSettings(std::move(value)); return *this;}
65 inline UpdateClusterRequest& AddSettings(const ClusterSetting& value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; }
66 inline UpdateClusterRequest& AddSettings(ClusterSetting&& value) { m_settingsHasBeenSet = true; m_settings.push_back(std::move(value)); return *this; }
68
70
73 inline const ClusterConfiguration& GetConfiguration() const{ return m_configuration; }
74 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
75 inline void SetConfiguration(const ClusterConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
76 inline void SetConfiguration(ClusterConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
77 inline UpdateClusterRequest& WithConfiguration(const ClusterConfiguration& value) { SetConfiguration(value); return *this;}
78 inline UpdateClusterRequest& WithConfiguration(ClusterConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
80
82
99 inline const ClusterServiceConnectDefaultsRequest& GetServiceConnectDefaults() const{ return m_serviceConnectDefaults; }
100 inline bool ServiceConnectDefaultsHasBeenSet() const { return m_serviceConnectDefaultsHasBeenSet; }
101 inline void SetServiceConnectDefaults(const ClusterServiceConnectDefaultsRequest& value) { m_serviceConnectDefaultsHasBeenSet = true; m_serviceConnectDefaults = value; }
102 inline void SetServiceConnectDefaults(ClusterServiceConnectDefaultsRequest&& value) { m_serviceConnectDefaultsHasBeenSet = true; m_serviceConnectDefaults = std::move(value); }
106 private:
107
108 Aws::String m_cluster;
109 bool m_clusterHasBeenSet = false;
110
112 bool m_settingsHasBeenSet = false;
113
114 ClusterConfiguration m_configuration;
115 bool m_configurationHasBeenSet = false;
116
117 ClusterServiceConnectDefaultsRequest m_serviceConnectDefaults;
118 bool m_serviceConnectDefaultsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace ECS
123} // namespace Aws
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
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