/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the options for an OpenID Connect-compatible user-identity trust * provider.

See Also:

AWS API * Reference

*/ class OidcOptions { public: AWS_EC2_API OidcOptions(); AWS_EC2_API OidcOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API OidcOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The OIDC issuer.

*/ inline const Aws::String& GetIssuer() const{ return m_issuer; } /** *

The OIDC issuer.

*/ inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; } /** *

The OIDC issuer.

*/ inline void SetIssuer(const Aws::String& value) { m_issuerHasBeenSet = true; m_issuer = value; } /** *

The OIDC issuer.

*/ inline void SetIssuer(Aws::String&& value) { m_issuerHasBeenSet = true; m_issuer = std::move(value); } /** *

The OIDC issuer.

*/ inline void SetIssuer(const char* value) { m_issuerHasBeenSet = true; m_issuer.assign(value); } /** *

The OIDC issuer.

*/ inline OidcOptions& WithIssuer(const Aws::String& value) { SetIssuer(value); return *this;} /** *

The OIDC issuer.

*/ inline OidcOptions& WithIssuer(Aws::String&& value) { SetIssuer(std::move(value)); return *this;} /** *

The OIDC issuer.

*/ inline OidcOptions& WithIssuer(const char* value) { SetIssuer(value); return *this;} /** *

The OIDC authorization endpoint.

*/ inline const Aws::String& GetAuthorizationEndpoint() const{ return m_authorizationEndpoint; } /** *

The OIDC authorization endpoint.

*/ inline bool AuthorizationEndpointHasBeenSet() const { return m_authorizationEndpointHasBeenSet; } /** *

The OIDC authorization endpoint.

*/ inline void SetAuthorizationEndpoint(const Aws::String& value) { m_authorizationEndpointHasBeenSet = true; m_authorizationEndpoint = value; } /** *

The OIDC authorization endpoint.

*/ inline void SetAuthorizationEndpoint(Aws::String&& value) { m_authorizationEndpointHasBeenSet = true; m_authorizationEndpoint = std::move(value); } /** *

The OIDC authorization endpoint.

*/ inline void SetAuthorizationEndpoint(const char* value) { m_authorizationEndpointHasBeenSet = true; m_authorizationEndpoint.assign(value); } /** *

The OIDC authorization endpoint.

*/ inline OidcOptions& WithAuthorizationEndpoint(const Aws::String& value) { SetAuthorizationEndpoint(value); return *this;} /** *

The OIDC authorization endpoint.

*/ inline OidcOptions& WithAuthorizationEndpoint(Aws::String&& value) { SetAuthorizationEndpoint(std::move(value)); return *this;} /** *

The OIDC authorization endpoint.

*/ inline OidcOptions& WithAuthorizationEndpoint(const char* value) { SetAuthorizationEndpoint(value); return *this;} /** *

The OIDC token endpoint.

*/ inline const Aws::String& GetTokenEndpoint() const{ return m_tokenEndpoint; } /** *

The OIDC token endpoint.

*/ inline bool TokenEndpointHasBeenSet() const { return m_tokenEndpointHasBeenSet; } /** *

The OIDC token endpoint.

*/ inline void SetTokenEndpoint(const Aws::String& value) { m_tokenEndpointHasBeenSet = true; m_tokenEndpoint = value; } /** *

The OIDC token endpoint.

*/ inline void SetTokenEndpoint(Aws::String&& value) { m_tokenEndpointHasBeenSet = true; m_tokenEndpoint = std::move(value); } /** *

The OIDC token endpoint.

*/ inline void SetTokenEndpoint(const char* value) { m_tokenEndpointHasBeenSet = true; m_tokenEndpoint.assign(value); } /** *

The OIDC token endpoint.

*/ inline OidcOptions& WithTokenEndpoint(const Aws::String& value) { SetTokenEndpoint(value); return *this;} /** *

The OIDC token endpoint.

*/ inline OidcOptions& WithTokenEndpoint(Aws::String&& value) { SetTokenEndpoint(std::move(value)); return *this;} /** *

The OIDC token endpoint.

*/ inline OidcOptions& WithTokenEndpoint(const char* value) { SetTokenEndpoint(value); return *this;} /** *

The OIDC user info endpoint.

*/ inline const Aws::String& GetUserInfoEndpoint() const{ return m_userInfoEndpoint; } /** *

The OIDC user info endpoint.

*/ inline bool UserInfoEndpointHasBeenSet() const { return m_userInfoEndpointHasBeenSet; } /** *

The OIDC user info endpoint.

*/ inline void SetUserInfoEndpoint(const Aws::String& value) { m_userInfoEndpointHasBeenSet = true; m_userInfoEndpoint = value; } /** *

The OIDC user info endpoint.

*/ inline void SetUserInfoEndpoint(Aws::String&& value) { m_userInfoEndpointHasBeenSet = true; m_userInfoEndpoint = std::move(value); } /** *

The OIDC user info endpoint.

*/ inline void SetUserInfoEndpoint(const char* value) { m_userInfoEndpointHasBeenSet = true; m_userInfoEndpoint.assign(value); } /** *

The OIDC user info endpoint.

*/ inline OidcOptions& WithUserInfoEndpoint(const Aws::String& value) { SetUserInfoEndpoint(value); return *this;} /** *

The OIDC user info endpoint.

*/ inline OidcOptions& WithUserInfoEndpoint(Aws::String&& value) { SetUserInfoEndpoint(std::move(value)); return *this;} /** *

The OIDC user info endpoint.

*/ inline OidcOptions& WithUserInfoEndpoint(const char* value) { SetUserInfoEndpoint(value); return *this;} /** *

The client identifier.

*/ inline const Aws::String& GetClientId() const{ return m_clientId; } /** *

The client identifier.

*/ inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; } /** *

The client identifier.

*/ inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; } /** *

The client identifier.

*/ inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); } /** *

The client identifier.

*/ inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); } /** *

The client identifier.

*/ inline OidcOptions& WithClientId(const Aws::String& value) { SetClientId(value); return *this;} /** *

The client identifier.

*/ inline OidcOptions& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;} /** *

The client identifier.

*/ inline OidcOptions& WithClientId(const char* value) { SetClientId(value); return *this;} /** *

The client secret.

*/ inline const Aws::String& GetClientSecret() const{ return m_clientSecret; } /** *

The client secret.

*/ inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; } /** *

The client secret.

*/ inline void SetClientSecret(const Aws::String& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; } /** *

The client secret.

*/ inline void SetClientSecret(Aws::String&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::move(value); } /** *

The client secret.

*/ inline void SetClientSecret(const char* value) { m_clientSecretHasBeenSet = true; m_clientSecret.assign(value); } /** *

The client secret.

*/ inline OidcOptions& WithClientSecret(const Aws::String& value) { SetClientSecret(value); return *this;} /** *

The client secret.

*/ inline OidcOptions& WithClientSecret(Aws::String&& value) { SetClientSecret(std::move(value)); return *this;} /** *

The client secret.

*/ inline OidcOptions& WithClientSecret(const char* value) { SetClientSecret(value); return *this;} /** *

The OpenID Connect (OIDC) scope specified.

*/ inline const Aws::String& GetScope() const{ return m_scope; } /** *

The OpenID Connect (OIDC) scope specified.

*/ inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; } /** *

The OpenID Connect (OIDC) scope specified.

*/ inline void SetScope(const Aws::String& value) { m_scopeHasBeenSet = true; m_scope = value; } /** *

The OpenID Connect (OIDC) scope specified.

*/ inline void SetScope(Aws::String&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); } /** *

The OpenID Connect (OIDC) scope specified.

*/ inline void SetScope(const char* value) { m_scopeHasBeenSet = true; m_scope.assign(value); } /** *

The OpenID Connect (OIDC) scope specified.

*/ inline OidcOptions& WithScope(const Aws::String& value) { SetScope(value); return *this;} /** *

The OpenID Connect (OIDC) scope specified.

*/ inline OidcOptions& WithScope(Aws::String&& value) { SetScope(std::move(value)); return *this;} /** *

The OpenID Connect (OIDC) scope specified.

*/ inline OidcOptions& WithScope(const char* value) { SetScope(value); return *this;} private: Aws::String m_issuer; bool m_issuerHasBeenSet = false; Aws::String m_authorizationEndpoint; bool m_authorizationEndpointHasBeenSet = false; Aws::String m_tokenEndpoint; bool m_tokenEndpointHasBeenSet = false; Aws::String m_userInfoEndpoint; bool m_userInfoEndpointHasBeenSet = false; Aws::String m_clientId; bool m_clientIdHasBeenSet = false; Aws::String m_clientSecret; bool m_clientSecretHasBeenSet = false; Aws::String m_scope; bool m_scopeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws