AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIssuer(const Aws::String& value) { m_issuerHasBeenSet = true; m_issuer = value; }
50 inline void SetIssuer(Aws::String&& value) { m_issuerHasBeenSet = true; m_issuer = std::move(value); }
51 inline void SetIssuer(const char* value) { m_issuerHasBeenSet = true; m_issuer.assign(value); }
52 inline OidcOptions& WithIssuer(const Aws::String& value) { SetIssuer(value); return *this;}
53 inline OidcOptions& WithIssuer(Aws::String&& value) { SetIssuer(std::move(value)); return *this;}
54 inline OidcOptions& WithIssuer(const char* value) { SetIssuer(value); return *this;}
56
58
61 inline const Aws::String& GetAuthorizationEndpoint() const{ return m_authorizationEndpoint; }
62 inline bool AuthorizationEndpointHasBeenSet() const { return m_authorizationEndpointHasBeenSet; }
63 inline void SetAuthorizationEndpoint(const Aws::String& value) { m_authorizationEndpointHasBeenSet = true; m_authorizationEndpoint = value; }
64 inline void SetAuthorizationEndpoint(Aws::String&& value) { m_authorizationEndpointHasBeenSet = true; m_authorizationEndpoint = std::move(value); }
65 inline void SetAuthorizationEndpoint(const char* value) { m_authorizationEndpointHasBeenSet = true; m_authorizationEndpoint.assign(value); }
66 inline OidcOptions& WithAuthorizationEndpoint(const Aws::String& value) { SetAuthorizationEndpoint(value); return *this;}
67 inline OidcOptions& WithAuthorizationEndpoint(Aws::String&& value) { SetAuthorizationEndpoint(std::move(value)); return *this;}
68 inline OidcOptions& WithAuthorizationEndpoint(const char* value) { SetAuthorizationEndpoint(value); return *this;}
70
72
75 inline const Aws::String& GetTokenEndpoint() const{ return m_tokenEndpoint; }
76 inline bool TokenEndpointHasBeenSet() const { return m_tokenEndpointHasBeenSet; }
77 inline void SetTokenEndpoint(const Aws::String& value) { m_tokenEndpointHasBeenSet = true; m_tokenEndpoint = value; }
78 inline void SetTokenEndpoint(Aws::String&& value) { m_tokenEndpointHasBeenSet = true; m_tokenEndpoint = std::move(value); }
79 inline void SetTokenEndpoint(const char* value) { m_tokenEndpointHasBeenSet = true; m_tokenEndpoint.assign(value); }
80 inline OidcOptions& WithTokenEndpoint(const Aws::String& value) { SetTokenEndpoint(value); return *this;}
81 inline OidcOptions& WithTokenEndpoint(Aws::String&& value) { SetTokenEndpoint(std::move(value)); return *this;}
82 inline OidcOptions& WithTokenEndpoint(const char* value) { SetTokenEndpoint(value); return *this;}
84
86
89 inline const Aws::String& GetUserInfoEndpoint() const{ return m_userInfoEndpoint; }
90 inline bool UserInfoEndpointHasBeenSet() const { return m_userInfoEndpointHasBeenSet; }
91 inline void SetUserInfoEndpoint(const Aws::String& value) { m_userInfoEndpointHasBeenSet = true; m_userInfoEndpoint = value; }
92 inline void SetUserInfoEndpoint(Aws::String&& value) { m_userInfoEndpointHasBeenSet = true; m_userInfoEndpoint = std::move(value); }
93 inline void SetUserInfoEndpoint(const char* value) { m_userInfoEndpointHasBeenSet = true; m_userInfoEndpoint.assign(value); }
94 inline OidcOptions& WithUserInfoEndpoint(const Aws::String& value) { SetUserInfoEndpoint(value); return *this;}
95 inline OidcOptions& WithUserInfoEndpoint(Aws::String&& value) { SetUserInfoEndpoint(std::move(value)); return *this;}
96 inline OidcOptions& WithUserInfoEndpoint(const char* value) { SetUserInfoEndpoint(value); return *this;}
98
100
103 inline const Aws::String& GetClientId() const{ return m_clientId; }
104 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
105 inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
106 inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
107 inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
108 inline OidcOptions& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
109 inline OidcOptions& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
110 inline OidcOptions& WithClientId(const char* value) { SetClientId(value); return *this;}
112
114
117 inline const Aws::String& GetClientSecret() const{ return m_clientSecret; }
118 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
119 inline void SetClientSecret(const Aws::String& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; }
120 inline void SetClientSecret(Aws::String&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::move(value); }
121 inline void SetClientSecret(const char* value) { m_clientSecretHasBeenSet = true; m_clientSecret.assign(value); }
122 inline OidcOptions& WithClientSecret(const Aws::String& value) { SetClientSecret(value); return *this;}
123 inline OidcOptions& WithClientSecret(Aws::String&& value) { SetClientSecret(std::move(value)); return *this;}
124 inline OidcOptions& WithClientSecret(const char* value) { SetClientSecret(value); return *this;}
126
128
131 inline const Aws::String& GetScope() const{ return m_scope; }
132 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
133 inline void SetScope(const Aws::String& value) { m_scopeHasBeenSet = true; m_scope = value; }
134 inline void SetScope(Aws::String&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
135 inline void SetScope(const char* value) { m_scopeHasBeenSet = true; m_scope.assign(value); }
136 inline OidcOptions& WithScope(const Aws::String& value) { SetScope(value); return *this;}
137 inline OidcOptions& WithScope(Aws::String&& value) { SetScope(std::move(value)); return *this;}
138 inline OidcOptions& WithScope(const char* value) { SetScope(value); return *this;}
140 private:
141
142 Aws::String m_issuer;
143 bool m_issuerHasBeenSet = false;
144
145 Aws::String m_authorizationEndpoint;
146 bool m_authorizationEndpointHasBeenSet = false;
147
148 Aws::String m_tokenEndpoint;
149 bool m_tokenEndpointHasBeenSet = false;
150
151 Aws::String m_userInfoEndpoint;
152 bool m_userInfoEndpointHasBeenSet = false;
153
154 Aws::String m_clientId;
155 bool m_clientIdHasBeenSet = false;
156
157 Aws::String m_clientSecret;
158 bool m_clientSecretHasBeenSet = false;
159
160 Aws::String m_scope;
161 bool m_scopeHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace EC2
166} // namespace Aws
void SetIssuer(const char *value)
Definition OidcOptions.h:51
OidcOptions & WithIssuer(const char *value)
Definition OidcOptions.h:54
OidcOptions & WithScope(const Aws::String &value)
AWS_EC2_API OidcOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTokenEndpoint(Aws::String &&value)
Definition OidcOptions.h:78
bool ClientSecretHasBeenSet() const
OidcOptions & WithUserInfoEndpoint(Aws::String &&value)
Definition OidcOptions.h:95
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAuthorizationEndpoint(Aws::String &&value)
Definition OidcOptions.h:64
OidcOptions & WithUserInfoEndpoint(const char *value)
Definition OidcOptions.h:96
OidcOptions & WithClientId(const char *value)
void SetClientSecret(const char *value)
OidcOptions & WithClientSecret(const Aws::String &value)
bool AuthorizationEndpointHasBeenSet() const
Definition OidcOptions.h:62
void SetTokenEndpoint(const Aws::String &value)
Definition OidcOptions.h:77
void SetClientSecret(const Aws::String &value)
void SetUserInfoEndpoint(Aws::String &&value)
Definition OidcOptions.h:92
OidcOptions & WithScope(const char *value)
void SetScope(const char *value)
void SetScope(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetScope() const
void SetClientId(const Aws::String &value)
OidcOptions & WithAuthorizationEndpoint(const Aws::String &value)
Definition OidcOptions.h:66
void SetUserInfoEndpoint(const Aws::String &value)
Definition OidcOptions.h:91
void SetTokenEndpoint(const char *value)
Definition OidcOptions.h:79
bool TokenEndpointHasBeenSet() const
Definition OidcOptions.h:76
OidcOptions & WithTokenEndpoint(Aws::String &&value)
Definition OidcOptions.h:81
void SetClientSecret(Aws::String &&value)
void SetIssuer(const Aws::String &value)
Definition OidcOptions.h:49
OidcOptions & WithAuthorizationEndpoint(const char *value)
Definition OidcOptions.h:68
OidcOptions & WithTokenEndpoint(const Aws::String &value)
Definition OidcOptions.h:80
bool UserInfoEndpointHasBeenSet() const
Definition OidcOptions.h:90
void SetClientId(Aws::String &&value)
OidcOptions & WithIssuer(Aws::String &&value)
Definition OidcOptions.h:53
void SetClientId(const char *value)
OidcOptions & WithClientId(Aws::String &&value)
OidcOptions & WithTokenEndpoint(const char *value)
Definition OidcOptions.h:82
OidcOptions & WithClientId(const Aws::String &value)
void SetScope(const Aws::String &value)
void SetIssuer(Aws::String &&value)
Definition OidcOptions.h:50
OidcOptions & WithAuthorizationEndpoint(Aws::String &&value)
Definition OidcOptions.h:67
AWS_EC2_API OidcOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetClientSecret() const
void SetAuthorizationEndpoint(const char *value)
Definition OidcOptions.h:65
const Aws::String & GetAuthorizationEndpoint() const
Definition OidcOptions.h:61
OidcOptions & WithIssuer(const Aws::String &value)
Definition OidcOptions.h:52
OidcOptions & WithClientSecret(const char *value)
const Aws::String & GetIssuer() const
Definition OidcOptions.h:47
const Aws::String & GetTokenEndpoint() const
Definition OidcOptions.h:75
OidcOptions & WithClientSecret(Aws::String &&value)
void SetAuthorizationEndpoint(const Aws::String &value)
Definition OidcOptions.h:63
const Aws::String & GetClientId() const
OidcOptions & WithUserInfoEndpoint(const Aws::String &value)
Definition OidcOptions.h:94
OidcOptions & WithScope(Aws::String &&value)
void SetUserInfoEndpoint(const char *value)
Definition OidcOptions.h:93
const Aws::String & GetUserInfoEndpoint() const
Definition OidcOptions.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream