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

Describes an OpenID Connect configuration.

See Also:

AWS * API Reference

*/ class AWS_APPSYNC_API OpenIDConnectConfig { public: OpenIDConnectConfig(); OpenIDConnectConfig(Aws::Utils::Json::JsonView jsonValue); OpenIDConnectConfig& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The issuer for the OpenID Connect configuration. The issuer returned by * discovery must exactly match the value of iss in the ID token.

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

The issuer for the OpenID Connect configuration. The issuer returned by * discovery must exactly match the value of iss in the ID token.

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

The issuer for the OpenID Connect configuration. The issuer returned by * discovery must exactly match the value of iss in the ID token.

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

The issuer for the OpenID Connect configuration. The issuer returned by * discovery must exactly match the value of iss in the ID token.

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

The issuer for the OpenID Connect configuration. The issuer returned by * discovery must exactly match the value of iss in the ID token.

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

The issuer for the OpenID Connect configuration. The issuer returned by * discovery must exactly match the value of iss in the ID token.

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

The issuer for the OpenID Connect configuration. The issuer returned by * discovery must exactly match the value of iss in the ID token.

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

The issuer for the OpenID Connect configuration. The issuer returned by * discovery must exactly match the value of iss in the ID token.

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

The client identifier of the Relying party at the OpenID identity provider. * This identifier is typically obtained when the Relying party is registered with * the OpenID identity provider. You can specify a regular expression so the AWS * AppSync can validate against multiple client identifiers at a time.

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

The client identifier of the Relying party at the OpenID identity provider. * This identifier is typically obtained when the Relying party is registered with * the OpenID identity provider. You can specify a regular expression so the AWS * AppSync can validate against multiple client identifiers at a time.

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

The client identifier of the Relying party at the OpenID identity provider. * This identifier is typically obtained when the Relying party is registered with * the OpenID identity provider. You can specify a regular expression so the AWS * AppSync can validate against multiple client identifiers at a time.

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

The client identifier of the Relying party at the OpenID identity provider. * This identifier is typically obtained when the Relying party is registered with * the OpenID identity provider. You can specify a regular expression so the AWS * AppSync can validate against multiple client identifiers at a time.

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

The client identifier of the Relying party at the OpenID identity provider. * This identifier is typically obtained when the Relying party is registered with * the OpenID identity provider. You can specify a regular expression so the AWS * AppSync can validate against multiple client identifiers at a time.

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

The client identifier of the Relying party at the OpenID identity provider. * This identifier is typically obtained when the Relying party is registered with * the OpenID identity provider. You can specify a regular expression so the AWS * AppSync can validate against multiple client identifiers at a time.

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

The client identifier of the Relying party at the OpenID identity provider. * This identifier is typically obtained when the Relying party is registered with * the OpenID identity provider. You can specify a regular expression so the AWS * AppSync can validate against multiple client identifiers at a time.

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

The client identifier of the Relying party at the OpenID identity provider. * This identifier is typically obtained when the Relying party is registered with * the OpenID identity provider. You can specify a regular expression so the AWS * AppSync can validate against multiple client identifiers at a time.

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

The number of milliseconds a token is valid after being issued to a user.

*/ inline long long GetIatTTL() const{ return m_iatTTL; } /** *

The number of milliseconds a token is valid after being issued to a user.

*/ inline bool IatTTLHasBeenSet() const { return m_iatTTLHasBeenSet; } /** *

The number of milliseconds a token is valid after being issued to a user.

*/ inline void SetIatTTL(long long value) { m_iatTTLHasBeenSet = true; m_iatTTL = value; } /** *

The number of milliseconds a token is valid after being issued to a user.

*/ inline OpenIDConnectConfig& WithIatTTL(long long value) { SetIatTTL(value); return *this;} /** *

The number of milliseconds a token is valid after being authenticated.

*/ inline long long GetAuthTTL() const{ return m_authTTL; } /** *

The number of milliseconds a token is valid after being authenticated.

*/ inline bool AuthTTLHasBeenSet() const { return m_authTTLHasBeenSet; } /** *

The number of milliseconds a token is valid after being authenticated.

*/ inline void SetAuthTTL(long long value) { m_authTTLHasBeenSet = true; m_authTTL = value; } /** *

The number of milliseconds a token is valid after being authenticated.

*/ inline OpenIDConnectConfig& WithAuthTTL(long long value) { SetAuthTTL(value); return *this;} private: Aws::String m_issuer; bool m_issuerHasBeenSet; Aws::String m_clientId; bool m_clientIdHasBeenSet; long long m_iatTTL; bool m_iatTTLHasBeenSet; long long m_authTTL; bool m_authTTLHasBeenSet; }; } // namespace Model } // namespace AppSync } // namespace Aws