AWS SDK for C++

AWS SDK for C++ Version 1.11.939

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#include <aws/sts/model/WebIdentityTokenSubjectModeType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace STS {
18namespace Model {
19
23 public:
24 AWS_STS_API GetWebIdentityTokenRequest() = 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 "GetWebIdentityToken"; }
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
45 inline const Aws::Vector<Aws::String>& GetAudience() const { return m_audience; }
46 inline bool AudienceHasBeenSet() const { return m_audienceHasBeenSet; }
47 template <typename AudienceT = Aws::Vector<Aws::String>>
48 void SetAudience(AudienceT&& value) {
49 m_audienceHasBeenSet = true;
50 m_audience = std::forward<AudienceT>(value);
51 }
52 template <typename AudienceT = Aws::Vector<Aws::String>>
54 SetAudience(std::forward<AudienceT>(value));
55 return *this;
56 }
57 template <typename AudienceT = Aws::String>
59 m_audienceHasBeenSet = true;
60 m_audience.emplace_back(std::forward<AudienceT>(value));
61 return *this;
62 }
64
66
73 inline int GetDurationSeconds() const { return m_durationSeconds; }
74 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
75 inline void SetDurationSeconds(int value) {
76 m_durationSecondsHasBeenSet = true;
77 m_durationSeconds = value;
78 }
80 SetDurationSeconds(value);
81 return *this;
82 }
84
86
91 inline const Aws::String& GetSigningAlgorithm() const { return m_signingAlgorithm; }
92 inline bool SigningAlgorithmHasBeenSet() const { return m_signingAlgorithmHasBeenSet; }
93 template <typename SigningAlgorithmT = Aws::String>
94 void SetSigningAlgorithm(SigningAlgorithmT&& value) {
95 m_signingAlgorithmHasBeenSet = true;
96 m_signingAlgorithm = std::forward<SigningAlgorithmT>(value);
97 }
98 template <typename SigningAlgorithmT = Aws::String>
100 SetSigningAlgorithm(std::forward<SigningAlgorithmT>(value));
101 return *this;
102 }
104
106
126 inline const Aws::String& GetScope() const { return m_scope; }
127 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
128 template <typename ScopeT = Aws::String>
129 void SetScope(ScopeT&& value) {
130 m_scopeHasBeenSet = true;
131 m_scope = std::forward<ScopeT>(value);
132 }
133 template <typename ScopeT = Aws::String>
135 SetScope(std::forward<ScopeT>(value));
136 return *this;
137 }
139
141
166 inline WebIdentityTokenSubjectModeType GetSubjectMode() const { return m_subjectMode; }
167 inline bool SubjectModeHasBeenSet() const { return m_subjectModeHasBeenSet; }
169 m_subjectModeHasBeenSet = true;
170 m_subjectMode = value;
171 }
177
179
184 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
185 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
186 template <typename TagsT = Aws::Vector<Tag>>
187 void SetTags(TagsT&& value) {
188 m_tagsHasBeenSet = true;
189 m_tags = std::forward<TagsT>(value);
190 }
191 template <typename TagsT = Aws::Vector<Tag>>
193 SetTags(std::forward<TagsT>(value));
194 return *this;
195 }
196 template <typename TagsT = Tag>
198 m_tagsHasBeenSet = true;
199 m_tags.emplace_back(std::forward<TagsT>(value));
200 return *this;
201 }
203 private:
204 Aws::Vector<Aws::String> m_audience;
205
206 int m_durationSeconds{0};
207
208 Aws::String m_signingAlgorithm;
209
210 Aws::String m_scope;
211
213
214 Aws::Vector<Tag> m_tags;
215 bool m_audienceHasBeenSet = false;
216 bool m_durationSecondsHasBeenSet = false;
217 bool m_signingAlgorithmHasBeenSet = false;
218 bool m_scopeHasBeenSet = false;
219 bool m_subjectModeHasBeenSet = false;
220 bool m_tagsHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace STS
225} // namespace Aws
AWS_STS_API GetWebIdentityTokenRequest()=default
GetWebIdentityTokenRequest & WithSubjectMode(WebIdentityTokenSubjectModeType value)
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 & WithScope(ScopeT &&value)
void SetSubjectMode(WebIdentityTokenSubjectModeType value)
GetWebIdentityTokenRequest & WithSigningAlgorithm(SigningAlgorithmT &&value)
WebIdentityTokenSubjectModeType GetSubjectMode() const
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