AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OidcOptions.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_EC2_API OidcOptions() = default;
36 AWS_EC2_API OidcOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_EC2_API OidcOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetIssuer() const { return m_issuer; }
48 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
49 template<typename IssuerT = Aws::String>
50 void SetIssuer(IssuerT&& value) { m_issuerHasBeenSet = true; m_issuer = std::forward<IssuerT>(value); }
51 template<typename IssuerT = Aws::String>
52 OidcOptions& WithIssuer(IssuerT&& value) { SetIssuer(std::forward<IssuerT>(value)); return *this;}
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) { m_authorizationEndpointHasBeenSet = true; m_authorizationEndpoint = std::forward<AuthorizationEndpointT>(value); }
63 template<typename AuthorizationEndpointT = Aws::String>
64 OidcOptions& WithAuthorizationEndpoint(AuthorizationEndpointT&& value) { SetAuthorizationEndpoint(std::forward<AuthorizationEndpointT>(value)); return *this;}
66
68
71 inline const Aws::String& GetTokenEndpoint() const { return m_tokenEndpoint; }
72 inline bool TokenEndpointHasBeenSet() const { return m_tokenEndpointHasBeenSet; }
73 template<typename TokenEndpointT = Aws::String>
74 void SetTokenEndpoint(TokenEndpointT&& value) { m_tokenEndpointHasBeenSet = true; m_tokenEndpoint = std::forward<TokenEndpointT>(value); }
75 template<typename TokenEndpointT = Aws::String>
76 OidcOptions& WithTokenEndpoint(TokenEndpointT&& value) { SetTokenEndpoint(std::forward<TokenEndpointT>(value)); return *this;}
78
80
83 inline const Aws::String& GetUserInfoEndpoint() const { return m_userInfoEndpoint; }
84 inline bool UserInfoEndpointHasBeenSet() const { return m_userInfoEndpointHasBeenSet; }
85 template<typename UserInfoEndpointT = Aws::String>
86 void SetUserInfoEndpoint(UserInfoEndpointT&& value) { m_userInfoEndpointHasBeenSet = true; m_userInfoEndpoint = std::forward<UserInfoEndpointT>(value); }
87 template<typename UserInfoEndpointT = Aws::String>
88 OidcOptions& WithUserInfoEndpoint(UserInfoEndpointT&& value) { SetUserInfoEndpoint(std::forward<UserInfoEndpointT>(value)); return *this;}
90
92
95 inline const Aws::String& GetClientId() const { return m_clientId; }
96 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
97 template<typename ClientIdT = Aws::String>
98 void SetClientId(ClientIdT&& value) { m_clientIdHasBeenSet = true; m_clientId = std::forward<ClientIdT>(value); }
99 template<typename ClientIdT = Aws::String>
100 OidcOptions& WithClientId(ClientIdT&& value) { SetClientId(std::forward<ClientIdT>(value)); return *this;}
102
104
107 inline const Aws::String& GetClientSecret() const { return m_clientSecret; }
108 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
109 template<typename ClientSecretT = Aws::String>
110 void SetClientSecret(ClientSecretT&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::forward<ClientSecretT>(value); }
111 template<typename ClientSecretT = Aws::String>
112 OidcOptions& WithClientSecret(ClientSecretT&& value) { SetClientSecret(std::forward<ClientSecretT>(value)); return *this;}
114
116
119 inline const Aws::String& GetScope() const { return m_scope; }
120 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
121 template<typename ScopeT = Aws::String>
122 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
123 template<typename ScopeT = Aws::String>
124 OidcOptions& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
126 private:
127
128 Aws::String m_issuer;
129 bool m_issuerHasBeenSet = false;
130
131 Aws::String m_authorizationEndpoint;
132 bool m_authorizationEndpointHasBeenSet = false;
133
134 Aws::String m_tokenEndpoint;
135 bool m_tokenEndpointHasBeenSet = false;
136
137 Aws::String m_userInfoEndpoint;
138 bool m_userInfoEndpointHasBeenSet = false;
139
140 Aws::String m_clientId;
141 bool m_clientIdHasBeenSet = false;
142
143 Aws::String m_clientSecret;
144 bool m_clientSecretHasBeenSet = false;
145
146 Aws::String m_scope;
147 bool m_scopeHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace EC2
152} // 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)
Definition OidcOptions.h:88
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:72
void SetClientId(ClientIdT &&value)
Definition OidcOptions.h:98
bool UserInfoEndpointHasBeenSet() const
Definition OidcOptions.h:84
OidcOptions & WithTokenEndpoint(TokenEndpointT &&value)
Definition OidcOptions.h:76
OidcOptions & WithAuthorizationEndpoint(AuthorizationEndpointT &&value)
Definition OidcOptions.h:64
OidcOptions & WithIssuer(IssuerT &&value)
Definition OidcOptions.h:52
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:86
void SetClientSecret(ClientSecretT &&value)
const Aws::String & GetAuthorizationEndpoint() const
Definition OidcOptions.h:59
const Aws::String & GetIssuer() const
Definition OidcOptions.h:47
const Aws::String & GetTokenEndpoint() const
Definition OidcOptions.h:71
void SetTokenEndpoint(TokenEndpointT &&value)
Definition OidcOptions.h:74
void SetScope(ScopeT &&value)
void SetIssuer(IssuerT &&value)
Definition OidcOptions.h:50
const Aws::String & GetClientId() const
Definition OidcOptions.h:95
const Aws::String & GetUserInfoEndpoint() const
Definition OidcOptions.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream