AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetWebIdentityTokenRequest.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/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace STS {
17namespace Model {
18
22 public:
23 AWS_STS_API GetWebIdentityTokenRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetWebIdentityToken"; }
30
31 AWS_STS_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_STS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
44 inline const Aws::Vector<Aws::String>& GetAudience() const { return m_audience; }
45 inline bool AudienceHasBeenSet() const { return m_audienceHasBeenSet; }
46 template <typename AudienceT = Aws::Vector<Aws::String>>
47 void SetAudience(AudienceT&& value) {
48 m_audienceHasBeenSet = true;
49 m_audience = std::forward<AudienceT>(value);
50 }
51 template <typename AudienceT = Aws::Vector<Aws::String>>
53 SetAudience(std::forward<AudienceT>(value));
54 return *this;
55 }
56 template <typename AudienceT = Aws::String>
58 m_audienceHasBeenSet = true;
59 m_audience.emplace_back(std::forward<AudienceT>(value));
60 return *this;
61 }
63
65
72 inline int GetDurationSeconds() const { return m_durationSeconds; }
73 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
74 inline void SetDurationSeconds(int value) {
75 m_durationSecondsHasBeenSet = true;
76 m_durationSeconds = value;
77 }
79 SetDurationSeconds(value);
80 return *this;
81 }
83
85
90 inline const Aws::String& GetSigningAlgorithm() const { return m_signingAlgorithm; }
91 inline bool SigningAlgorithmHasBeenSet() const { return m_signingAlgorithmHasBeenSet; }
92 template <typename SigningAlgorithmT = Aws::String>
93 void SetSigningAlgorithm(SigningAlgorithmT&& value) {
94 m_signingAlgorithmHasBeenSet = true;
95 m_signingAlgorithm = std::forward<SigningAlgorithmT>(value);
96 }
97 template <typename SigningAlgorithmT = Aws::String>
99 SetSigningAlgorithm(std::forward<SigningAlgorithmT>(value));
100 return *this;
101 }
103
105
110 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template <typename TagsT = Aws::Vector<Tag>>
113 void SetTags(TagsT&& value) {
114 m_tagsHasBeenSet = true;
115 m_tags = std::forward<TagsT>(value);
116 }
117 template <typename TagsT = Aws::Vector<Tag>>
119 SetTags(std::forward<TagsT>(value));
120 return *this;
121 }
122 template <typename TagsT = Tag>
124 m_tagsHasBeenSet = true;
125 m_tags.emplace_back(std::forward<TagsT>(value));
126 return *this;
127 }
129 private:
130 Aws::Vector<Aws::String> m_audience;
131
132 int m_durationSeconds{0};
133
134 Aws::String m_signingAlgorithm;
135
136 Aws::Vector<Tag> m_tags;
137 bool m_audienceHasBeenSet = false;
138 bool m_durationSecondsHasBeenSet = false;
139 bool m_signingAlgorithmHasBeenSet = false;
140 bool m_tagsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace STS
145} // namespace Aws
AWS_STS_API GetWebIdentityTokenRequest()=default
AWS_STS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
GetWebIdentityTokenRequest & AddAudience(AudienceT &&value)
GetWebIdentityTokenRequest & AddTags(TagsT &&value)
AWS_STS_API Aws::String SerializePayload() const override
GetWebIdentityTokenRequest & WithTags(TagsT &&value)
GetWebIdentityTokenRequest & WithDurationSeconds(int value)
const Aws::Vector< Aws::String > & GetAudience() const
GetWebIdentityTokenRequest & WithSigningAlgorithm(SigningAlgorithmT &&value)
virtual const char * GetServiceRequestName() const override
GetWebIdentityTokenRequest & WithAudience(AudienceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector