Interface ReleaseHostsResponse.Builder

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

public static interface ReleaseHostsResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<ReleaseHostsResponse.Builder,ReleaseHostsResponse>
  • Method Details

    • successful

      The IDs of the Dedicated Hosts that were successfully released.

      Parameters:
      successful - The IDs of the Dedicated Hosts that were successfully released.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • successful

      ReleaseHostsResponse.Builder successful(String... successful)

      The IDs of the Dedicated Hosts that were successfully released.

      Parameters:
      successful - The IDs of the Dedicated Hosts that were successfully released.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unsuccessful

      The IDs of the Dedicated Hosts that could not be released, including an error message.

      Parameters:
      unsuccessful - The IDs of the Dedicated Hosts that could not be released, including an error message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unsuccessful

      ReleaseHostsResponse.Builder unsuccessful(UnsuccessfulItem... unsuccessful)

      The IDs of the Dedicated Hosts that could not be released, including an error message.

      Parameters:
      unsuccessful - The IDs of the Dedicated Hosts that could not be released, including an error message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unsuccessful

      The IDs of the Dedicated Hosts that could not be released, including an error message.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to unsuccessful(List<UnsuccessfulItem>).

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