Interface UpdateResolverRequest.Builder

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

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

    • apiId

      The API ID.

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

      The new type name.

      Parameters:
      typeName - The new type name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fieldName

      UpdateResolverRequest.Builder fieldName(String fieldName)

      The new field name.

      Parameters:
      fieldName - The new field name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataSourceName

      UpdateResolverRequest.Builder dataSourceName(String dataSourceName)

      The new data source name.

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

      UpdateResolverRequest.Builder requestMappingTemplate(String requestMappingTemplate)

      The new request mapping template.

      A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).

      VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.

      Parameters:
      requestMappingTemplate - The new request mapping template.

      A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).

      VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.

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

      UpdateResolverRequest.Builder responseMappingTemplate(String responseMappingTemplate)

      The new response mapping template.

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

      The resolver type.

      • UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.

      • PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.

      Parameters:
      kind - The resolver type.

      • UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.

      • PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.

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

      The resolver type.

      • UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.

      • PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.

      Parameters:
      kind - The resolver type.

      • UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.

      • PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.

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

      UpdateResolverRequest.Builder pipelineConfig(PipelineConfig pipelineConfig)

      The PipelineConfig.

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

      default UpdateResolverRequest.Builder pipelineConfig(Consumer<PipelineConfig.Builder> pipelineConfig)

      The PipelineConfig.

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

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

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

      UpdateResolverRequest.Builder syncConfig(SyncConfig syncConfig)

      The SyncConfig for a resolver attached to a versioned data source.

      Parameters:
      syncConfig - The SyncConfig for a resolver attached to a versioned data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • syncConfig

      default UpdateResolverRequest.Builder syncConfig(Consumer<SyncConfig.Builder> syncConfig)

      The SyncConfig for a resolver attached to a versioned data source.

      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:
    • cachingConfig

      UpdateResolverRequest.Builder cachingConfig(CachingConfig cachingConfig)

      The caching configuration for the resolver.

      Parameters:
      cachingConfig - The caching configuration for the resolver.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cachingConfig

      default UpdateResolverRequest.Builder cachingConfig(Consumer<CachingConfig.Builder> cachingConfig)

      The caching configuration for the resolver.

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

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

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

      UpdateResolverRequest.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 resolver 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 resolver 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.
    • metricsConfig

      UpdateResolverRequest.Builder metricsConfig(String metricsConfig)

      Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

      metricsConfig can be ENABLED or DISABLED.

      Parameters:
      metricsConfig - Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

      metricsConfig can be ENABLED or DISABLED.

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

      Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

      metricsConfig can be ENABLED or DISABLED.

      Parameters:
      metricsConfig - Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

      metricsConfig can be ENABLED or DISABLED.

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

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