Interface FunctionConfiguration.Builder

    • Method Detail

      • functionId

        FunctionConfiguration.Builder functionId​(String functionId)

        A unique ID representing the Function object.

        Parameters:
        functionId - A unique ID representing the Function object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • functionArn

        FunctionConfiguration.Builder functionArn​(String functionArn)

        The Amazon Resource Name (ARN) of the Function object.

        Parameters:
        functionArn - The Amazon Resource Name (ARN) of the Function object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        FunctionConfiguration.Builder name​(String name)

        The name of the Function object.

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

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

        FunctionConfiguration.Builder dataSourceName​(String dataSourceName)

        The name of the DataSource.

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

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

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

        FunctionConfiguration.Builder functionVersion​(String functionVersion)

        The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.

        Parameters:
        functionVersion - The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • syncConfig

        FunctionConfiguration.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.
      • maxBatchSize

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

        FunctionConfiguration.Builder runtime​(AppSyncRuntime 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.
      • code

        FunctionConfiguration.Builder code​(String 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.