AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateFargateProfileRequest.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/EKSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/eks/model/FargateProfileSelector.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace EKS
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_EKS_API CreateFargateProfileRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateFargateProfile"; }
35
36 AWS_EKS_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetFargateProfileName() const { return m_fargateProfileName; }
44 inline bool FargateProfileNameHasBeenSet() const { return m_fargateProfileNameHasBeenSet; }
45 template<typename FargateProfileNameT = Aws::String>
46 void SetFargateProfileName(FargateProfileNameT&& value) { m_fargateProfileNameHasBeenSet = true; m_fargateProfileName = std::forward<FargateProfileNameT>(value); }
47 template<typename FargateProfileNameT = Aws::String>
48 CreateFargateProfileRequest& WithFargateProfileName(FargateProfileNameT&& value) { SetFargateProfileName(std::forward<FargateProfileNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetClusterName() const { return m_clusterName; }
56 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
57 template<typename ClusterNameT = Aws::String>
58 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
59 template<typename ClusterNameT = Aws::String>
60 CreateFargateProfileRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
62
64
73 inline const Aws::String& GetPodExecutionRoleArn() const { return m_podExecutionRoleArn; }
74 inline bool PodExecutionRoleArnHasBeenSet() const { return m_podExecutionRoleArnHasBeenSet; }
75 template<typename PodExecutionRoleArnT = Aws::String>
76 void SetPodExecutionRoleArn(PodExecutionRoleArnT&& value) { m_podExecutionRoleArnHasBeenSet = true; m_podExecutionRoleArn = std::forward<PodExecutionRoleArnT>(value); }
77 template<typename PodExecutionRoleArnT = Aws::String>
78 CreateFargateProfileRequest& WithPodExecutionRoleArn(PodExecutionRoleArnT&& value) { SetPodExecutionRoleArn(std::forward<PodExecutionRoleArnT>(value)); return *this;}
80
82
88 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
89 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
90 template<typename SubnetsT = Aws::Vector<Aws::String>>
91 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
92 template<typename SubnetsT = Aws::Vector<Aws::String>>
93 CreateFargateProfileRequest& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
94 template<typename SubnetsT = Aws::String>
95 CreateFargateProfileRequest& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
97
99
106 inline const Aws::Vector<FargateProfileSelector>& GetSelectors() const { return m_selectors; }
107 inline bool SelectorsHasBeenSet() const { return m_selectorsHasBeenSet; }
108 template<typename SelectorsT = Aws::Vector<FargateProfileSelector>>
109 void SetSelectors(SelectorsT&& value) { m_selectorsHasBeenSet = true; m_selectors = std::forward<SelectorsT>(value); }
110 template<typename SelectorsT = Aws::Vector<FargateProfileSelector>>
111 CreateFargateProfileRequest& WithSelectors(SelectorsT&& value) { SetSelectors(std::forward<SelectorsT>(value)); return *this;}
112 template<typename SelectorsT = FargateProfileSelector>
113 CreateFargateProfileRequest& AddSelectors(SelectorsT&& value) { m_selectorsHasBeenSet = true; m_selectors.emplace_back(std::forward<SelectorsT>(value)); return *this; }
115
117
121 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
122 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
123 template<typename ClientRequestTokenT = Aws::String>
124 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
125 template<typename ClientRequestTokenT = Aws::String>
126 CreateFargateProfileRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
128
130
135 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
138 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
139 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 CreateFargateProfileRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
141 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
142 CreateFargateProfileRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
143 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
144 }
146 private:
147
148 Aws::String m_fargateProfileName;
149 bool m_fargateProfileNameHasBeenSet = false;
150
151 Aws::String m_clusterName;
152 bool m_clusterNameHasBeenSet = false;
153
154 Aws::String m_podExecutionRoleArn;
155 bool m_podExecutionRoleArnHasBeenSet = false;
156
157 Aws::Vector<Aws::String> m_subnets;
158 bool m_subnetsHasBeenSet = false;
159
161 bool m_selectorsHasBeenSet = false;
162
163 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
164 bool m_clientRequestTokenHasBeenSet = true;
165
167 bool m_tagsHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace EKS
172} // 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