AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetFederationTokenRequest.h
1
6#pragma once
7#include <aws/sts/STS_EXPORTS.h>
8#include <aws/sts/STSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sts/model/PolicyDescriptorType.h>
12#include <aws/sts/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace STS
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_STS_API GetFederationTokenRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetFederationToken"; }
34
35 AWS_STS_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_STS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 GetFederationTokenRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
93 inline const Aws::String& GetPolicy() const { return m_policy; }
94 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
95 template<typename PolicyT = Aws::String>
96 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
97 template<typename PolicyT = Aws::String>
98 GetFederationTokenRequest& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
100
102
137 inline const Aws::Vector<PolicyDescriptorType>& GetPolicyArns() const { return m_policyArns; }
138 inline bool PolicyArnsHasBeenSet() const { return m_policyArnsHasBeenSet; }
139 template<typename PolicyArnsT = Aws::Vector<PolicyDescriptorType>>
140 void SetPolicyArns(PolicyArnsT&& value) { m_policyArnsHasBeenSet = true; m_policyArns = std::forward<PolicyArnsT>(value); }
141 template<typename PolicyArnsT = Aws::Vector<PolicyDescriptorType>>
142 GetFederationTokenRequest& WithPolicyArns(PolicyArnsT&& value) { SetPolicyArns(std::forward<PolicyArnsT>(value)); return *this;}
143 template<typename PolicyArnsT = PolicyDescriptorType>
144 GetFederationTokenRequest& AddPolicyArns(PolicyArnsT&& value) { m_policyArnsHasBeenSet = true; m_policyArns.emplace_back(std::forward<PolicyArnsT>(value)); return *this; }
146
148
156 inline int GetDurationSeconds() const { return m_durationSeconds; }
157 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
158 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
159 inline GetFederationTokenRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
161
163
189 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
190 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
191 template<typename TagsT = Aws::Vector<Tag>>
192 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
193 template<typename TagsT = Aws::Vector<Tag>>
194 GetFederationTokenRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
195 template<typename TagsT = Tag>
196 GetFederationTokenRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
198 private:
199
200 Aws::String m_name;
201 bool m_nameHasBeenSet = false;
202
203 Aws::String m_policy;
204 bool m_policyHasBeenSet = false;
205
207 bool m_policyArnsHasBeenSet = false;
208
209 int m_durationSeconds{0};
210 bool m_durationSecondsHasBeenSet = false;
211
212 Aws::Vector<Tag> m_tags;
213 bool m_tagsHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace STS
218} // 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