Interface OperationEvent.Builder

  • Method Details

    • description

      OperationEvent.Builder description(String description)

      A description of the operation event. For example, "Stop the EC2 instance i-abcdefgh987654321".

      Parameters:
      description - A description of the operation event. For example, "Stop the EC2 instance i-abcdefgh987654321".
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resource

      OperationEvent.Builder resource(Resource resource)

      The resource involved in the operations event.

      Contains ResourceArn ARN and ResourceType.

      Parameters:
      resource - The resource involved in the operations event.

      Contains ResourceArn ARN and ResourceType.

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

      default OperationEvent.Builder resource(Consumer<Resource.Builder> resource)

      The resource involved in the operations event.

      Contains ResourceArn ARN and ResourceType.

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

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

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

      The status of the operation event. The possible statuses are: IN_PROGRESS, COMPLETED, and FAILED.

      Parameters:
      status - The status of the operation event. The possible statuses are: IN_PROGRESS, COMPLETED, and FAILED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the operation event. The possible statuses are: IN_PROGRESS, COMPLETED, and FAILED.

      Parameters:
      status - The status of the operation event. The possible statuses are: IN_PROGRESS, COMPLETED, and FAILED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusMessage

      OperationEvent.Builder statusMessage(String statusMessage)

      The status message relating to a specific operation event.

      Parameters:
      statusMessage - The status message relating to a specific operation event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timestamp

      OperationEvent.Builder timestamp(Instant timestamp)

      The timestamp of the specified operation event.

      Parameters:
      timestamp - The timestamp of the specified operation event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.