Interface CreateFunctionRequest.Builder

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

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

    • apiId

      The GraphQL API ID.

      Parameters:
      apiId - The GraphQL API ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The Function name. The function name does not have to be unique.

      Parameters:
      name - The Function name. The function name does not have to be unique.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      CreateFunctionRequest.Builder description(String description)

      The Function description.

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

      CreateFunctionRequest.Builder dataSourceName(String dataSourceName)

      The Function DataSource name.

      Parameters:
      dataSourceName - The Function DataSource name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requestMappingTemplate

      CreateFunctionRequest.Builder requestMappingTemplate(String requestMappingTemplate)

      The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

      Parameters:
      requestMappingTemplate - The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • responseMappingTemplate

      CreateFunctionRequest.Builder responseMappingTemplate(String responseMappingTemplate)

      The Function response mapping template.

      Parameters:
      responseMappingTemplate - The Function response mapping template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • functionVersion

      CreateFunctionRequest.Builder functionVersion(String functionVersion)

      The version of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, the functionVersion is required.

      Parameters:
      functionVersion - The version of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, the functionVersion is required.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • syncConfig

      CreateFunctionRequest.Builder syncConfig(SyncConfig syncConfig)
      Sets the value of the SyncConfig property for this object.
      Parameters:
      syncConfig - The new value for the SyncConfig property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • syncConfig

      default CreateFunctionRequest.Builder syncConfig(Consumer<SyncConfig.Builder> syncConfig)
      Sets the value of the SyncConfig property for this object. This is a convenience method that creates an instance of the SyncConfig.Builder avoiding the need to create one manually via SyncConfig.builder().

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

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

      CreateFunctionRequest.Builder maxBatchSize(Integer maxBatchSize)

      The maximum batching size for a resolver.

      Parameters:
      maxBatchSize - The maximum batching size for a resolver.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • runtime

      Sets the value of the Runtime property for this object.
      Parameters:
      runtime - The new value for the Runtime property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • runtime

      Sets the value of the Runtime property for this object. This is a convenience method that creates an instance of the AppSyncRuntime.Builder avoiding the need to create one manually via AppSyncRuntime.builder().

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

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

      The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

      Parameters:
      code - The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateFunctionRequest.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.