/** * 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 UpdateGraphqlApiRequest : public AppSyncRequest { public: AWS_APPSYNC_API UpdateGraphqlApiRequest(); // 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 "UpdateGraphqlApi"; } AWS_APPSYNC_API Aws::String SerializePayload() const override; /** *

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 UpdateGraphqlApiRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;} /** *

The API ID.

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

The API ID.

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

The new name for the GraphqlApi object.

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

The new name for the GraphqlApi object.

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

The new name for the GraphqlApi object.

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

The new name for the GraphqlApi object.

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

The new name for the GraphqlApi object.

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

The new name for the GraphqlApi object.

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

The new name for the GraphqlApi object.

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

The new name for the GraphqlApi object.

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

The Amazon CloudWatch Logs configuration for the GraphqlApi * object.

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

The Amazon CloudWatch Logs configuration for the GraphqlApi * object.

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

The Amazon CloudWatch Logs configuration for the GraphqlApi * object.

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

The Amazon CloudWatch Logs configuration for the GraphqlApi * object.

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

The Amazon CloudWatch Logs configuration for the GraphqlApi * object.

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

The Amazon CloudWatch Logs configuration for the GraphqlApi * object.

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

The new authentication type for the GraphqlApi object.

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

The new authentication type for the GraphqlApi object.

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

The new authentication type for the GraphqlApi object.

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

The new authentication type for the GraphqlApi object.

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

The new authentication type for the GraphqlApi object.

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

The new authentication type for the GraphqlApi object.

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

The new Amazon Cognito user pool configuration for the * ~GraphqlApi object.

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

The new Amazon Cognito user pool configuration for the * ~GraphqlApi object.

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

The new Amazon Cognito user pool configuration for the * ~GraphqlApi object.

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

The new Amazon Cognito user pool configuration for the * ~GraphqlApi object.

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

The new Amazon Cognito user pool configuration for the * ~GraphqlApi object.

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

The new Amazon Cognito user pool configuration for the * ~GraphqlApi object.

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

The OpenID Connect configuration for the GraphqlApi object.

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

The OpenID Connect configuration for the GraphqlApi object.

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

The OpenID Connect configuration for the GraphqlApi object.

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

The OpenID Connect configuration for the GraphqlApi object.

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

The OpenID Connect configuration for the GraphqlApi object.

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

The OpenID Connect configuration for the GraphqlApi object.

*/ inline UpdateGraphqlApiRequest& WithOpenIDConnectConfig(OpenIDConnectConfig&& value) { SetOpenIDConnectConfig(std::move(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 UpdateGraphqlApiRequest& WithAdditionalAuthenticationProviders(const Aws::Vector& value) { SetAdditionalAuthenticationProviders(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

*/ inline UpdateGraphqlApiRequest& WithXrayEnabled(bool value) { SetXrayEnabled(value); return *this;} /** *

Configuration for Lambda function authorization.

*/ inline const LambdaAuthorizerConfig& GetLambdaAuthorizerConfig() const{ return m_lambdaAuthorizerConfig; } /** *

Configuration for Lambda function authorization.

*/ inline bool LambdaAuthorizerConfigHasBeenSet() const { return m_lambdaAuthorizerConfigHasBeenSet; } /** *

Configuration for Lambda function authorization.

*/ inline void SetLambdaAuthorizerConfig(const LambdaAuthorizerConfig& value) { m_lambdaAuthorizerConfigHasBeenSet = true; m_lambdaAuthorizerConfig = value; } /** *

Configuration for Lambda function authorization.

*/ inline void SetLambdaAuthorizerConfig(LambdaAuthorizerConfig&& value) { m_lambdaAuthorizerConfigHasBeenSet = true; m_lambdaAuthorizerConfig = std::move(value); } /** *

Configuration for Lambda function authorization.

*/ inline UpdateGraphqlApiRequest& WithLambdaAuthorizerConfig(const LambdaAuthorizerConfig& value) { SetLambdaAuthorizerConfig(value); return *this;} /** *

Configuration for Lambda function authorization.

*/ inline UpdateGraphqlApiRequest& WithLambdaAuthorizerConfig(LambdaAuthorizerConfig&& value) { SetLambdaAuthorizerConfig(std::move(value)); return *this;} /** *

The Identity and Access Management service role ARN for a merged API. The * AppSync service assumes this role on behalf of the Merged API to validate access * to source APIs at runtime and to prompt the AUTO_MERGE to update * the merged API endpoint with the source API changes automatically.

*/ inline const Aws::String& GetMergedApiExecutionRoleArn() const{ return m_mergedApiExecutionRoleArn; } /** *

The Identity and Access Management service role ARN for a merged API. The * AppSync service assumes this role on behalf of the Merged API to validate access * to source APIs at runtime and to prompt the AUTO_MERGE to update * the merged API endpoint with the source API changes automatically.

*/ inline bool MergedApiExecutionRoleArnHasBeenSet() const { return m_mergedApiExecutionRoleArnHasBeenSet; } /** *

The Identity and Access Management service role ARN for a merged API. The * AppSync service assumes this role on behalf of the Merged API to validate access * to source APIs at runtime and to prompt the AUTO_MERGE to update * the merged API endpoint with the source API changes automatically.

*/ inline void SetMergedApiExecutionRoleArn(const Aws::String& value) { m_mergedApiExecutionRoleArnHasBeenSet = true; m_mergedApiExecutionRoleArn = value; } /** *

The Identity and Access Management service role ARN for a merged API. The * AppSync service assumes this role on behalf of the Merged API to validate access * to source APIs at runtime and to prompt the AUTO_MERGE to update * the merged API endpoint with the source API changes automatically.

*/ inline void SetMergedApiExecutionRoleArn(Aws::String&& value) { m_mergedApiExecutionRoleArnHasBeenSet = true; m_mergedApiExecutionRoleArn = std::move(value); } /** *

The Identity and Access Management service role ARN for a merged API. The * AppSync service assumes this role on behalf of the Merged API to validate access * to source APIs at runtime and to prompt the AUTO_MERGE to update * the merged API endpoint with the source API changes automatically.

*/ inline void SetMergedApiExecutionRoleArn(const char* value) { m_mergedApiExecutionRoleArnHasBeenSet = true; m_mergedApiExecutionRoleArn.assign(value); } /** *

The Identity and Access Management service role ARN for a merged API. The * AppSync service assumes this role on behalf of the Merged API to validate access * to source APIs at runtime and to prompt the AUTO_MERGE to update * the merged API endpoint with the source API changes automatically.

*/ inline UpdateGraphqlApiRequest& WithMergedApiExecutionRoleArn(const Aws::String& value) { SetMergedApiExecutionRoleArn(value); return *this;} /** *

The Identity and Access Management service role ARN for a merged API. The * AppSync service assumes this role on behalf of the Merged API to validate access * to source APIs at runtime and to prompt the AUTO_MERGE to update * the merged API endpoint with the source API changes automatically.

*/ inline UpdateGraphqlApiRequest& WithMergedApiExecutionRoleArn(Aws::String&& value) { SetMergedApiExecutionRoleArn(std::move(value)); return *this;} /** *

The Identity and Access Management service role ARN for a merged API. The * AppSync service assumes this role on behalf of the Merged API to validate access * to source APIs at runtime and to prompt the AUTO_MERGE to update * the merged API endpoint with the source API changes automatically.

*/ inline UpdateGraphqlApiRequest& WithMergedApiExecutionRoleArn(const char* value) { SetMergedApiExecutionRoleArn(value); return *this;} /** *

The owner contact information for an API resource.

This field accepts * any string input with a length of 0 - 256 characters.

*/ inline const Aws::String& GetOwnerContact() const{ return m_ownerContact; } /** *

The owner contact information for an API resource.

This field accepts * any string input with a length of 0 - 256 characters.

*/ inline bool OwnerContactHasBeenSet() const { return m_ownerContactHasBeenSet; } /** *

The owner contact information for an API resource.

This field accepts * any string input with a length of 0 - 256 characters.

*/ inline void SetOwnerContact(const Aws::String& value) { m_ownerContactHasBeenSet = true; m_ownerContact = value; } /** *

The owner contact information for an API resource.

This field accepts * any string input with a length of 0 - 256 characters.

*/ inline void SetOwnerContact(Aws::String&& value) { m_ownerContactHasBeenSet = true; m_ownerContact = std::move(value); } /** *

The owner contact information for an API resource.

This field accepts * any string input with a length of 0 - 256 characters.

*/ inline void SetOwnerContact(const char* value) { m_ownerContactHasBeenSet = true; m_ownerContact.assign(value); } /** *

The owner contact information for an API resource.

This field accepts * any string input with a length of 0 - 256 characters.

*/ inline UpdateGraphqlApiRequest& WithOwnerContact(const Aws::String& value) { SetOwnerContact(value); return *this;} /** *

The owner contact information for an API resource.

This field accepts * any string input with a length of 0 - 256 characters.

*/ inline UpdateGraphqlApiRequest& WithOwnerContact(Aws::String&& value) { SetOwnerContact(std::move(value)); return *this;} /** *

The owner contact information for an API resource.

This field accepts * any string input with a length of 0 - 256 characters.

*/ inline UpdateGraphqlApiRequest& WithOwnerContact(const char* value) { SetOwnerContact(value); return *this;} private: Aws::String m_apiId; bool m_apiIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; LogConfig m_logConfig; bool m_logConfigHasBeenSet = false; AuthenticationType m_authenticationType; bool m_authenticationTypeHasBeenSet = false; UserPoolConfig m_userPoolConfig; bool m_userPoolConfigHasBeenSet = false; OpenIDConnectConfig m_openIDConnectConfig; bool m_openIDConnectConfigHasBeenSet = false; Aws::Vector m_additionalAuthenticationProviders; bool m_additionalAuthenticationProvidersHasBeenSet = false; bool m_xrayEnabled; bool m_xrayEnabledHasBeenSet = false; LambdaAuthorizerConfig m_lambdaAuthorizerConfig; bool m_lambdaAuthorizerConfigHasBeenSet = false; Aws::String m_mergedApiExecutionRoleArn; bool m_mergedApiExecutionRoleArnHasBeenSet = false; Aws::String m_ownerContact; bool m_ownerContactHasBeenSet = false; }; } // namespace Model } // namespace AppSync } // namespace Aws