Interface CapacityBlock.Builder

  • Method Details

    • capacityBlockId

      CapacityBlock.Builder capacityBlockId(String capacityBlockId)

      The ID of the Capacity Block.

      Parameters:
      capacityBlockId - The ID of the Capacity Block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ultraserverType

      CapacityBlock.Builder ultraserverType(String ultraserverType)

      The EC2 UltraServer type of the Capacity Block.

      Parameters:
      ultraserverType - The EC2 UltraServer type of the Capacity Block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZone

      CapacityBlock.Builder availabilityZone(String availabilityZone)

      The Availability Zone of the Capacity Block.

      Parameters:
      availabilityZone - The Availability Zone of the Capacity Block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZoneId

      CapacityBlock.Builder availabilityZoneId(String availabilityZoneId)

      The Availability Zone ID of the Capacity Block.

      Parameters:
      availabilityZoneId - The Availability Zone ID of the Capacity Block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityReservationIds

      CapacityBlock.Builder capacityReservationIds(Collection<String> capacityReservationIds)

      The ID of the Capacity Reservation.

      Parameters:
      capacityReservationIds - The ID of the Capacity Reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityReservationIds

      CapacityBlock.Builder capacityReservationIds(String... capacityReservationIds)

      The ID of the Capacity Reservation.

      Parameters:
      capacityReservationIds - The ID of the Capacity Reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startDate

      CapacityBlock.Builder startDate(Instant startDate)

      The date and time at which the Capacity Block was started.

      Parameters:
      startDate - The date and time at which the Capacity Block was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endDate

      CapacityBlock.Builder endDate(Instant endDate)

      The date and time at which the Capacity Block expires. When a Capacity Block expires, all instances in the Capacity Block are terminated.

      Parameters:
      endDate - The date and time at which the Capacity Block expires. When a Capacity Block expires, all instances in the Capacity Block are terminated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createDate

      CapacityBlock.Builder createDate(Instant createDate)

      The date and time at which the Capacity Block was created.

      Parameters:
      createDate - The date and time at which the Capacity Block was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The state of the Capacity Block.

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

      The state of the Capacity Block.

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

      The tags assigned to the Capacity Block.

      Parameters:
      tags - The tags assigned to the Capacity Block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      CapacityBlock.Builder tags(Tag... tags)

      The tags assigned to the Capacity Block.

      Parameters:
      tags - The tags assigned to the Capacity Block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags assigned to the Capacity Block.

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

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

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