Interface CreateInterruptibleCapacityReservationAllocationRequest.Builder

  • Method Details

    • capacityReservationId

      CreateInterruptibleCapacityReservationAllocationRequest.Builder capacityReservationId(String capacityReservationId)

      The ID of the source Capacity Reservation from which to create the interruptible Capacity Reservation. Your Capacity Reservation must be in active state with no end date set and have available capacity for allocation.

      Parameters:
      capacityReservationId - The ID of the source Capacity Reservation from which to create the interruptible Capacity Reservation. Your Capacity Reservation must be in active state with no end date set and have available capacity for allocation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceCount

      The number of instances to allocate from your source reservation. You can only allocate available instances (also called unused capacity).

      Parameters:
      instanceCount - The number of instances to allocate from your source reservation. You can only allocate available instances (also called unused capacity).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientToken

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

      Parameters:
      clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dryRun

      Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.

      Parameters:
      dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tagSpecifications

      The tags to apply to the interruptible Capacity Reservation during creation.

      Parameters:
      tagSpecifications - The tags to apply to the interruptible Capacity Reservation during creation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tagSpecifications

      The tags to apply to the interruptible Capacity Reservation during creation.

      Parameters:
      tagSpecifications - The tags to apply to the interruptible Capacity Reservation during creation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tagSpecifications

      The tags to apply to the interruptible Capacity Reservation during creation.

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

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

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

      Specifies the behavior for the interruptible Capacity Reservation when you reduce its allocation to zero instances. Specify retain to keep the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. Specify default to cancel the interruptible Capacity Reservation and return the capacity to your source Capacity Reservation. The default value is default.

      Parameters:
      zeroSizePreference - Specifies the behavior for the interruptible Capacity Reservation when you reduce its allocation to zero instances. Specify retain to keep the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. Specify default to cancel the interruptible Capacity Reservation and return the capacity to your source Capacity Reservation. The default value is default.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • zeroSizePreference

      Specifies the behavior for the interruptible Capacity Reservation when you reduce its allocation to zero instances. Specify retain to keep the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. Specify default to cancel the interruptible Capacity Reservation and return the capacity to your source Capacity Reservation. The default value is default.

      Parameters:
      zeroSizePreference - Specifies the behavior for the interruptible Capacity Reservation when you reduce its allocation to zero instances. Specify retain to keep the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. Specify default to cancel the interruptible Capacity Reservation and return the capacity to your source Capacity Reservation. The default value is default.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.