AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateCapabilityRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eks/EKSRequest.h>
11#include <aws/eks/EKS_EXPORTS.h>
12#include <aws/eks/model/CapabilityConfigurationRequest.h>
13#include <aws/eks/model/CapabilityDeletePropagationPolicy.h>
14#include <aws/eks/model/CapabilityType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace EKS {
20namespace Model {
21
25 public:
26 AWS_EKS_API CreateCapabilityRequest() = 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 "CreateCapability"; }
33
34 AWS_EKS_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetCapabilityName() const { return m_capabilityName; }
42 inline bool CapabilityNameHasBeenSet() const { return m_capabilityNameHasBeenSet; }
43 template <typename CapabilityNameT = Aws::String>
44 void SetCapabilityName(CapabilityNameT&& value) {
45 m_capabilityNameHasBeenSet = true;
46 m_capabilityName = std::forward<CapabilityNameT>(value);
47 }
48 template <typename CapabilityNameT = Aws::String>
49 CreateCapabilityRequest& WithCapabilityName(CapabilityNameT&& value) {
50 SetCapabilityName(std::forward<CapabilityNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetClusterName() const { return m_clusterName; }
61 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
62 template <typename ClusterNameT = Aws::String>
63 void SetClusterName(ClusterNameT&& value) {
64 m_clusterNameHasBeenSet = true;
65 m_clusterName = std::forward<ClusterNameT>(value);
66 }
67 template <typename ClusterNameT = Aws::String>
69 SetClusterName(std::forward<ClusterNameT>(value));
70 return *this;
71 }
73
75
82 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
83 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
84 template <typename ClientRequestTokenT = Aws::String>
85 void SetClientRequestToken(ClientRequestTokenT&& value) {
86 m_clientRequestTokenHasBeenSet = true;
87 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
88 }
89 template <typename ClientRequestTokenT = Aws::String>
90 CreateCapabilityRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
91 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
92 return *this;
93 }
95
97
105 inline CapabilityType GetType() const { return m_type; }
106 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
107 inline void SetType(CapabilityType value) {
108 m_typeHasBeenSet = true;
109 m_type = value;
110 }
112 SetType(value);
113 return *this;
114 }
116
118
128 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
129 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
130 template <typename RoleArnT = Aws::String>
131 void SetRoleArn(RoleArnT&& value) {
132 m_roleArnHasBeenSet = true;
133 m_roleArn = std::forward<RoleArnT>(value);
134 }
135 template <typename RoleArnT = Aws::String>
137 SetRoleArn(std::forward<RoleArnT>(value));
138 return *this;
139 }
141
143
149 inline const CapabilityConfigurationRequest& GetConfiguration() const { return m_configuration; }
150 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
151 template <typename ConfigurationT = CapabilityConfigurationRequest>
152 void SetConfiguration(ConfigurationT&& value) {
153 m_configurationHasBeenSet = true;
154 m_configuration = std::forward<ConfigurationT>(value);
155 }
156 template <typename ConfigurationT = CapabilityConfigurationRequest>
158 SetConfiguration(std::forward<ConfigurationT>(value));
159 return *this;
160 }
162
164
165 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
166 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
168 void SetTags(TagsT&& value) {
169 m_tagsHasBeenSet = true;
170 m_tags = std::forward<TagsT>(value);
171 }
172 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 SetTags(std::forward<TagsT>(value));
175 return *this;
176 }
177 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
178 CreateCapabilityRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
179 m_tagsHasBeenSet = true;
180 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
181 return *this;
182 }
184
186
196 inline CapabilityDeletePropagationPolicy GetDeletePropagationPolicy() const { return m_deletePropagationPolicy; }
197 inline bool DeletePropagationPolicyHasBeenSet() const { return m_deletePropagationPolicyHasBeenSet; }
199 m_deletePropagationPolicyHasBeenSet = true;
200 m_deletePropagationPolicy = value;
201 }
204 return *this;
205 }
207 private:
208 Aws::String m_capabilityName;
209
210 Aws::String m_clusterName;
211
212 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
213
215
216 Aws::String m_roleArn;
217
218 CapabilityConfigurationRequest m_configuration;
219
221
223 bool m_capabilityNameHasBeenSet = false;
224 bool m_clusterNameHasBeenSet = false;
225 bool m_clientRequestTokenHasBeenSet = true;
226 bool m_typeHasBeenSet = false;
227 bool m_roleArnHasBeenSet = false;
228 bool m_configurationHasBeenSet = false;
229 bool m_tagsHasBeenSet = false;
230 bool m_deletePropagationPolicyHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace EKS
235} // namespace Aws
CreateCapabilityRequest & WithDeletePropagationPolicy(CapabilityDeletePropagationPolicy value)
AWS_EKS_API Aws::String SerializePayload() const override
CreateCapabilityRequest & WithCapabilityName(CapabilityNameT &&value)
CreateCapabilityRequest & WithTags(TagsT &&value)
CapabilityDeletePropagationPolicy GetDeletePropagationPolicy() const
void SetCapabilityName(CapabilityNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateCapabilityRequest & WithRoleArn(RoleArnT &&value)
void SetDeletePropagationPolicy(CapabilityDeletePropagationPolicy value)
CreateCapabilityRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateCapabilityRequest & WithType(CapabilityType value)
CreateCapabilityRequest & WithConfiguration(ConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
CreateCapabilityRequest & WithClusterName(ClusterNameT &&value)
AWS_EKS_API CreateCapabilityRequest()=default
void SetClientRequestToken(ClientRequestTokenT &&value)
CreateCapabilityRequest & WithClientRequestToken(ClientRequestTokenT &&value)
const CapabilityConfigurationRequest & GetConfiguration() const
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String