AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
OidcOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API OidcOptions() = default;
31 AWS_EC2_API OidcOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_EC2_API OidcOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetIssuer() const { return m_issuer; }
42 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
43 template <typename IssuerT = Aws::String>
44 void SetIssuer(IssuerT&& value) {
45 m_issuerHasBeenSet = true;
46 m_issuer = std::forward<IssuerT>(value);
47 }
48 template <typename IssuerT = Aws::String>
49 OidcOptions& WithIssuer(IssuerT&& value) {
50 SetIssuer(std::forward<IssuerT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAuthorizationEndpoint() const { return m_authorizationEndpoint; }
60 inline bool AuthorizationEndpointHasBeenSet() const { return m_authorizationEndpointHasBeenSet; }
61 template <typename AuthorizationEndpointT = Aws::String>
62 void SetAuthorizationEndpoint(AuthorizationEndpointT&& value) {
63 m_authorizationEndpointHasBeenSet = true;
64 m_authorizationEndpoint = std::forward<AuthorizationEndpointT>(value);
65 }
66 template <typename AuthorizationEndpointT = Aws::String>
67 OidcOptions& WithAuthorizationEndpoint(AuthorizationEndpointT&& value) {
68 SetAuthorizationEndpoint(std::forward<AuthorizationEndpointT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetTokenEndpoint() const { return m_tokenEndpoint; }
78 inline bool TokenEndpointHasBeenSet() const { return m_tokenEndpointHasBeenSet; }
79 template <typename TokenEndpointT = Aws::String>
80 void SetTokenEndpoint(TokenEndpointT&& value) {
81 m_tokenEndpointHasBeenSet = true;
82 m_tokenEndpoint = std::forward<TokenEndpointT>(value);
83 }
84 template <typename TokenEndpointT = Aws::String>
85 OidcOptions& WithTokenEndpoint(TokenEndpointT&& value) {
86 SetTokenEndpoint(std::forward<TokenEndpointT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetUserInfoEndpoint() const { return m_userInfoEndpoint; }
96 inline bool UserInfoEndpointHasBeenSet() const { return m_userInfoEndpointHasBeenSet; }
97 template <typename UserInfoEndpointT = Aws::String>
98 void SetUserInfoEndpoint(UserInfoEndpointT&& value) {
99 m_userInfoEndpointHasBeenSet = true;
100 m_userInfoEndpoint = std::forward<UserInfoEndpointT>(value);
101 }
102 template <typename UserInfoEndpointT = Aws::String>
103 OidcOptions& WithUserInfoEndpoint(UserInfoEndpointT&& value) {
104 SetUserInfoEndpoint(std::forward<UserInfoEndpointT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetClientId() const { return m_clientId; }
114 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
115 template <typename ClientIdT = Aws::String>
116 void SetClientId(ClientIdT&& value) {
117 m_clientIdHasBeenSet = true;
118 m_clientId = std::forward<ClientIdT>(value);
119 }
120 template <typename ClientIdT = Aws::String>
121 OidcOptions& WithClientId(ClientIdT&& value) {
122 SetClientId(std::forward<ClientIdT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetClientSecret() const { return m_clientSecret; }
132 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
133 template <typename ClientSecretT = Aws::String>
134 void SetClientSecret(ClientSecretT&& value) {
135 m_clientSecretHasBeenSet = true;
136 m_clientSecret = std::forward<ClientSecretT>(value);
137 }
138 template <typename ClientSecretT = Aws::String>
139 OidcOptions& WithClientSecret(ClientSecretT&& value) {
140 SetClientSecret(std::forward<ClientSecretT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetScope() const { return m_scope; }
150 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
151 template <typename ScopeT = Aws::String>
152 void SetScope(ScopeT&& value) {
153 m_scopeHasBeenSet = true;
154 m_scope = std::forward<ScopeT>(value);
155 }
156 template <typename ScopeT = Aws::String>
157 OidcOptions& WithScope(ScopeT&& value) {
158 SetScope(std::forward<ScopeT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_issuer;
164
165 Aws::String m_authorizationEndpoint;
166
167 Aws::String m_tokenEndpoint;
168
169 Aws::String m_userInfoEndpoint;
170
171 Aws::String m_clientId;
172
173 Aws::String m_clientSecret;
174
175 Aws::String m_scope;
176 bool m_issuerHasBeenSet = false;
177 bool m_authorizationEndpointHasBeenSet = false;
178 bool m_tokenEndpointHasBeenSet = false;
179 bool m_userInfoEndpointHasBeenSet = false;
180 bool m_clientIdHasBeenSet = false;
181 bool m_clientSecretHasBeenSet = false;
182 bool m_scopeHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace EC2
187} // namespace Aws
OidcOptions & WithClientId(ClientIdT &&value)
AWS_EC2_API OidcOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ClientSecretHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
OidcOptions & WithUserInfoEndpoint(UserInfoEndpointT &&value)
bool AuthorizationEndpointHasBeenSet() const
Definition OidcOptions.h:60
void SetAuthorizationEndpoint(AuthorizationEndpointT &&value)
Definition OidcOptions.h:62
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetScope() const
AWS_EC2_API OidcOptions()=default
OidcOptions & WithClientSecret(ClientSecretT &&value)
bool TokenEndpointHasBeenSet() const
Definition OidcOptions.h:78
void SetClientId(ClientIdT &&value)
bool UserInfoEndpointHasBeenSet() const
Definition OidcOptions.h:96
OidcOptions & WithTokenEndpoint(TokenEndpointT &&value)
Definition OidcOptions.h:85
OidcOptions & WithAuthorizationEndpoint(AuthorizationEndpointT &&value)
Definition OidcOptions.h:67
OidcOptions & WithIssuer(IssuerT &&value)
Definition OidcOptions.h:49
OidcOptions & WithScope(ScopeT &&value)
AWS_EC2_API OidcOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetClientSecret() const
void SetUserInfoEndpoint(UserInfoEndpointT &&value)
Definition OidcOptions.h:98
void SetClientSecret(ClientSecretT &&value)
const Aws::String & GetAuthorizationEndpoint() const
Definition OidcOptions.h:59
const Aws::String & GetIssuer() const
Definition OidcOptions.h:41
const Aws::String & GetTokenEndpoint() const
Definition OidcOptions.h:77
void SetTokenEndpoint(TokenEndpointT &&value)
Definition OidcOptions.h:80
void SetScope(ScopeT &&value)
void SetIssuer(IssuerT &&value)
Definition OidcOptions.h:44
const Aws::String & GetClientId() const
const Aws::String & GetUserInfoEndpoint() const
Definition OidcOptions.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream