/** * 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 SecurityHub { namespace Model { /** *

Specifies the authorization configuration for using an OpenID Connect * compliant service with your AppSync GraphQL API endpoint.

See * Also:

AWS * API Reference

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

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

*/ inline long long GetAuthTtL() const{ return m_authTtL; } /** *

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

*/ inline bool AuthTtLHasBeenSet() const { return m_authTtLHasBeenSet; } /** *

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

*/ inline void SetAuthTtL(long long value) { m_authTtLHasBeenSet = true; m_authTtL = value; } /** *

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

*/ inline AwsAppSyncGraphQlApiOpenIdConnectConfigDetails& WithAuthTtL(long long value) { SetAuthTtL(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 that * 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 that * 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 that * 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 that * 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 that * 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 that * AppSync can validate against multiple client identifiers at a time.

*/ inline AwsAppSyncGraphQlApiOpenIdConnectConfigDetails& 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 that * AppSync can validate against multiple client identifiers at a time.

*/ inline AwsAppSyncGraphQlApiOpenIdConnectConfigDetails& 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 that * AppSync can validate against multiple client identifiers at a time.

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

The number of milliseconds that a token is valid after it's issued to a * user.

*/ inline long long GetIatTtL() const{ return m_iatTtL; } /** *

The number of milliseconds that a token is valid after it's issued to a * user.

*/ inline bool IatTtLHasBeenSet() const { return m_iatTtLHasBeenSet; } /** *

The number of milliseconds that a token is valid after it's issued to a * user.

*/ inline void SetIatTtL(long long value) { m_iatTtLHasBeenSet = true; m_iatTtL = value; } /** *

The number of milliseconds that a token is valid after it's issued to a * user.

*/ inline AwsAppSyncGraphQlApiOpenIdConnectConfigDetails& WithIatTtL(long long value) { SetIatTtL(value); return *this;} /** *

The issuer for the OIDC 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 OIDC 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 OIDC 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 OIDC 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 OIDC 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 OIDC configuration. The issuer returned by discovery must * exactly match the value of iss in the ID token.

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

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

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

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

*/ inline AwsAppSyncGraphQlApiOpenIdConnectConfigDetails& WithIssuer(const char* value) { SetIssuer(value); return *this;} private: long long m_authTtL; bool m_authTtLHasBeenSet = false; Aws::String m_clientId; bool m_clientIdHasBeenSet = false; long long m_iatTtL; bool m_iatTtLHasBeenSet = false; Aws::String m_issuer; bool m_issuerHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws