AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetFederationTokenRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sts/STSRequest.h>
10#include <aws/sts/STS_EXPORTS.h>
11#include <aws/sts/model/PolicyDescriptorType.h>
12#include <aws/sts/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace STS {
18namespace Model {
19
23 public:
24 AWS_STS_API GetFederationTokenRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetFederationToken"; }
31
32 AWS_STS_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_STS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template <typename NameT = Aws::String>
51 void SetName(NameT&& value) {
52 m_nameHasBeenSet = true;
53 m_name = std::forward<NameT>(value);
54 }
55 template <typename NameT = Aws::String>
57 SetName(std::forward<NameT>(value));
58 return *this;
59 }
61
63
89 inline const Aws::String& GetPolicy() const { return m_policy; }
90 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
91 template <typename PolicyT = Aws::String>
92 void SetPolicy(PolicyT&& value) {
93 m_policyHasBeenSet = true;
94 m_policy = std::forward<PolicyT>(value);
95 }
96 template <typename PolicyT = Aws::String>
98 SetPolicy(std::forward<PolicyT>(value));
99 return *this;
100 }
102
104
134 inline const Aws::Vector<PolicyDescriptorType>& GetPolicyArns() const { return m_policyArns; }
135 inline bool PolicyArnsHasBeenSet() const { return m_policyArnsHasBeenSet; }
136 template <typename PolicyArnsT = Aws::Vector<PolicyDescriptorType>>
137 void SetPolicyArns(PolicyArnsT&& value) {
138 m_policyArnsHasBeenSet = true;
139 m_policyArns = std::forward<PolicyArnsT>(value);
140 }
141 template <typename PolicyArnsT = Aws::Vector<PolicyDescriptorType>>
143 SetPolicyArns(std::forward<PolicyArnsT>(value));
144 return *this;
145 }
146 template <typename PolicyArnsT = PolicyDescriptorType>
148 m_policyArnsHasBeenSet = true;
149 m_policyArns.emplace_back(std::forward<PolicyArnsT>(value));
150 return *this;
151 }
153
155
163 inline int GetDurationSeconds() const { return m_durationSeconds; }
164 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
165 inline void SetDurationSeconds(int value) {
166 m_durationSecondsHasBeenSet = true;
167 m_durationSeconds = value;
168 }
170 SetDurationSeconds(value);
171 return *this;
172 }
174
176
197 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
198 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
199 template <typename TagsT = Aws::Vector<Tag>>
200 void SetTags(TagsT&& value) {
201 m_tagsHasBeenSet = true;
202 m_tags = std::forward<TagsT>(value);
203 }
204 template <typename TagsT = Aws::Vector<Tag>>
206 SetTags(std::forward<TagsT>(value));
207 return *this;
208 }
209 template <typename TagsT = Tag>
211 m_tagsHasBeenSet = true;
212 m_tags.emplace_back(std::forward<TagsT>(value));
213 return *this;
214 }
216
218
219 inline int GetMinimumSessionTokenSize() const { return m_minimumSessionTokenSize; }
220 inline bool MinimumSessionTokenSizeHasBeenSet() const { return m_minimumSessionTokenSizeHasBeenSet; }
221 inline void SetMinimumSessionTokenSize(int value) {
222 m_minimumSessionTokenSizeHasBeenSet = true;
223 m_minimumSessionTokenSize = value;
224 }
227 return *this;
228 }
230 private:
231 Aws::String m_name;
232
233 Aws::String m_policy;
234
236
237 int m_durationSeconds{0};
238
239 Aws::Vector<Tag> m_tags;
240
241 int m_minimumSessionTokenSize{0};
242 bool m_nameHasBeenSet = false;
243 bool m_policyHasBeenSet = false;
244 bool m_policyArnsHasBeenSet = false;
245 bool m_durationSecondsHasBeenSet = false;
246 bool m_tagsHasBeenSet = false;
247 bool m_minimumSessionTokenSizeHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace STS
252} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< PolicyDescriptorType > & GetPolicyArns() const
GetFederationTokenRequest & AddTags(TagsT &&value)
GetFederationTokenRequest & WithName(NameT &&value)
GetFederationTokenRequest & AddPolicyArns(PolicyArnsT &&value)
GetFederationTokenRequest & WithMinimumSessionTokenSize(int value)
GetFederationTokenRequest & WithPolicyArns(PolicyArnsT &&value)
GetFederationTokenRequest & WithTags(TagsT &&value)
AWS_STS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
GetFederationTokenRequest & WithPolicy(PolicyT &&value)
GetFederationTokenRequest & WithDurationSeconds(int value)
AWS_STS_API GetFederationTokenRequest()=default
AWS_STS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector