Interface InterruptibleCapacityAllocation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InterruptibleCapacityAllocation.Builder,,InterruptibleCapacityAllocation> SdkBuilder<InterruptibleCapacityAllocation.Builder,,InterruptibleCapacityAllocation> SdkPojo
- Enclosing class:
InterruptibleCapacityAllocation
-
Method Summary
Modifier and TypeMethodDescriptioninstanceCount(Integer instanceCount) The current number of instances allocated to the interruptible reservation.interruptibleCapacityReservationId(String interruptibleCapacityReservationId) The ID of the interruptible Capacity Reservation created from the allocation.interruptionType(String interruptionType) The type of interruption policy applied to the interruptible reservation.interruptionType(InterruptionType interruptionType) The type of interruption policy applied to the interruptible reservation.The current status of the allocation (updating during reclamation, active when complete).The current status of the allocation (updating during reclamation, active when complete).targetInstanceCount(Integer targetInstanceCount) After your modify request, the requested number of instances allocated to interruptible reservation.zeroSizePreference(String zeroSizePreference) Specifies how Amazon EC2 handles the interruptible Capacity Reservation when you reduce its allocation to zero instances.zeroSizePreference(ZeroSizePreference zeroSizePreference) Specifies how Amazon EC2 handles the interruptible Capacity Reservation when you reduce its allocation to zero instances.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
InterruptibleCapacityAllocation.Builder status(InterruptibleCapacityReservationAllocationStatus 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
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
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
Specifies how Amazon EC2 handles the interruptible Capacity Reservation when you reduce its allocation to zero instances. A value of
retainkeeps the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. A value ofdefaultcancels 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 ofretainkeeps the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. A value ofdefaultcancels 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
Specifies how Amazon EC2 handles the interruptible Capacity Reservation when you reduce its allocation to zero instances. A value of
retainkeeps the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. A value ofdefaultcancels 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 ofretainkeeps the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. A value ofdefaultcancels 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:
-