AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 inline GetFederationTokenRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline GetFederationTokenRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline GetFederationTokenRequest& WithName(const char* value) { SetName(value); return *this;}
61
63
95 inline const Aws::String& GetPolicy() const{ return m_policy; }
96 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
97 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
98 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
99 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
100 inline GetFederationTokenRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
101 inline GetFederationTokenRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
102 inline GetFederationTokenRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
104
106
141 inline const Aws::Vector<PolicyDescriptorType>& GetPolicyArns() const{ return m_policyArns; }
142 inline bool PolicyArnsHasBeenSet() const { return m_policyArnsHasBeenSet; }
143 inline void SetPolicyArns(const Aws::Vector<PolicyDescriptorType>& value) { m_policyArnsHasBeenSet = true; m_policyArns = value; }
144 inline void SetPolicyArns(Aws::Vector<PolicyDescriptorType>&& value) { m_policyArnsHasBeenSet = true; m_policyArns = std::move(value); }
147 inline GetFederationTokenRequest& AddPolicyArns(const PolicyDescriptorType& value) { m_policyArnsHasBeenSet = true; m_policyArns.push_back(value); return *this; }
148 inline GetFederationTokenRequest& AddPolicyArns(PolicyDescriptorType&& value) { m_policyArnsHasBeenSet = true; m_policyArns.push_back(std::move(value)); return *this; }
150
152
160 inline int GetDurationSeconds() const{ return m_durationSeconds; }
161 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
162 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
163 inline GetFederationTokenRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
165
167
193 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
194 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
195 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
196 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
197 inline GetFederationTokenRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
198 inline GetFederationTokenRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
199 inline GetFederationTokenRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
200 inline GetFederationTokenRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
202 private:
203
204 Aws::String m_name;
205 bool m_nameHasBeenSet = false;
206
207 Aws::String m_policy;
208 bool m_policyHasBeenSet = false;
209
211 bool m_policyArnsHasBeenSet = false;
212
213 int m_durationSeconds;
214 bool m_durationSecondsHasBeenSet = false;
215
216 Aws::Vector<Tag> m_tags;
217 bool m_tagsHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace STS
222} // namespace Aws
GetFederationTokenRequest & WithPolicyArns(const Aws::Vector< PolicyDescriptorType > &value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< PolicyDescriptorType > & GetPolicyArns() const
GetFederationTokenRequest & WithTags(const Aws::Vector< Tag > &value)
GetFederationTokenRequest & WithName(const Aws::String &value)
GetFederationTokenRequest & WithPolicy(const char *value)
AWS_STS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetPolicyArns(const Aws::Vector< PolicyDescriptorType > &value)
GetFederationTokenRequest & AddTags(const Tag &value)
void SetPolicyArns(Aws::Vector< PolicyDescriptorType > &&value)
GetFederationTokenRequest & WithName(Aws::String &&value)
GetFederationTokenRequest & AddPolicyArns(const PolicyDescriptorType &value)
GetFederationTokenRequest & AddTags(Tag &&value)
GetFederationTokenRequest & WithDurationSeconds(int value)
GetFederationTokenRequest & WithTags(Aws::Vector< Tag > &&value)
GetFederationTokenRequest & WithPolicy(const Aws::String &value)
GetFederationTokenRequest & WithPolicy(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
GetFederationTokenRequest & WithPolicyArns(Aws::Vector< PolicyDescriptorType > &&value)
GetFederationTokenRequest & AddPolicyArns(PolicyDescriptorType &&value)
AWS_STS_API Aws::String SerializePayload() const override
GetFederationTokenRequest & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector