AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
OidcConfigOutput.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/AccessControlGrantType.h>
9#include <aws/amplifygen3/model/AccessControlTokenType.h>
10#include <aws/amplifygen3/model/RefreshTokenStrategy.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AmplifyGen3 {
25namespace Model {
26
34 public:
35 AWS_AMPLIFYGEN3_API OidcConfigOutput() = default;
36 AWS_AMPLIFYGEN3_API OidcConfigOutput(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AMPLIFYGEN3_API OidcConfigOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetIssuerUrl() const { return m_issuerUrl; }
45 inline bool IssuerUrlHasBeenSet() const { return m_issuerUrlHasBeenSet; }
46 template <typename IssuerUrlT = Aws::String>
47 void SetIssuerUrl(IssuerUrlT&& value) {
48 m_issuerUrlHasBeenSet = true;
49 m_issuerUrl = std::forward<IssuerUrlT>(value);
50 }
51 template <typename IssuerUrlT = Aws::String>
52 OidcConfigOutput& WithIssuerUrl(IssuerUrlT&& value) {
53 SetIssuerUrl(std::forward<IssuerUrlT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetClientId() const { return m_clientId; }
63 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
64 template <typename ClientIdT = Aws::String>
65 void SetClientId(ClientIdT&& value) {
66 m_clientIdHasBeenSet = true;
67 m_clientId = std::forward<ClientIdT>(value);
68 }
69 template <typename ClientIdT = Aws::String>
70 OidcConfigOutput& WithClientId(ClientIdT&& value) {
71 SetClientId(std::forward<ClientIdT>(value));
72 return *this;
73 }
75
77
80 inline AccessControlTokenType GetTokenType() const { return m_tokenType; }
81 inline bool TokenTypeHasBeenSet() const { return m_tokenTypeHasBeenSet; }
83 m_tokenTypeHasBeenSet = true;
84 m_tokenType = value;
85 }
87 SetTokenType(value);
88 return *this;
89 }
91
93
96 inline const Aws::Vector<Aws::String>& GetTokenValidations() const { return m_tokenValidations; }
97 inline bool TokenValidationsHasBeenSet() const { return m_tokenValidationsHasBeenSet; }
98 template <typename TokenValidationsT = Aws::Vector<Aws::String>>
99 void SetTokenValidations(TokenValidationsT&& value) {
100 m_tokenValidationsHasBeenSet = true;
101 m_tokenValidations = std::forward<TokenValidationsT>(value);
102 }
103 template <typename TokenValidationsT = Aws::Vector<Aws::String>>
104 OidcConfigOutput& WithTokenValidations(TokenValidationsT&& value) {
105 SetTokenValidations(std::forward<TokenValidationsT>(value));
106 return *this;
107 }
108 template <typename TokenValidationsT = Aws::String>
109 OidcConfigOutput& AddTokenValidations(TokenValidationsT&& value) {
110 m_tokenValidationsHasBeenSet = true;
111 m_tokenValidations.emplace_back(std::forward<TokenValidationsT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetAuthorizationEndpoint() const { return m_authorizationEndpoint; }
121 inline bool AuthorizationEndpointHasBeenSet() const { return m_authorizationEndpointHasBeenSet; }
122 template <typename AuthorizationEndpointT = Aws::String>
123 void SetAuthorizationEndpoint(AuthorizationEndpointT&& value) {
124 m_authorizationEndpointHasBeenSet = true;
125 m_authorizationEndpoint = std::forward<AuthorizationEndpointT>(value);
126 }
127 template <typename AuthorizationEndpointT = Aws::String>
128 OidcConfigOutput& WithAuthorizationEndpoint(AuthorizationEndpointT&& value) {
129 SetAuthorizationEndpoint(std::forward<AuthorizationEndpointT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetTokenEndpoint() const { return m_tokenEndpoint; }
139 inline bool TokenEndpointHasBeenSet() const { return m_tokenEndpointHasBeenSet; }
140 template <typename TokenEndpointT = Aws::String>
141 void SetTokenEndpoint(TokenEndpointT&& value) {
142 m_tokenEndpointHasBeenSet = true;
143 m_tokenEndpoint = std::forward<TokenEndpointT>(value);
144 }
145 template <typename TokenEndpointT = Aws::String>
146 OidcConfigOutput& WithTokenEndpoint(TokenEndpointT&& value) {
147 SetTokenEndpoint(std::forward<TokenEndpointT>(value));
148 return *this;
149 }
151
153
156 inline AccessControlGrantType GetGrantType() const { return m_grantType; }
157 inline bool GrantTypeHasBeenSet() const { return m_grantTypeHasBeenSet; }
159 m_grantTypeHasBeenSet = true;
160 m_grantType = value;
161 }
163 SetGrantType(value);
164 return *this;
165 }
167
169
172 inline RefreshTokenStrategy GetRefreshTokenStrategy() const { return m_refreshTokenStrategy; }
173 inline bool RefreshTokenStrategyHasBeenSet() const { return m_refreshTokenStrategyHasBeenSet; }
175 m_refreshTokenStrategyHasBeenSet = true;
176 m_refreshTokenStrategy = value;
177 }
180 return *this;
181 }
183
185
188 inline const Aws::Map<Aws::String, Aws::String>& GetAuthorizeRequestParams() const { return m_authorizeRequestParams; }
189 inline bool AuthorizeRequestParamsHasBeenSet() const { return m_authorizeRequestParamsHasBeenSet; }
190 template <typename AuthorizeRequestParamsT = Aws::Map<Aws::String, Aws::String>>
191 void SetAuthorizeRequestParams(AuthorizeRequestParamsT&& value) {
192 m_authorizeRequestParamsHasBeenSet = true;
193 m_authorizeRequestParams = std::forward<AuthorizeRequestParamsT>(value);
194 }
195 template <typename AuthorizeRequestParamsT = Aws::Map<Aws::String, Aws::String>>
196 OidcConfigOutput& WithAuthorizeRequestParams(AuthorizeRequestParamsT&& value) {
197 SetAuthorizeRequestParams(std::forward<AuthorizeRequestParamsT>(value));
198 return *this;
199 }
200 template <typename AuthorizeRequestParamsKeyT = Aws::String, typename AuthorizeRequestParamsValueT = Aws::String>
201 OidcConfigOutput& AddAuthorizeRequestParams(AuthorizeRequestParamsKeyT&& key, AuthorizeRequestParamsValueT&& value) {
202 m_authorizeRequestParamsHasBeenSet = true;
203 m_authorizeRequestParams.emplace(std::forward<AuthorizeRequestParamsKeyT>(key), std::forward<AuthorizeRequestParamsValueT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::Map<Aws::String, Aws::String>& GetTokenRequestParams() const { return m_tokenRequestParams; }
213 inline bool TokenRequestParamsHasBeenSet() const { return m_tokenRequestParamsHasBeenSet; }
214 template <typename TokenRequestParamsT = Aws::Map<Aws::String, Aws::String>>
215 void SetTokenRequestParams(TokenRequestParamsT&& value) {
216 m_tokenRequestParamsHasBeenSet = true;
217 m_tokenRequestParams = std::forward<TokenRequestParamsT>(value);
218 }
219 template <typename TokenRequestParamsT = Aws::Map<Aws::String, Aws::String>>
220 OidcConfigOutput& WithTokenRequestParams(TokenRequestParamsT&& value) {
221 SetTokenRequestParams(std::forward<TokenRequestParamsT>(value));
222 return *this;
223 }
224 template <typename TokenRequestParamsKeyT = Aws::String, typename TokenRequestParamsValueT = Aws::String>
225 OidcConfigOutput& AddTokenRequestParams(TokenRequestParamsKeyT&& key, TokenRequestParamsValueT&& value) {
226 m_tokenRequestParamsHasBeenSet = true;
227 m_tokenRequestParams.emplace(std::forward<TokenRequestParamsKeyT>(key), std::forward<TokenRequestParamsValueT>(value));
228 return *this;
229 }
231 private:
232 Aws::String m_issuerUrl;
233
234 Aws::String m_clientId;
235
237
238 Aws::Vector<Aws::String> m_tokenValidations;
239
240 Aws::String m_authorizationEndpoint;
241
242 Aws::String m_tokenEndpoint;
243
245
247
248 Aws::Map<Aws::String, Aws::String> m_authorizeRequestParams;
249
250 Aws::Map<Aws::String, Aws::String> m_tokenRequestParams;
251 bool m_issuerUrlHasBeenSet = false;
252 bool m_clientIdHasBeenSet = false;
253 bool m_tokenTypeHasBeenSet = false;
254 bool m_tokenValidationsHasBeenSet = false;
255 bool m_authorizationEndpointHasBeenSet = false;
256 bool m_tokenEndpointHasBeenSet = false;
257 bool m_grantTypeHasBeenSet = false;
258 bool m_refreshTokenStrategyHasBeenSet = false;
259 bool m_authorizeRequestParamsHasBeenSet = false;
260 bool m_tokenRequestParamsHasBeenSet = false;
261};
262
263} // namespace Model
264} // namespace AmplifyGen3
265} // namespace Aws
AccessControlGrantType GetGrantType() const
OidcConfigOutput & WithTokenRequestParams(TokenRequestParamsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTokenRequestParams() const
const Aws::String & GetAuthorizationEndpoint() const
OidcConfigOutput & WithGrantType(AccessControlGrantType value)
OidcConfigOutput & WithTokenValidations(TokenValidationsT &&value)
void SetAuthorizeRequestParams(AuthorizeRequestParamsT &&value)
AWS_AMPLIFYGEN3_API OidcConfigOutput(Aws::Utils::Json::JsonView jsonValue)
void SetAuthorizationEndpoint(AuthorizationEndpointT &&value)
OidcConfigOutput & WithClientId(ClientIdT &&value)
AWS_AMPLIFYGEN3_API OidcConfigOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIssuerUrl() const
void SetTokenRequestParams(TokenRequestParamsT &&value)
OidcConfigOutput & AddAuthorizeRequestParams(AuthorizeRequestParamsKeyT &&key, AuthorizeRequestParamsValueT &&value)
OidcConfigOutput & AddTokenRequestParams(TokenRequestParamsKeyT &&key, TokenRequestParamsValueT &&value)
OidcConfigOutput & WithTokenEndpoint(TokenEndpointT &&value)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
OidcConfigOutput & WithRefreshTokenStrategy(RefreshTokenStrategy value)
void SetTokenValidations(TokenValidationsT &&value)
OidcConfigOutput & AddTokenValidations(TokenValidationsT &&value)
OidcConfigOutput & WithAuthorizationEndpoint(AuthorizationEndpointT &&value)
void SetRefreshTokenStrategy(RefreshTokenStrategy value)
OidcConfigOutput & WithAuthorizeRequestParams(AuthorizeRequestParamsT &&value)
const Aws::String & GetClientId() const
AWS_AMPLIFYGEN3_API OidcConfigOutput()=default
AccessControlTokenType GetTokenType() const
OidcConfigOutput & WithTokenType(AccessControlTokenType value)
const Aws::String & GetTokenEndpoint() const
void SetTokenEndpoint(TokenEndpointT &&value)
void SetGrantType(AccessControlGrantType value)
void SetTokenType(AccessControlTokenType value)
const Aws::Vector< Aws::String > & GetTokenValidations() const
OidcConfigOutput & WithIssuerUrl(IssuerUrlT &&value)
RefreshTokenStrategy GetRefreshTokenStrategy() const
const Aws::Map< Aws::String, Aws::String > & GetAuthorizeRequestParams() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue