AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateClusterSettingsRequest.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/ClusterSetting.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ECS {
17namespace Model {
18
22 public:
23 AWS_ECS_API UpdateClusterSettingsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateClusterSettings"; }
30
31 AWS_ECS_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetCluster() const { return m_cluster; }
40 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
41 template <typename ClusterT = Aws::String>
42 void SetCluster(ClusterT&& value) {
43 m_clusterHasBeenSet = true;
44 m_cluster = std::forward<ClusterT>(value);
45 }
46 template <typename ClusterT = Aws::String>
48 SetCluster(std::forward<ClusterT>(value));
49 return *this;
50 }
52
54
68 inline const Aws::Vector<ClusterSetting>& GetSettings() const { return m_settings; }
69 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
70 template <typename SettingsT = Aws::Vector<ClusterSetting>>
71 void SetSettings(SettingsT&& value) {
72 m_settingsHasBeenSet = true;
73 m_settings = std::forward<SettingsT>(value);
74 }
75 template <typename SettingsT = Aws::Vector<ClusterSetting>>
77 SetSettings(std::forward<SettingsT>(value));
78 return *this;
79 }
80 template <typename SettingsT = ClusterSetting>
82 m_settingsHasBeenSet = true;
83 m_settings.emplace_back(std::forward<SettingsT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_cluster;
89
91 bool m_clusterHasBeenSet = false;
92 bool m_settingsHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace ECS
97} // namespace Aws
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ECS_API UpdateClusterSettingsRequest()=default
UpdateClusterSettingsRequest & WithSettings(SettingsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< ClusterSetting > & GetSettings() const
UpdateClusterSettingsRequest & WithCluster(ClusterT &&value)
UpdateClusterSettingsRequest & AddSettings(SettingsT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
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