AWS SDK for C++  1.9.106
AWS SDK for C++
GetFederationTokenRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sts/STS_EXPORTS.h>
8 #include <aws/sts/STSRequest.h>
12 #include <aws/sts/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace STS
18 {
19 namespace 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::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
51  inline const Aws::String& GetName() const{ return m_name; }
52 
62  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 
73  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
74 
84  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 
95  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
96 
106  inline GetFederationTokenRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
107 
117  inline GetFederationTokenRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 
128  inline GetFederationTokenRequest& WithName(const char* value) { SetName(value); return *this;}
129 
130 
162  inline const Aws::String& GetPolicy() const{ return m_policy; }
163 
195  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
196 
228  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
229 
261  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
262 
294  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
295 
327  inline GetFederationTokenRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
328 
360  inline GetFederationTokenRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
361 
393  inline GetFederationTokenRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
394 
395 
430  inline const Aws::Vector<PolicyDescriptorType>& GetPolicyArns() const{ return m_policyArns; }
431 
466  inline bool PolicyArnsHasBeenSet() const { return m_policyArnsHasBeenSet; }
467 
502  inline void SetPolicyArns(const Aws::Vector<PolicyDescriptorType>& value) { m_policyArnsHasBeenSet = true; m_policyArns = value; }
503 
538  inline void SetPolicyArns(Aws::Vector<PolicyDescriptorType>&& value) { m_policyArnsHasBeenSet = true; m_policyArns = std::move(value); }
539 
574  inline GetFederationTokenRequest& WithPolicyArns(const Aws::Vector<PolicyDescriptorType>& value) { SetPolicyArns(value); return *this;}
575 
610  inline GetFederationTokenRequest& WithPolicyArns(Aws::Vector<PolicyDescriptorType>&& value) { SetPolicyArns(std::move(value)); return *this;}
611 
646  inline GetFederationTokenRequest& AddPolicyArns(const PolicyDescriptorType& value) { m_policyArnsHasBeenSet = true; m_policyArns.push_back(value); return *this; }
647 
682  inline GetFederationTokenRequest& AddPolicyArns(PolicyDescriptorType&& value) { m_policyArnsHasBeenSet = true; m_policyArns.push_back(std::move(value)); return *this; }
683 
684 
694  inline int GetDurationSeconds() const{ return m_durationSeconds; }
695 
705  inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
706 
716  inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
717 
727  inline GetFederationTokenRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
728 
729 
756  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
757 
784  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
785 
812  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
813 
840  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
841 
868  inline GetFederationTokenRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
869 
896  inline GetFederationTokenRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
897 
924  inline GetFederationTokenRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
925 
952  inline GetFederationTokenRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
953 
954  private:
955 
956  Aws::String m_name;
957  bool m_nameHasBeenSet;
958 
959  Aws::String m_policy;
960  bool m_policyHasBeenSet;
961 
963  bool m_policyArnsHasBeenSet;
964 
965  int m_durationSeconds;
966  bool m_durationSecondsHasBeenSet;
967 
968  Aws::Vector<Tag> m_tags;
969  bool m_tagsHasBeenSet;
970  };
971 
972 } // namespace Model
973 } // namespace STS
974 } // namespace Aws
Aws::STS::Model::GetFederationTokenRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: GetFederationTokenRequest.h:812
Aws::STS::Model::GetFederationTokenRequest::GetPolicy
const Aws::String & GetPolicy() const
Definition: GetFederationTokenRequest.h:162
Aws::STS::STSRequest
Definition: STSRequest.h:17
Aws::Http::URI
Definition: URI.h:32
Aws::STS::Model::GetFederationTokenRequest::WithName
GetFederationTokenRequest & WithName(const Aws::String &value)
Definition: GetFederationTokenRequest.h:106
Aws::STS::Model::PolicyDescriptorType
Definition: PolicyDescriptorType.h:33
Aws::STS::Model::GetFederationTokenRequest::DurationSecondsHasBeenSet
bool DurationSecondsHasBeenSet() const
Definition: GetFederationTokenRequest.h:705
Aws::STS::Model::GetFederationTokenRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetFederationTokenRequest.h:33
Aws::STS::Model::GetFederationTokenRequest::AddPolicyArns
GetFederationTokenRequest & AddPolicyArns(const PolicyDescriptorType &value)
Definition: GetFederationTokenRequest.h:646
Tag.h
Aws::STS::Model::GetFederationTokenRequest::GetPolicyArns
const Aws::Vector< PolicyDescriptorType > & GetPolicyArns() const
Definition: GetFederationTokenRequest.h:430
Aws::STS::Model::GetFederationTokenRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: GetFederationTokenRequest.h:62
AWS_STS_API
#define AWS_STS_API
Definition: STS_EXPORTS.h:28
Aws::STS::Model::Tag
Definition: Tag.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::STS::Model::GetFederationTokenRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: GetFederationTokenRequest.h:756
Aws::STS::Model::GetFederationTokenRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: GetFederationTokenRequest.h:840
Aws::STS::Model::GetFederationTokenRequest::WithPolicy
GetFederationTokenRequest & WithPolicy(const Aws::String &value)
Definition: GetFederationTokenRequest.h:327
AWSVector.h
Aws::STS::Model::GetFederationTokenRequest::WithPolicy
GetFederationTokenRequest & WithPolicy(const char *value)
Definition: GetFederationTokenRequest.h:393
Aws::STS::Model::GetFederationTokenRequest::WithPolicy
GetFederationTokenRequest & WithPolicy(Aws::String &&value)
Definition: GetFederationTokenRequest.h:360
Aws::STS::Model::GetFederationTokenRequest::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: GetFederationTokenRequest.h:261
Aws::STS::Model::GetFederationTokenRequest::GetDurationSeconds
int GetDurationSeconds() const
Definition: GetFederationTokenRequest.h:694
Aws::STS::Model::GetFederationTokenRequest::WithPolicyArns
GetFederationTokenRequest & WithPolicyArns(const Aws::Vector< PolicyDescriptorType > &value)
Definition: GetFederationTokenRequest.h:574
Aws::STS::Model::GetFederationTokenRequest::GetFederationTokenRequest
GetFederationTokenRequest()
Aws::STS::Model::GetFederationTokenRequest::WithName
GetFederationTokenRequest & WithName(const char *value)
Definition: GetFederationTokenRequest.h:128
Aws::STS::Model::GetFederationTokenRequest::GetName
const Aws::String & GetName() const
Definition: GetFederationTokenRequest.h:51
STS_EXPORTS.h
Aws::STS::Model::GetFederationTokenRequest::SetDurationSeconds
void SetDurationSeconds(int value)
Definition: GetFederationTokenRequest.h:716
Aws::STS::Model::GetFederationTokenRequest::SetName
void SetName(const char *value)
Definition: GetFederationTokenRequest.h:95
Aws::STS::Model::GetFederationTokenRequest::SetPolicy
void SetPolicy(const char *value)
Definition: GetFederationTokenRequest.h:294
Aws::STS::Model::GetFederationTokenRequest::WithTags
GetFederationTokenRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: GetFederationTokenRequest.h:896
PolicyDescriptorType.h
Aws::STS::Model::GetFederationTokenRequest::WithDurationSeconds
GetFederationTokenRequest & WithDurationSeconds(int value)
Definition: GetFederationTokenRequest.h:727
Aws::STS::Model::GetFederationTokenRequest::AddPolicyArns
GetFederationTokenRequest & AddPolicyArns(PolicyDescriptorType &&value)
Definition: GetFederationTokenRequest.h:682
AWSString.h
Aws::STS::Model::GetFederationTokenRequest::AddTags
GetFederationTokenRequest & AddTags(const Tag &value)
Definition: GetFederationTokenRequest.h:924
Aws::STS::Model::GetFederationTokenRequest::SetName
void SetName(const Aws::String &value)
Definition: GetFederationTokenRequest.h:73
Aws::STS::Model::GetFederationTokenRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::STS::Model::GetFederationTokenRequest::SetPolicyArns
void SetPolicyArns(Aws::Vector< PolicyDescriptorType > &&value)
Definition: GetFederationTokenRequest.h:538
Aws::STS::Model::GetFederationTokenRequest::WithPolicyArns
GetFederationTokenRequest & WithPolicyArns(Aws::Vector< PolicyDescriptorType > &&value)
Definition: GetFederationTokenRequest.h:610
Aws::STS::Model::GetFederationTokenRequest::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: GetFederationTokenRequest.h:228
Aws::STS::Model::GetFederationTokenRequest::PolicyArnsHasBeenSet
bool PolicyArnsHasBeenSet() const
Definition: GetFederationTokenRequest.h:466
Aws::STS::Model::GetFederationTokenRequest::SetName
void SetName(Aws::String &&value)
Definition: GetFederationTokenRequest.h:84
Aws
Definition: AccessManagementClient.h:15
Aws::STS::Model::GetFederationTokenRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::STS::Model::GetFederationTokenRequest::WithName
GetFederationTokenRequest & WithName(Aws::String &&value)
Definition: GetFederationTokenRequest.h:117
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::STS::Model::GetFederationTokenRequest::SetPolicyArns
void SetPolicyArns(const Aws::Vector< PolicyDescriptorType > &value)
Definition: GetFederationTokenRequest.h:502
Aws::STS::Model::GetFederationTokenRequest::AddTags
GetFederationTokenRequest & AddTags(Tag &&value)
Definition: GetFederationTokenRequest.h:952
Aws::STS::Model::GetFederationTokenRequest::WithTags
GetFederationTokenRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: GetFederationTokenRequest.h:868
STSRequest.h
Aws::STS::Model::GetFederationTokenRequest
Definition: GetFederationTokenRequest.h:25
Aws::STS::Model::GetFederationTokenRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: GetFederationTokenRequest.h:784
Aws::STS::Model::GetFederationTokenRequest::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: GetFederationTokenRequest.h:195