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

Describes a GraphQL API.

See Also:

AWS * API Reference

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

The API name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The API name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The API name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The API name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The API name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The API name.

*/ inline GraphqlApi& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The API name.

*/ inline GraphqlApi& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The API name.

*/ inline GraphqlApi& WithName(const char* value) { SetName(value); return *this;} /** *

The API ID.

*/ inline const Aws::String& GetApiId() const{ return m_apiId; } /** *

The API ID.

*/ inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; } /** *

The API ID.

*/ inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; } /** *

The API ID.

*/ inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); } /** *

The API ID.

*/ inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); } /** *

The API ID.

*/ inline GraphqlApi& WithApiId(const Aws::String& value) { SetApiId(value); return *this;} /** *

The API ID.

*/ inline GraphqlApi& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;} /** *

The API ID.

*/ inline GraphqlApi& WithApiId(const char* value) { SetApiId(value); return *this;} /** *

The authentication type.

*/ inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; } /** *

The authentication type.

*/ inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; } /** *

The authentication type.

*/ inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; } /** *

The authentication type.

*/ inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); } /** *

The authentication type.

*/ inline GraphqlApi& WithAuthenticationType(const AuthenticationType& value) { SetAuthenticationType(value); return *this;} /** *

The authentication type.

*/ inline GraphqlApi& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;} /** *

The Amazon CloudWatch Logs configuration.

*/ inline const LogConfig& GetLogConfig() const{ return m_logConfig; } /** *

The Amazon CloudWatch Logs configuration.

*/ inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; } /** *

The Amazon CloudWatch Logs configuration.

*/ inline void SetLogConfig(const LogConfig& value) { m_logConfigHasBeenSet = true; m_logConfig = value; } /** *

The Amazon CloudWatch Logs configuration.

*/ inline void SetLogConfig(LogConfig&& value) { m_logConfigHasBeenSet = true; m_logConfig = std::move(value); } /** *

The Amazon CloudWatch Logs configuration.

*/ inline GraphqlApi& WithLogConfig(const LogConfig& value) { SetLogConfig(value); return *this;} /** *

The Amazon CloudWatch Logs configuration.

*/ inline GraphqlApi& WithLogConfig(LogConfig&& value) { SetLogConfig(std::move(value)); return *this;} /** *

The Amazon Cognito user pool configuration.

*/ inline const UserPoolConfig& GetUserPoolConfig() const{ return m_userPoolConfig; } /** *

The Amazon Cognito user pool configuration.

*/ inline bool UserPoolConfigHasBeenSet() const { return m_userPoolConfigHasBeenSet; } /** *

The Amazon Cognito user pool configuration.

*/ inline void SetUserPoolConfig(const UserPoolConfig& value) { m_userPoolConfigHasBeenSet = true; m_userPoolConfig = value; } /** *

The Amazon Cognito user pool configuration.

*/ inline void SetUserPoolConfig(UserPoolConfig&& value) { m_userPoolConfigHasBeenSet = true; m_userPoolConfig = std::move(value); } /** *

The Amazon Cognito user pool configuration.

*/ inline GraphqlApi& WithUserPoolConfig(const UserPoolConfig& value) { SetUserPoolConfig(value); return *this;} /** *

The Amazon Cognito user pool configuration.

*/ inline GraphqlApi& WithUserPoolConfig(UserPoolConfig&& value) { SetUserPoolConfig(std::move(value)); return *this;} /** *

The OpenID Connect configuration.

*/ inline const OpenIDConnectConfig& GetOpenIDConnectConfig() const{ return m_openIDConnectConfig; } /** *

The OpenID Connect configuration.

*/ inline bool OpenIDConnectConfigHasBeenSet() const { return m_openIDConnectConfigHasBeenSet; } /** *

The OpenID Connect configuration.

*/ inline void SetOpenIDConnectConfig(const OpenIDConnectConfig& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = value; } /** *

The OpenID Connect configuration.

*/ inline void SetOpenIDConnectConfig(OpenIDConnectConfig&& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = std::move(value); } /** *

The OpenID Connect configuration.

*/ inline GraphqlApi& WithOpenIDConnectConfig(const OpenIDConnectConfig& value) { SetOpenIDConnectConfig(value); return *this;} /** *

The OpenID Connect configuration.

*/ inline GraphqlApi& WithOpenIDConnectConfig(OpenIDConnectConfig&& value) { SetOpenIDConnectConfig(std::move(value)); return *this;} /** *

The ARN.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN.

*/ inline GraphqlApi& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN.

*/ inline GraphqlApi& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN.

*/ inline GraphqlApi& WithArn(const char* value) { SetArn(value); return *this;} /** *

The URIs.

*/ inline const Aws::Map& GetUris() const{ return m_uris; } /** *

The URIs.

*/ inline bool UrisHasBeenSet() const { return m_urisHasBeenSet; } /** *

The URIs.

*/ inline void SetUris(const Aws::Map& value) { m_urisHasBeenSet = true; m_uris = value; } /** *

The URIs.

*/ inline void SetUris(Aws::Map&& value) { m_urisHasBeenSet = true; m_uris = std::move(value); } /** *

The URIs.

*/ inline GraphqlApi& WithUris(const Aws::Map& value) { SetUris(value); return *this;} /** *

The URIs.

*/ inline GraphqlApi& WithUris(Aws::Map&& value) { SetUris(std::move(value)); return *this;} /** *

The URIs.

*/ inline GraphqlApi& AddUris(const Aws::String& key, const Aws::String& value) { m_urisHasBeenSet = true; m_uris.emplace(key, value); return *this; } /** *

The URIs.

*/ inline GraphqlApi& AddUris(Aws::String&& key, const Aws::String& value) { m_urisHasBeenSet = true; m_uris.emplace(std::move(key), value); return *this; } /** *

The URIs.

*/ inline GraphqlApi& AddUris(const Aws::String& key, Aws::String&& value) { m_urisHasBeenSet = true; m_uris.emplace(key, std::move(value)); return *this; } /** *

The URIs.

*/ inline GraphqlApi& AddUris(Aws::String&& key, Aws::String&& value) { m_urisHasBeenSet = true; m_uris.emplace(std::move(key), std::move(value)); return *this; } /** *

The URIs.

*/ inline GraphqlApi& AddUris(const char* key, Aws::String&& value) { m_urisHasBeenSet = true; m_uris.emplace(key, std::move(value)); return *this; } /** *

The URIs.

*/ inline GraphqlApi& AddUris(Aws::String&& key, const char* value) { m_urisHasBeenSet = true; m_uris.emplace(std::move(key), value); return *this; } /** *

The URIs.

*/ inline GraphqlApi& AddUris(const char* key, const char* value) { m_urisHasBeenSet = true; m_uris.emplace(key, value); return *this; } /** *

The tags.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags.

*/ inline GraphqlApi& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags.

*/ inline GraphqlApi& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags.

*/ inline GraphqlApi& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags.

*/ inline GraphqlApi& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags.

*/ inline GraphqlApi& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags.

*/ inline GraphqlApi& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags.

*/ inline GraphqlApi& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags.

*/ inline GraphqlApi& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags.

*/ inline GraphqlApi& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A list of additional authentication providers for the GraphqlApi * API.

*/ inline const Aws::Vector& GetAdditionalAuthenticationProviders() const{ return m_additionalAuthenticationProviders; } /** *

A list of additional authentication providers for the GraphqlApi * API.

*/ inline bool AdditionalAuthenticationProvidersHasBeenSet() const { return m_additionalAuthenticationProvidersHasBeenSet; } /** *

A list of additional authentication providers for the GraphqlApi * API.

*/ inline void SetAdditionalAuthenticationProviders(const Aws::Vector& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders = value; } /** *

A list of additional authentication providers for the GraphqlApi * API.

*/ inline void SetAdditionalAuthenticationProviders(Aws::Vector&& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders = std::move(value); } /** *

A list of additional authentication providers for the GraphqlApi * API.

*/ inline GraphqlApi& WithAdditionalAuthenticationProviders(const Aws::Vector& value) { SetAdditionalAuthenticationProviders(value); return *this;} /** *

A list of additional authentication providers for the GraphqlApi * API.

*/ inline GraphqlApi& WithAdditionalAuthenticationProviders(Aws::Vector&& value) { SetAdditionalAuthenticationProviders(std::move(value)); return *this;} /** *

A list of additional authentication providers for the GraphqlApi * API.

*/ inline GraphqlApi& AddAdditionalAuthenticationProviders(const AdditionalAuthenticationProvider& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders.push_back(value); return *this; } /** *

A list of additional authentication providers for the GraphqlApi * API.

*/ inline GraphqlApi& AddAdditionalAuthenticationProviders(AdditionalAuthenticationProvider&& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders.push_back(std::move(value)); return *this; } /** *

A flag representing whether X-Ray tracing is enabled for this * GraphqlApi.

*/ inline bool GetXrayEnabled() const{ return m_xrayEnabled; } /** *

A flag representing whether X-Ray tracing is enabled for this * GraphqlApi.

*/ inline bool XrayEnabledHasBeenSet() const { return m_xrayEnabledHasBeenSet; } /** *

A flag representing whether X-Ray tracing is enabled for this * GraphqlApi.

*/ inline void SetXrayEnabled(bool value) { m_xrayEnabledHasBeenSet = true; m_xrayEnabled = value; } /** *

A flag representing whether X-Ray tracing is enabled for this * GraphqlApi.

*/ inline GraphqlApi& WithXrayEnabled(bool value) { SetXrayEnabled(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_apiId; bool m_apiIdHasBeenSet; AuthenticationType m_authenticationType; bool m_authenticationTypeHasBeenSet; LogConfig m_logConfig; bool m_logConfigHasBeenSet; UserPoolConfig m_userPoolConfig; bool m_userPoolConfigHasBeenSet; OpenIDConnectConfig m_openIDConnectConfig; bool m_openIDConnectConfigHasBeenSet; Aws::String m_arn; bool m_arnHasBeenSet; Aws::Map m_uris; bool m_urisHasBeenSet; Aws::Map m_tags; bool m_tagsHasBeenSet; Aws::Vector m_additionalAuthenticationProviders; bool m_additionalAuthenticationProvidersHasBeenSet; bool m_xrayEnabled; bool m_xrayEnabledHasBeenSet; }; } // namespace Model } // namespace AppSync } // namespace Aws