AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
FargateProfile.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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/EKS_EXPORTS.h>
12#include <aws/eks/model/FargateProfileHealth.h>
13#include <aws/eks/model/FargateProfileSelector.h>
14#include <aws/eks/model/FargateProfileStatus.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace EKS {
26namespace Model {
27
34 public:
35 AWS_EKS_API FargateProfile() = default;
39
41
44 inline const Aws::String& GetFargateProfileName() const { return m_fargateProfileName; }
45 inline bool FargateProfileNameHasBeenSet() const { return m_fargateProfileNameHasBeenSet; }
46 template <typename FargateProfileNameT = Aws::String>
47 void SetFargateProfileName(FargateProfileNameT&& value) {
48 m_fargateProfileNameHasBeenSet = true;
49 m_fargateProfileName = std::forward<FargateProfileNameT>(value);
50 }
51 template <typename FargateProfileNameT = Aws::String>
52 FargateProfile& WithFargateProfileName(FargateProfileNameT&& value) {
53 SetFargateProfileName(std::forward<FargateProfileNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetFargateProfileArn() const { return m_fargateProfileArn; }
63 inline bool FargateProfileArnHasBeenSet() const { return m_fargateProfileArnHasBeenSet; }
64 template <typename FargateProfileArnT = Aws::String>
65 void SetFargateProfileArn(FargateProfileArnT&& value) {
66 m_fargateProfileArnHasBeenSet = true;
67 m_fargateProfileArn = std::forward<FargateProfileArnT>(value);
68 }
69 template <typename FargateProfileArnT = Aws::String>
70 FargateProfile& WithFargateProfileArn(FargateProfileArnT&& value) {
71 SetFargateProfileArn(std::forward<FargateProfileArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetClusterName() const { return m_clusterName; }
81 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
82 template <typename ClusterNameT = Aws::String>
83 void SetClusterName(ClusterNameT&& value) {
84 m_clusterNameHasBeenSet = true;
85 m_clusterName = std::forward<ClusterNameT>(value);
86 }
87 template <typename ClusterNameT = Aws::String>
88 FargateProfile& WithClusterName(ClusterNameT&& value) {
89 SetClusterName(std::forward<ClusterNameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
99 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
100 template <typename CreatedAtT = Aws::Utils::DateTime>
101 void SetCreatedAt(CreatedAtT&& value) {
102 m_createdAtHasBeenSet = true;
103 m_createdAt = std::forward<CreatedAtT>(value);
104 }
105 template <typename CreatedAtT = Aws::Utils::DateTime>
106 FargateProfile& WithCreatedAt(CreatedAtT&& value) {
107 SetCreatedAt(std::forward<CreatedAtT>(value));
108 return *this;
109 }
111
113
120 inline const Aws::String& GetPodExecutionRoleArn() const { return m_podExecutionRoleArn; }
121 inline bool PodExecutionRoleArnHasBeenSet() const { return m_podExecutionRoleArnHasBeenSet; }
122 template <typename PodExecutionRoleArnT = Aws::String>
123 void SetPodExecutionRoleArn(PodExecutionRoleArnT&& value) {
124 m_podExecutionRoleArnHasBeenSet = true;
125 m_podExecutionRoleArn = std::forward<PodExecutionRoleArnT>(value);
126 }
127 template <typename PodExecutionRoleArnT = Aws::String>
128 FargateProfile& WithPodExecutionRoleArn(PodExecutionRoleArnT&& value) {
129 SetPodExecutionRoleArn(std::forward<PodExecutionRoleArnT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
139 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
140 template <typename SubnetsT = Aws::Vector<Aws::String>>
141 void SetSubnets(SubnetsT&& value) {
142 m_subnetsHasBeenSet = true;
143 m_subnets = std::forward<SubnetsT>(value);
144 }
145 template <typename SubnetsT = Aws::Vector<Aws::String>>
146 FargateProfile& WithSubnets(SubnetsT&& value) {
147 SetSubnets(std::forward<SubnetsT>(value));
148 return *this;
149 }
150 template <typename SubnetsT = Aws::String>
151 FargateProfile& AddSubnets(SubnetsT&& value) {
152 m_subnetsHasBeenSet = true;
153 m_subnets.emplace_back(std::forward<SubnetsT>(value));
154 return *this;
155 }
157
159
163 inline const Aws::Vector<FargateProfileSelector>& GetSelectors() const { return m_selectors; }
164 inline bool SelectorsHasBeenSet() const { return m_selectorsHasBeenSet; }
165 template <typename SelectorsT = Aws::Vector<FargateProfileSelector>>
166 void SetSelectors(SelectorsT&& value) {
167 m_selectorsHasBeenSet = true;
168 m_selectors = std::forward<SelectorsT>(value);
169 }
170 template <typename SelectorsT = Aws::Vector<FargateProfileSelector>>
171 FargateProfile& WithSelectors(SelectorsT&& value) {
172 SetSelectors(std::forward<SelectorsT>(value));
173 return *this;
174 }
175 template <typename SelectorsT = FargateProfileSelector>
176 FargateProfile& AddSelectors(SelectorsT&& value) {
177 m_selectorsHasBeenSet = true;
178 m_selectors.emplace_back(std::forward<SelectorsT>(value));
179 return *this;
180 }
182
184
187 inline FargateProfileStatus GetStatus() const { return m_status; }
188 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
189 inline void SetStatus(FargateProfileStatus value) {
190 m_statusHasBeenSet = true;
191 m_status = value;
192 }
194 SetStatus(value);
195 return *this;
196 }
198
200
205 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
206 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
207 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
208 void SetTags(TagsT&& value) {
209 m_tagsHasBeenSet = true;
210 m_tags = std::forward<TagsT>(value);
211 }
212 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
213 FargateProfile& WithTags(TagsT&& value) {
214 SetTags(std::forward<TagsT>(value));
215 return *this;
216 }
217 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
218 FargateProfile& AddTags(TagsKeyT&& key, TagsValueT&& value) {
219 m_tagsHasBeenSet = true;
220 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
221 return *this;
222 }
224
226
230 inline const FargateProfileHealth& GetHealth() const { return m_health; }
231 inline bool HealthHasBeenSet() const { return m_healthHasBeenSet; }
232 template <typename HealthT = FargateProfileHealth>
233 void SetHealth(HealthT&& value) {
234 m_healthHasBeenSet = true;
235 m_health = std::forward<HealthT>(value);
236 }
237 template <typename HealthT = FargateProfileHealth>
238 FargateProfile& WithHealth(HealthT&& value) {
239 SetHealth(std::forward<HealthT>(value));
240 return *this;
241 }
243 private:
244 Aws::String m_fargateProfileName;
245
246 Aws::String m_fargateProfileArn;
247
248 Aws::String m_clusterName;
249
250 Aws::Utils::DateTime m_createdAt{};
251
252 Aws::String m_podExecutionRoleArn;
253
254 Aws::Vector<Aws::String> m_subnets;
255
257
259
261
262 FargateProfileHealth m_health;
263 bool m_fargateProfileNameHasBeenSet = false;
264 bool m_fargateProfileArnHasBeenSet = false;
265 bool m_clusterNameHasBeenSet = false;
266 bool m_createdAtHasBeenSet = false;
267 bool m_podExecutionRoleArnHasBeenSet = false;
268 bool m_subnetsHasBeenSet = false;
269 bool m_selectorsHasBeenSet = false;
270 bool m_statusHasBeenSet = false;
271 bool m_tagsHasBeenSet = false;
272 bool m_healthHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace EKS
277} // namespace Aws
FargateProfile & WithStatus(FargateProfileStatus value)
void SetHealth(HealthT &&value)
FargateProfile & WithFargateProfileArn(FargateProfileArnT &&value)
FargateProfileStatus GetStatus() const
const Aws::String & GetClusterName() const
const Aws::Vector< FargateProfileSelector > & GetSelectors() const
void SetFargateProfileName(FargateProfileNameT &&value)
FargateProfile & WithPodExecutionRoleArn(PodExecutionRoleArnT &&value)
FargateProfile & WithTags(TagsT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
FargateProfile & AddSelectors(SelectorsT &&value)
FargateProfile & AddTags(TagsKeyT &&key, TagsValueT &&value)
FargateProfile & WithCreatedAt(CreatedAtT &&value)
void SetPodExecutionRoleArn(PodExecutionRoleArnT &&value)
const Aws::Vector< Aws::String > & GetSubnets() const
AWS_EKS_API FargateProfile(Aws::Utils::Json::JsonView jsonValue)
FargateProfile & WithClusterName(ClusterNameT &&value)
void SetClusterName(ClusterNameT &&value)
const Aws::String & GetFargateProfileArn() const
void SetCreatedAt(CreatedAtT &&value)
FargateProfile & WithSubnets(SubnetsT &&value)
FargateProfile & AddSubnets(SubnetsT &&value)
void SetSubnets(SubnetsT &&value)
const Aws::String & GetPodExecutionRoleArn() const
void SetSelectors(SelectorsT &&value)
AWS_EKS_API FargateProfile()=default
FargateProfile & WithHealth(HealthT &&value)
const FargateProfileHealth & GetHealth() const
void SetFargateProfileArn(FargateProfileArnT &&value)
FargateProfile & WithSelectors(SelectorsT &&value)
AWS_EKS_API FargateProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFargateProfileName() const
void SetStatus(FargateProfileStatus value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
FargateProfile & WithFargateProfileName(FargateProfileNameT &&value)
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
Aws::Utils::Json::JsonValue JsonValue