AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FargateProfile.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/eks/model/FargateProfileStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/eks/model/FargateProfileHealth.h>
14#include <aws/eks/model/FargateProfileSelector.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace EKS
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_EKS_API FargateProfile() = default;
44
45
47
50 inline const Aws::String& GetFargateProfileName() const { return m_fargateProfileName; }
51 inline bool FargateProfileNameHasBeenSet() const { return m_fargateProfileNameHasBeenSet; }
52 template<typename FargateProfileNameT = Aws::String>
53 void SetFargateProfileName(FargateProfileNameT&& value) { m_fargateProfileNameHasBeenSet = true; m_fargateProfileName = std::forward<FargateProfileNameT>(value); }
54 template<typename FargateProfileNameT = Aws::String>
55 FargateProfile& WithFargateProfileName(FargateProfileNameT&& value) { SetFargateProfileName(std::forward<FargateProfileNameT>(value)); return *this;}
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) { m_fargateProfileArnHasBeenSet = true; m_fargateProfileArn = std::forward<FargateProfileArnT>(value); }
66 template<typename FargateProfileArnT = Aws::String>
67 FargateProfile& WithFargateProfileArn(FargateProfileArnT&& value) { SetFargateProfileArn(std::forward<FargateProfileArnT>(value)); return *this;}
69
71
74 inline const Aws::String& GetClusterName() const { return m_clusterName; }
75 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
76 template<typename ClusterNameT = Aws::String>
77 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
78 template<typename ClusterNameT = Aws::String>
79 FargateProfile& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
87 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
88 template<typename CreatedAtT = Aws::Utils::DateTime>
89 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
90 template<typename CreatedAtT = Aws::Utils::DateTime>
91 FargateProfile& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
93
95
102 inline const Aws::String& GetPodExecutionRoleArn() const { return m_podExecutionRoleArn; }
103 inline bool PodExecutionRoleArnHasBeenSet() const { return m_podExecutionRoleArnHasBeenSet; }
104 template<typename PodExecutionRoleArnT = Aws::String>
105 void SetPodExecutionRoleArn(PodExecutionRoleArnT&& value) { m_podExecutionRoleArnHasBeenSet = true; m_podExecutionRoleArn = std::forward<PodExecutionRoleArnT>(value); }
106 template<typename PodExecutionRoleArnT = Aws::String>
107 FargateProfile& WithPodExecutionRoleArn(PodExecutionRoleArnT&& value) { SetPodExecutionRoleArn(std::forward<PodExecutionRoleArnT>(value)); return *this;}
109
111
114 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
115 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
116 template<typename SubnetsT = Aws::Vector<Aws::String>>
117 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
118 template<typename SubnetsT = Aws::Vector<Aws::String>>
119 FargateProfile& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
120 template<typename SubnetsT = Aws::String>
121 FargateProfile& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
123
125
129 inline const Aws::Vector<FargateProfileSelector>& GetSelectors() const { return m_selectors; }
130 inline bool SelectorsHasBeenSet() const { return m_selectorsHasBeenSet; }
131 template<typename SelectorsT = Aws::Vector<FargateProfileSelector>>
132 void SetSelectors(SelectorsT&& value) { m_selectorsHasBeenSet = true; m_selectors = std::forward<SelectorsT>(value); }
133 template<typename SelectorsT = Aws::Vector<FargateProfileSelector>>
134 FargateProfile& WithSelectors(SelectorsT&& value) { SetSelectors(std::forward<SelectorsT>(value)); return *this;}
135 template<typename SelectorsT = FargateProfileSelector>
136 FargateProfile& AddSelectors(SelectorsT&& value) { m_selectorsHasBeenSet = true; m_selectors.emplace_back(std::forward<SelectorsT>(value)); return *this; }
138
140
143 inline FargateProfileStatus GetStatus() const { return m_status; }
144 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
145 inline void SetStatus(FargateProfileStatus value) { m_statusHasBeenSet = true; m_status = value; }
146 inline FargateProfile& WithStatus(FargateProfileStatus value) { SetStatus(value); return *this;}
148
150
155 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
159 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
160 FargateProfile& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
161 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
162 FargateProfile& AddTags(TagsKeyT&& key, TagsValueT&& value) {
163 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
164 }
166
168
172 inline const FargateProfileHealth& GetHealth() const { return m_health; }
173 inline bool HealthHasBeenSet() const { return m_healthHasBeenSet; }
174 template<typename HealthT = FargateProfileHealth>
175 void SetHealth(HealthT&& value) { m_healthHasBeenSet = true; m_health = std::forward<HealthT>(value); }
176 template<typename HealthT = FargateProfileHealth>
177 FargateProfile& WithHealth(HealthT&& value) { SetHealth(std::forward<HealthT>(value)); return *this;}
179 private:
180
181 Aws::String m_fargateProfileName;
182 bool m_fargateProfileNameHasBeenSet = false;
183
184 Aws::String m_fargateProfileArn;
185 bool m_fargateProfileArnHasBeenSet = false;
186
187 Aws::String m_clusterName;
188 bool m_clusterNameHasBeenSet = false;
189
190 Aws::Utils::DateTime m_createdAt{};
191 bool m_createdAtHasBeenSet = false;
192
193 Aws::String m_podExecutionRoleArn;
194 bool m_podExecutionRoleArnHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_subnets;
197 bool m_subnetsHasBeenSet = false;
198
200 bool m_selectorsHasBeenSet = false;
201
203 bool m_statusHasBeenSet = false;
204
206 bool m_tagsHasBeenSet = false;
207
208 FargateProfileHealth m_health;
209 bool m_healthHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace EKS
214} // 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