Interface ImageFailureContext.Builder

  • Method Details

    • imageStatus

      ImageFailureContext.Builder imageStatus(String imageStatus)

      The status that the image had when the failure occurred. This indicates the stage of the image creation process where the image failed, for example BUILDING or DISTRIBUTING.

      Parameters:
      imageStatus - The status that the image had when the failure occurred. This indicates the stage of the image creation process where the image failed, for example BUILDING or DISTRIBUTING.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • imageStatus

      ImageFailureContext.Builder imageStatus(ImageStatus imageStatus)

      The status that the image had when the failure occurred. This indicates the stage of the image creation process where the image failed, for example BUILDING or DISTRIBUTING.

      Parameters:
      imageStatus - The status that the image had when the failure occurred. This indicates the stage of the image creation process where the image failed, for example BUILDING or DISTRIBUTING.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • workflowExecutionId

      ImageFailureContext.Builder workflowExecutionId(String workflowExecutionId)

      The unique identifier of the workflow execution that was running when the image failed.

      Parameters:
      workflowExecutionId - The unique identifier of the workflow execution that was running when the image failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workflowArn

      ImageFailureContext.Builder workflowArn(String workflowArn)

      The Amazon Resource Name (ARN) of the workflow build version that was running when the image failed.

      Parameters:
      workflowArn - The Amazon Resource Name (ARN) of the workflow build version that was running when the image failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stepExecutionId

      ImageFailureContext.Builder stepExecutionId(String stepExecutionId)

      The unique identifier of the workflow step execution that failed.

      Parameters:
      stepExecutionId - The unique identifier of the workflow step execution that failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failedStep

      ImageFailureContext.Builder failedStep(String failedStep)

      The name of the workflow step that failed, as it appears in the workflow document.

      Parameters:
      failedStep - The name of the workflow step that failed, as it appears in the workflow document.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • componentFailure

      ImageFailureContext.Builder componentFailure(ComponentFailureContext componentFailure)

      The details about the component that failed, if the failure occurred while a component was running.

      Parameters:
      componentFailure - The details about the component that failed, if the failure occurred while a component was running.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • componentFailure

      default ImageFailureContext.Builder componentFailure(Consumer<ComponentFailureContext.Builder> componentFailure)

      The details about the component that failed, if the failure occurred while a component was running.

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

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

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

      ImageFailureContext.Builder distributionFailure(DistributionFailureContext distributionFailure)

      The details about the distribution failure, if the failure occurred while Image Builder distributed or configured the image.

      Parameters:
      distributionFailure - The details about the distribution failure, if the failure occurred while Image Builder distributed or configured the image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • distributionFailure

      default ImageFailureContext.Builder distributionFailure(Consumer<DistributionFailureContext.Builder> distributionFailure)

      The details about the distribution failure, if the failure occurred while Image Builder distributed or configured the image.

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

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

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