AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateClusterSettingsRequest.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/ClusterSetting.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ECS_API UpdateClusterSettingsRequest() = default;
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_ECS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetCluster() const { return m_cluster; }
44 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
45 template<typename ClusterT = Aws::String>
46 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet = true; m_cluster = std::forward<ClusterT>(value); }
47 template<typename ClusterT = Aws::String>
48 UpdateClusterSettingsRequest& WithCluster(ClusterT&& value) { SetCluster(std::forward<ClusterT>(value)); return *this;}
50
52
66 inline const Aws::Vector<ClusterSetting>& GetSettings() const { return m_settings; }
67 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
68 template<typename SettingsT = Aws::Vector<ClusterSetting>>
69 void SetSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings = std::forward<SettingsT>(value); }
70 template<typename SettingsT = Aws::Vector<ClusterSetting>>
71 UpdateClusterSettingsRequest& WithSettings(SettingsT&& value) { SetSettings(std::forward<SettingsT>(value)); return *this;}
72 template<typename SettingsT = ClusterSetting>
73 UpdateClusterSettingsRequest& AddSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings.emplace_back(std::forward<SettingsT>(value)); return *this; }
75 private:
76
77 Aws::String m_cluster;
78 bool m_clusterHasBeenSet = false;
79
81 bool m_settingsHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace ECS
86} // 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