Interface ImageState.Builder

  • Method Details

    • status

      ImageState.Builder status(String status)

      The status of the image. A new image moves through build, test, and distribution statuses during creation, and ends in the AVAILABLE, FAILED, or CANCELLED state. The DEPRECATED, DISABLED, and DELETED statuses come from later resource management actions.

      Parameters:
      status - The status of the image. A new image moves through build, test, and distribution statuses during creation, and ends in the AVAILABLE, FAILED, or CANCELLED state. The DEPRECATED, DISABLED, and DELETED statuses come from later resource management actions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the image. A new image moves through build, test, and distribution statuses during creation, and ends in the AVAILABLE, FAILED, or CANCELLED state. The DEPRECATED, DISABLED, and DELETED statuses come from later resource management actions.

      Parameters:
      status - The status of the image. A new image moves through build, test, and distribution statuses during creation, and ends in the AVAILABLE, FAILED, or CANCELLED state. The DEPRECATED, DISABLED, and DELETED statuses come from later resource management actions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reason

      ImageState.Builder reason(String reason)

      The reason for the status of the image.

      Parameters:
      reason - The reason for the status of the image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureContext

      ImageState.Builder failureContext(ImageFailureContext failureContext)

      The details about the failure, for images that failed to complete. Image Builder only sets this property when the image status is FAILED.

      Parameters:
      failureContext - The details about the failure, for images that failed to complete. Image Builder only sets this property when the image status is FAILED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureContext

      default ImageState.Builder failureContext(Consumer<ImageFailureContext.Builder> failureContext)

      The details about the failure, for images that failed to complete. Image Builder only sets this property when the image status is FAILED.

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

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

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