AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateFargateProfileRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/eks/EKSRequest.h>
12#include <aws/eks/EKS_EXPORTS.h>
13#include <aws/eks/model/FargateProfileSelector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace EKS {
19namespace Model {
20
24 public:
25 AWS_EKS_API CreateFargateProfileRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateFargateProfile"; }
32
33 AWS_EKS_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetFargateProfileName() const { return m_fargateProfileName; }
40 inline bool FargateProfileNameHasBeenSet() const { return m_fargateProfileNameHasBeenSet; }
41 template <typename FargateProfileNameT = Aws::String>
42 void SetFargateProfileName(FargateProfileNameT&& value) {
43 m_fargateProfileNameHasBeenSet = true;
44 m_fargateProfileName = std::forward<FargateProfileNameT>(value);
45 }
46 template <typename FargateProfileNameT = Aws::String>
48 SetFargateProfileName(std::forward<FargateProfileNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetClusterName() const { return m_clusterName; }
58 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
59 template <typename ClusterNameT = Aws::String>
60 void SetClusterName(ClusterNameT&& value) {
61 m_clusterNameHasBeenSet = true;
62 m_clusterName = std::forward<ClusterNameT>(value);
63 }
64 template <typename ClusterNameT = Aws::String>
66 SetClusterName(std::forward<ClusterNameT>(value));
67 return *this;
68 }
70
72
81 inline const Aws::String& GetPodExecutionRoleArn() const { return m_podExecutionRoleArn; }
82 inline bool PodExecutionRoleArnHasBeenSet() const { return m_podExecutionRoleArnHasBeenSet; }
83 template <typename PodExecutionRoleArnT = Aws::String>
84 void SetPodExecutionRoleArn(PodExecutionRoleArnT&& value) {
85 m_podExecutionRoleArnHasBeenSet = true;
86 m_podExecutionRoleArn = std::forward<PodExecutionRoleArnT>(value);
87 }
88 template <typename PodExecutionRoleArnT = Aws::String>
90 SetPodExecutionRoleArn(std::forward<PodExecutionRoleArnT>(value));
91 return *this;
92 }
94
96
102 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
103 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
104 template <typename SubnetsT = Aws::Vector<Aws::String>>
105 void SetSubnets(SubnetsT&& value) {
106 m_subnetsHasBeenSet = true;
107 m_subnets = std::forward<SubnetsT>(value);
108 }
109 template <typename SubnetsT = Aws::Vector<Aws::String>>
111 SetSubnets(std::forward<SubnetsT>(value));
112 return *this;
113 }
114 template <typename SubnetsT = Aws::String>
116 m_subnetsHasBeenSet = true;
117 m_subnets.emplace_back(std::forward<SubnetsT>(value));
118 return *this;
119 }
121
123
130 inline const Aws::Vector<FargateProfileSelector>& GetSelectors() const { return m_selectors; }
131 inline bool SelectorsHasBeenSet() const { return m_selectorsHasBeenSet; }
132 template <typename SelectorsT = Aws::Vector<FargateProfileSelector>>
133 void SetSelectors(SelectorsT&& value) {
134 m_selectorsHasBeenSet = true;
135 m_selectors = std::forward<SelectorsT>(value);
136 }
137 template <typename SelectorsT = Aws::Vector<FargateProfileSelector>>
139 SetSelectors(std::forward<SelectorsT>(value));
140 return *this;
141 }
142 template <typename SelectorsT = FargateProfileSelector>
144 m_selectorsHasBeenSet = true;
145 m_selectors.emplace_back(std::forward<SelectorsT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
156 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
157 template <typename ClientRequestTokenT = Aws::String>
158 void SetClientRequestToken(ClientRequestTokenT&& value) {
159 m_clientRequestTokenHasBeenSet = true;
160 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
161 }
162 template <typename ClientRequestTokenT = Aws::String>
164 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
165 return *this;
166 }
168
170
175 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
176 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
178 void SetTags(TagsT&& value) {
179 m_tagsHasBeenSet = true;
180 m_tags = std::forward<TagsT>(value);
181 }
182 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
184 SetTags(std::forward<TagsT>(value));
185 return *this;
186 }
187 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
188 CreateFargateProfileRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
189 m_tagsHasBeenSet = true;
190 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
191 return *this;
192 }
194 private:
195 Aws::String m_fargateProfileName;
196
197 Aws::String m_clusterName;
198
199 Aws::String m_podExecutionRoleArn;
200
201 Aws::Vector<Aws::String> m_subnets;
202
204
205 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
206
208 bool m_fargateProfileNameHasBeenSet = false;
209 bool m_clusterNameHasBeenSet = false;
210 bool m_podExecutionRoleArnHasBeenSet = false;
211 bool m_subnetsHasBeenSet = false;
212 bool m_selectorsHasBeenSet = false;
213 bool m_clientRequestTokenHasBeenSet = true;
214 bool m_tagsHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace EKS
219} // namespace Aws
CreateFargateProfileRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateFargateProfileRequest & WithSelectors(SelectorsT &&value)
CreateFargateProfileRequest & WithSubnets(SubnetsT &&value)
AWS_EKS_API Aws::String SerializePayload() const override
CreateFargateProfileRequest & WithClusterName(ClusterNameT &&value)
CreateFargateProfileRequest & WithFargateProfileName(FargateProfileNameT &&value)
const Aws::Vector< Aws::String > & GetSubnets() const
CreateFargateProfileRequest & AddSelectors(SelectorsT &&value)
CreateFargateProfileRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateFargateProfileRequest & AddSubnets(SubnetsT &&value)
void SetFargateProfileName(FargateProfileNameT &&value)
const Aws::Vector< FargateProfileSelector > & GetSelectors() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateFargateProfileRequest & WithPodExecutionRoleArn(PodExecutionRoleArnT &&value)
AWS_EKS_API CreateFargateProfileRequest()=default
CreateFargateProfileRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetPodExecutionRoleArn(PodExecutionRoleArnT &&value)
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
std::vector< T, Aws::Allocator< T > > Vector