Interface InterruptibleCapacityAllocation.Builder

  • Method Details

    • instanceCount

      InterruptibleCapacityAllocation.Builder instanceCount(Integer instanceCount)

      The current number of instances allocated to the interruptible reservation.

      Parameters:
      instanceCount - The current number of instances allocated to the interruptible reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetInstanceCount

      InterruptibleCapacityAllocation.Builder targetInstanceCount(Integer targetInstanceCount)

      After your modify request, the requested number of instances allocated to interruptible reservation.

      Parameters:
      targetInstanceCount - After your modify request, the requested number of instances allocated to interruptible reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the allocation (updating during reclamation, active when complete).

      Parameters:
      status - The current status of the allocation (updating during reclamation, active when complete).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the allocation (updating during reclamation, active when complete).

      Parameters:
      status - The current status of the allocation (updating during reclamation, active when complete).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • interruptibleCapacityReservationId

      InterruptibleCapacityAllocation.Builder interruptibleCapacityReservationId(String interruptibleCapacityReservationId)

      The ID of the interruptible Capacity Reservation created from the allocation.

      Parameters:
      interruptibleCapacityReservationId - The ID of the interruptible Capacity Reservation created from the allocation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • interruptionType

      InterruptibleCapacityAllocation.Builder interruptionType(String interruptionType)

      The type of interruption policy applied to the interruptible reservation.

      Parameters:
      interruptionType - The type of interruption policy applied to the interruptible reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • interruptionType

      InterruptibleCapacityAllocation.Builder interruptionType(InterruptionType interruptionType)

      The type of interruption policy applied to the interruptible reservation.

      Parameters:
      interruptionType - The type of interruption policy applied to the interruptible reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • zeroSizePreference

      InterruptibleCapacityAllocation.Builder zeroSizePreference(String zeroSizePreference)

      Specifies how Amazon EC2 handles the interruptible Capacity Reservation when you reduce its allocation to zero instances. A value of retain keeps the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. A value of default cancels the interruptible Capacity Reservation and returns the capacity to your source Capacity Reservation.

      Parameters:
      zeroSizePreference - Specifies how Amazon EC2 handles the interruptible Capacity Reservation when you reduce its allocation to zero instances. A value of retain keeps the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. A value of default cancels the interruptible Capacity Reservation and returns the capacity to your source Capacity Reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • zeroSizePreference

      InterruptibleCapacityAllocation.Builder zeroSizePreference(ZeroSizePreference zeroSizePreference)

      Specifies how Amazon EC2 handles the interruptible Capacity Reservation when you reduce its allocation to zero instances. A value of retain keeps the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. A value of default cancels the interruptible Capacity Reservation and returns the capacity to your source Capacity Reservation.

      Parameters:
      zeroSizePreference - Specifies how Amazon EC2 handles the interruptible Capacity Reservation when you reduce its allocation to zero instances. A value of retain keeps the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. A value of default cancels the interruptible Capacity Reservation and returns the capacity to your source Capacity Reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: