Interface EvaluateCodeRequest.Builder

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

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

    • runtime

      The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS runtime is supported.

      Parameters:
      runtime - The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS runtime is supported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • runtime

      The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS runtime is supported.

      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 code definition to be evaluated. Note that code and runtime are both required for this action. The runtime value must be APPSYNC_JS.

      Parameters:
      code - The code definition to be evaluated. Note that code and runtime are both required for this action. The runtime value must be APPSYNC_JS.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • context

      The map that holds all of the contextual information for your resolver invocation. A context is required for this action.

      Parameters:
      context - The map that holds all of the contextual information for your resolver invocation. A context is required for this action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • function

      EvaluateCodeRequest.Builder function(String function)

      The function within the code to be evaluated. If provided, the valid values are request and response.

      Parameters:
      function - The function within the code to be evaluated. If provided, the valid values are request and response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

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