AWS SDK for C++

AWS SDK for C++ Version 1.11.683

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
95 inline const Aws::String& GetPolicy() const { return m_policy; }
96 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
97 template <typename PolicyT = Aws::String>
98 void SetPolicy(PolicyT&& value) {
99 m_policyHasBeenSet = true;
100 m_policy = std::forward<PolicyT>(value);
101 }
102 template <typename PolicyT = Aws::String>
104 SetPolicy(std::forward<PolicyT>(value));
105 return *this;
106 }
108
110
145 inline const Aws::Vector<PolicyDescriptorType>& GetPolicyArns() const { return m_policyArns; }
146 inline bool PolicyArnsHasBeenSet() const { return m_policyArnsHasBeenSet; }
147 template <typename PolicyArnsT = Aws::Vector<PolicyDescriptorType>>
148 void SetPolicyArns(PolicyArnsT&& value) {
149 m_policyArnsHasBeenSet = true;
150 m_policyArns = std::forward<PolicyArnsT>(value);
151 }
152 template <typename PolicyArnsT = Aws::Vector<PolicyDescriptorType>>
154 SetPolicyArns(std::forward<PolicyArnsT>(value));
155 return *this;
156 }
157 template <typename PolicyArnsT = PolicyDescriptorType>
159 m_policyArnsHasBeenSet = true;
160 m_policyArns.emplace_back(std::forward<PolicyArnsT>(value));
161 return *this;
162 }
164
166
174 inline int GetDurationSeconds() const { return m_durationSeconds; }
175 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
176 inline void SetDurationSeconds(int value) {
177 m_durationSecondsHasBeenSet = true;
178 m_durationSeconds = value;
179 }
181 SetDurationSeconds(value);
182 return *this;
183 }
185
187
213 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
214 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
215 template <typename TagsT = Aws::Vector<Tag>>
216 void SetTags(TagsT&& value) {
217 m_tagsHasBeenSet = true;
218 m_tags = std::forward<TagsT>(value);
219 }
220 template <typename TagsT = Aws::Vector<Tag>>
222 SetTags(std::forward<TagsT>(value));
223 return *this;
224 }
225 template <typename TagsT = Tag>
227 m_tagsHasBeenSet = true;
228 m_tags.emplace_back(std::forward<TagsT>(value));
229 return *this;
230 }
232 private:
233 Aws::String m_name;
234 bool m_nameHasBeenSet = false;
235
236 Aws::String m_policy;
237 bool m_policyHasBeenSet = false;
238
240 bool m_policyArnsHasBeenSet = false;
241
242 int m_durationSeconds{0};
243 bool m_durationSecondsHasBeenSet = false;
244
245 Aws::Vector<Tag> m_tags;
246 bool m_tagsHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace STS
251} // 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 & 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