Interface TestStateResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<TestStateResponse.Builder,TestStateResponse>, SdkBuilder<TestStateResponse.Builder,TestStateResponse>, SdkPojo, SdkResponse.Builder, SfnResponse.Builder
Enclosing class:
TestStateResponse

public static interface TestStateResponse.Builder extends SfnResponse.Builder, SdkPojo, CopyableBuilder<TestStateResponse.Builder,TestStateResponse>
  • Method Details

    • output

      The JSON output data of the state. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.

      Parameters:
      output - The JSON output data of the state. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • error

      The error returned when the execution of a state fails.

      Parameters:
      error - The error returned when the execution of a state fails.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cause

      TestStateResponse.Builder cause(String causeValue)

      A detailed explanation of the cause for the error when the execution of a state fails.

      Parameters:
      causeValue - A detailed explanation of the cause for the error when the execution of a state fails.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inspectionData

      TestStateResponse.Builder inspectionData(InspectionData inspectionData)

      Returns additional details about the state's execution, including its input and output data processing flow, and HTTP request and response information. The inspectionLevel request parameter specifies which details are returned.

      Parameters:
      inspectionData - Returns additional details about the state's execution, including its input and output data processing flow, and HTTP request and response information. The inspectionLevel request parameter specifies which details are returned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inspectionData

      default TestStateResponse.Builder inspectionData(Consumer<InspectionData.Builder> inspectionData)

      Returns additional details about the state's execution, including its input and output data processing flow, and HTTP request and response information. The inspectionLevel request parameter specifies which details are returned.

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

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

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

      TestStateResponse.Builder nextState(String nextState)

      The name of the next state to transition to. If you haven't defined a next state in your definition or if the execution of the state fails, this field doesn't contain a value.

      Parameters:
      nextState - The name of the next state to transition to. If you haven't defined a next state in your definition or if the execution of the state fails, this field doesn't contain a value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The execution status of the state.

      Parameters:
      status - The execution status of the state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The execution status of the state.

      Parameters:
      status - The execution status of the state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: