/** * 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 #include namespace Aws { namespace AppSync { namespace Model { /** */ class AWS_APPSYNC_API CreateGraphqlApiRequest : public AppSyncRequest { public: CreateGraphqlApiRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateGraphqlApi"; } Aws::String SerializePayload() const override; /** *

A user-supplied name for the GraphqlApi.

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

A user-supplied name for the GraphqlApi.

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

A user-supplied name for the GraphqlApi.

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

A user-supplied name for the GraphqlApi.

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

A user-supplied name for the GraphqlApi.

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

A user-supplied name for the GraphqlApi.

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

A user-supplied name for the GraphqlApi.

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

A user-supplied name for the GraphqlApi.

*/ inline CreateGraphqlApiRequest& WithName(const char* value) { SetName(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 CreateGraphqlApiRequest& WithLogConfig(const LogConfig& value) { SetLogConfig(value); return *this;} /** *

The Amazon CloudWatch Logs configuration.

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

The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user * pools.

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

The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user * pools.

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

The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user * pools.

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

The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user * pools.

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

The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user * pools.

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

The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user * pools.

*/ inline CreateGraphqlApiRequest& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(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 CreateGraphqlApiRequest& WithUserPoolConfig(const UserPoolConfig& value) { SetUserPoolConfig(value); return *this;} /** *

The Amazon Cognito user pool configuration.

*/ inline CreateGraphqlApiRequest& 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 CreateGraphqlApiRequest& WithOpenIDConnectConfig(const OpenIDConnectConfig& value) { SetOpenIDConnectConfig(value); return *this;} /** *

The OpenID Connect configuration.

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

A TagMap object.

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

A TagMap object.

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

A TagMap object.

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

A TagMap object.

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

A TagMap object.

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

A TagMap object.

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

A TagMap object.

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

A TagMap object.

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

A TagMap object.

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

A TagMap object.

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

A TagMap object.

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

A TagMap object.

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

A TagMap object.

*/ inline CreateGraphqlApiRequest& 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 CreateGraphqlApiRequest& WithAdditionalAuthenticationProviders(const Aws::Vector& value) { SetAdditionalAuthenticationProviders(value); return *this;} /** *

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

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

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

*/ inline CreateGraphqlApiRequest& 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 CreateGraphqlApiRequest& AddAdditionalAuthenticationProviders(AdditionalAuthenticationProvider&& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders.push_back(std::move(value)); return *this; } /** *

A flag indicating whether to enable X-Ray tracing for the * GraphqlApi.

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

A flag indicating whether to enable X-Ray tracing for the * GraphqlApi.

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

A flag indicating whether to enable X-Ray tracing for the * GraphqlApi.

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

A flag indicating whether to enable X-Ray tracing for the * GraphqlApi.

*/ inline CreateGraphqlApiRequest& WithXrayEnabled(bool value) { SetXrayEnabled(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; LogConfig m_logConfig; bool m_logConfigHasBeenSet; AuthenticationType m_authenticationType; bool m_authenticationTypeHasBeenSet; UserPoolConfig m_userPoolConfig; bool m_userPoolConfigHasBeenSet; OpenIDConnectConfig m_openIDConnectConfig; bool m_openIDConnectConfigHasBeenSet; 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