Interface CreateGraphqlApiRequest.Builder

All Superinterfaces:
AppSyncRequest.Builder, AwsRequest.Builder, Buildable, CopyableBuilder<CreateGraphqlApiRequest.Builder,CreateGraphqlApiRequest>, SdkBuilder<CreateGraphqlApiRequest.Builder,CreateGraphqlApiRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
CreateGraphqlApiRequest

public static interface CreateGraphqlApiRequest.Builder extends AppSyncRequest.Builder, SdkPojo, CopyableBuilder<CreateGraphqlApiRequest.Builder,CreateGraphqlApiRequest>
  • Method Details

    • name

      A user-supplied name for the GraphqlApi.

      Parameters:
      name - A user-supplied name for the GraphqlApi.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logConfig

      The Amazon CloudWatch Logs configuration.

      Parameters:
      logConfig - The Amazon CloudWatch Logs configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logConfig

      The Amazon CloudWatch Logs configuration.

      This is a convenience method that creates an instance of the LogConfig.Builder avoiding the need to create one manually via LogConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to logConfig(LogConfig).

      Parameters:
      logConfig - a consumer that will call methods on LogConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • authenticationType

      CreateGraphqlApiRequest.Builder authenticationType(String authenticationType)

      The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.

      Parameters:
      authenticationType - The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • authenticationType

      CreateGraphqlApiRequest.Builder authenticationType(AuthenticationType authenticationType)

      The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.

      Parameters:
      authenticationType - The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • userPoolConfig

      CreateGraphqlApiRequest.Builder userPoolConfig(UserPoolConfig userPoolConfig)

      The Amazon Cognito user pool configuration.

      Parameters:
      userPoolConfig - The Amazon Cognito user pool configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userPoolConfig

      default CreateGraphqlApiRequest.Builder userPoolConfig(Consumer<UserPoolConfig.Builder> userPoolConfig)

      The Amazon Cognito user pool configuration.

      This is a convenience method that creates an instance of the UserPoolConfig.Builder avoiding the need to create one manually via UserPoolConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to userPoolConfig(UserPoolConfig).

      Parameters:
      userPoolConfig - a consumer that will call methods on UserPoolConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • openIDConnectConfig

      CreateGraphqlApiRequest.Builder openIDConnectConfig(OpenIDConnectConfig openIDConnectConfig)

      The OIDC configuration.

      Parameters:
      openIDConnectConfig - The OIDC configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • openIDConnectConfig

      default CreateGraphqlApiRequest.Builder openIDConnectConfig(Consumer<OpenIDConnectConfig.Builder> openIDConnectConfig)

      The OIDC configuration.

      This is a convenience method that creates an instance of the OpenIDConnectConfig.Builder avoiding the need to create one manually via OpenIDConnectConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to openIDConnectConfig(OpenIDConnectConfig).

      Parameters:
      openIDConnectConfig - a consumer that will call methods on OpenIDConnectConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • tags

      A TagMap object.

      Parameters:
      tags - A TagMap object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalAuthenticationProviders

      CreateGraphqlApiRequest.Builder additionalAuthenticationProviders(Collection<AdditionalAuthenticationProvider> additionalAuthenticationProviders)

      A list of additional authentication providers for the GraphqlApi API.

      Parameters:
      additionalAuthenticationProviders - A list of additional authentication providers for the GraphqlApi API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalAuthenticationProviders

      CreateGraphqlApiRequest.Builder additionalAuthenticationProviders(AdditionalAuthenticationProvider... additionalAuthenticationProviders)

      A list of additional authentication providers for the GraphqlApi API.

      Parameters:
      additionalAuthenticationProviders - A list of additional authentication providers for the GraphqlApi API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalAuthenticationProviders

      CreateGraphqlApiRequest.Builder additionalAuthenticationProviders(Consumer<AdditionalAuthenticationProvider.Builder>... additionalAuthenticationProviders)

      A list of additional authentication providers for the GraphqlApi API.

      This is a convenience method that creates an instance of the AdditionalAuthenticationProvider.Builder avoiding the need to create one manually via AdditionalAuthenticationProvider.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to additionalAuthenticationProviders(List<AdditionalAuthenticationProvider>).

      Parameters:
      additionalAuthenticationProviders - a consumer that will call methods on AdditionalAuthenticationProvider.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • xrayEnabled

      CreateGraphqlApiRequest.Builder xrayEnabled(Boolean xrayEnabled)

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

      Parameters:
      xrayEnabled - A flag indicating whether to use X-Ray tracing for the GraphqlApi.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lambdaAuthorizerConfig

      CreateGraphqlApiRequest.Builder lambdaAuthorizerConfig(LambdaAuthorizerConfig lambdaAuthorizerConfig)

      Configuration for Lambda function authorization.

      Parameters:
      lambdaAuthorizerConfig - Configuration for Lambda function authorization.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lambdaAuthorizerConfig

      default CreateGraphqlApiRequest.Builder lambdaAuthorizerConfig(Consumer<LambdaAuthorizerConfig.Builder> lambdaAuthorizerConfig)

      Configuration for Lambda function authorization.

      This is a convenience method that creates an instance of the LambdaAuthorizerConfig.Builder avoiding the need to create one manually via LambdaAuthorizerConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to lambdaAuthorizerConfig(LambdaAuthorizerConfig).

      Parameters:
      lambdaAuthorizerConfig - a consumer that will call methods on LambdaAuthorizerConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • visibility

      CreateGraphqlApiRequest.Builder visibility(String visibility)

      Sets the value of the GraphQL API to public (GLOBAL) or private (PRIVATE). If no value is provided, the visibility will be set to GLOBAL by default. This value cannot be changed once the API has been created.

      Parameters:
      visibility - Sets the value of the GraphQL API to public (GLOBAL) or private (PRIVATE). If no value is provided, the visibility will be set to GLOBAL by default. This value cannot be changed once the API has been created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • visibility

      Sets the value of the GraphQL API to public (GLOBAL) or private (PRIVATE). If no value is provided, the visibility will be set to GLOBAL by default. This value cannot be changed once the API has been created.

      Parameters:
      visibility - Sets the value of the GraphQL API to public (GLOBAL) or private (PRIVATE). If no value is provided, the visibility will be set to GLOBAL by default. This value cannot be changed once the API has been created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • apiType

      The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API ( MERGED).

      Parameters:
      apiType - The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • apiType

      The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API ( MERGED).

      Parameters:
      apiType - The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • mergedApiExecutionRoleArn

      CreateGraphqlApiRequest.Builder mergedApiExecutionRoleArn(String 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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ownerContact

      CreateGraphqlApiRequest.Builder ownerContact(String ownerContact)

      The owner contact information for an API resource.

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

      Parameters:
      ownerContact - The owner contact information for an API resource.

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

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • introspectionConfig

      CreateGraphqlApiRequest.Builder introspectionConfig(String introspectionConfig)

      Sets the value of the GraphQL API to enable (ENABLED) or disable (DISABLED) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled.

      For more information about introspection, see GraphQL introspection.

      Parameters:
      introspectionConfig - Sets the value of the GraphQL API to enable (ENABLED) or disable (DISABLED) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled.

      For more information about introspection, see GraphQL introspection.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • introspectionConfig

      CreateGraphqlApiRequest.Builder introspectionConfig(GraphQLApiIntrospectionConfig introspectionConfig)

      Sets the value of the GraphQL API to enable (ENABLED) or disable (DISABLED) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled.

      For more information about introspection, see GraphQL introspection.

      Parameters:
      introspectionConfig - Sets the value of the GraphQL API to enable (ENABLED) or disable (DISABLED) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled.

      For more information about introspection, see GraphQL introspection.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • queryDepthLimit

      CreateGraphqlApiRequest.Builder queryDepthLimit(Integer queryDepthLimit)

      The maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is 0 (or unspecified), which indicates there's no depth limit. If you set a limit, it can be between 1 and 75 nested levels. This field will produce a limit error if the operation falls out of bounds.

      Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.

      Parameters:
      queryDepthLimit - The maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is 0 (or unspecified), which indicates there's no depth limit. If you set a limit, it can be between 1 and 75 nested levels. This field will produce a limit error if the operation falls out of bounds.

      Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resolverCountLimit

      CreateGraphqlApiRequest.Builder resolverCountLimit(Integer resolverCountLimit)

      The maximum number of resolvers that can be invoked in a single request. The default value is 0 (or unspecified), which will set the limit to 10000. When specified, the limit value can be between 1 and 10000. This field will produce a limit error if the operation falls out of bounds.

      Parameters:
      resolverCountLimit - The maximum number of resolvers that can be invoked in a single request. The default value is 0 (or unspecified), which will set the limit to 10000. When specified, the limit value can be between 1 and 10000. This field will produce a limit error if the operation falls out of bounds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enhancedMetricsConfig

      CreateGraphqlApiRequest.Builder enhancedMetricsConfig(EnhancedMetricsConfig enhancedMetricsConfig)

      The enhancedMetricsConfig object.

      Parameters:
      enhancedMetricsConfig - The enhancedMetricsConfig object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enhancedMetricsConfig

      default CreateGraphqlApiRequest.Builder enhancedMetricsConfig(Consumer<EnhancedMetricsConfig.Builder> enhancedMetricsConfig)

      The enhancedMetricsConfig object.

      This is a convenience method that creates an instance of the EnhancedMetricsConfig.Builder avoiding the need to create one manually via EnhancedMetricsConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to enhancedMetricsConfig(EnhancedMetricsConfig).

      Parameters:
      enhancedMetricsConfig - a consumer that will call methods on EnhancedMetricsConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      CreateGraphqlApiRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.