public static class InstanceReservationConfig.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InstanceReservationConfig |
build() |
InstanceReservationConfig.Builder |
clusterConfig(ClusterConfigDetails clusterConfig) |
InstanceReservationConfig.Builder |
copy(InstanceReservationConfig model) |
InstanceReservationConfig.Builder |
faultDomain(String faultDomain)
The fault domain of this capacity configuration.
|
InstanceReservationConfig.Builder |
instanceShape(String instanceShape)
The shape to use when launching instances using compute capacity reservations.
|
InstanceReservationConfig.Builder |
instanceShapeConfig(InstanceReservationShapeConfigDetails instanceShapeConfig) |
InstanceReservationConfig.Builder |
reservedCount(Long reservedCount)
The total number of instances that can be launched from the capacity configuration.
|
InstanceReservationConfig.Builder |
usedCount(Long usedCount)
The amount of capacity in use out of the total capacity reserved in this capacity
configuration.
|
public InstanceReservationConfig.Builder faultDomain(String faultDomain)
The fault domain of this capacity configuration. If a value is not supplied, this capacity configuration is applicable to all fault domains in the specified availability domain. For more information, see Capacity Reservations.
faultDomain
- the value to setpublic InstanceReservationConfig.Builder clusterConfig(ClusterConfigDetails clusterConfig)
public InstanceReservationConfig.Builder instanceShape(String instanceShape)
The shape to use when launching instances using compute capacity reservations. The shape
determines the number of CPUs, the amount of memory, and other resources allocated to the
instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes
.
instanceShape
- the value to setpublic InstanceReservationConfig.Builder instanceShapeConfig(InstanceReservationShapeConfigDetails instanceShapeConfig)
public InstanceReservationConfig.Builder reservedCount(Long reservedCount)
The total number of instances that can be launched from the capacity configuration.
reservedCount
- the value to setpublic InstanceReservationConfig.Builder usedCount(Long usedCount)
The amount of capacity in use out of the total capacity reserved in this capacity configuration.
usedCount
- the value to setpublic InstanceReservationConfig build()
public InstanceReservationConfig.Builder copy(InstanceReservationConfig model)
Copyright © 2016–2023. All rights reserved.