Interface CapacityAllocation.Builder

  • Method Details

    • allocationType

      CapacityAllocation.Builder allocationType(String allocationType)

      The usage type. used indicates that the instance capacity is in use by instances that are running in the Capacity Reservation.

      Parameters:
      allocationType - The usage type. used indicates that the instance capacity is in use by instances that are running in the Capacity Reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • allocationType

      CapacityAllocation.Builder allocationType(AllocationType allocationType)

      The usage type. used indicates that the instance capacity is in use by instances that are running in the Capacity Reservation.

      Parameters:
      allocationType - The usage type. used indicates that the instance capacity is in use by instances that are running in the Capacity Reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • count

      The amount of instance capacity associated with the usage. For example a value of 4 indicates that instance capacity for 4 instances is currently in use.

      Parameters:
      count - The amount of instance capacity associated with the usage. For example a value of 4 indicates that instance capacity for 4 instances is currently in use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allocationMetadata

      Additional metadata associated with the capacity allocation. Each entry contains a key-value pair providing context about the allocation.

      Parameters:
      allocationMetadata - Additional metadata associated with the capacity allocation. Each entry contains a key-value pair providing context about the allocation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allocationMetadata

      CapacityAllocation.Builder allocationMetadata(CapacityAllocationMetadataEntry... allocationMetadata)

      Additional metadata associated with the capacity allocation. Each entry contains a key-value pair providing context about the allocation.

      Parameters:
      allocationMetadata - Additional metadata associated with the capacity allocation. Each entry contains a key-value pair providing context about the allocation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allocationMetadata

      Additional metadata associated with the capacity allocation. Each entry contains a key-value pair providing context about the allocation.

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

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

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