Package com.oracle.bmc.core.model
Class InstanceReservationConfigDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.InstanceReservationConfigDetails.Builder
-
- Enclosing class:
- InstanceReservationConfigDetails
public static class InstanceReservationConfigDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
instanceShape
public InstanceReservationConfigDetails.Builder instanceShape(String instanceShape)
The shape requested when launching instances using reserved capacity.The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance. You can list all available shapes by calling
ListComputeCapacityReservationInstanceShapes
.- Parameters:
instanceShape
- the value to set- Returns:
- this builder
-
instanceShapeConfig
public InstanceReservationConfigDetails.Builder instanceShapeConfig(InstanceReservationShapeConfigDetails instanceShapeConfig)
-
faultDomain
public InstanceReservationConfigDetails.Builder faultDomain(String faultDomain)
The fault domain to use for instances created using this capacity configuration.For more information, see Fault Domains. If you do not specify the fault domain, the capacity is available for an instance that does not specify a fault domain. To change the fault domain for a reservation, delete the reservation and create a new one in the preferred fault domain.
To retrieve a list of fault domains, use the ListFaultDomains operation in the [Identity and Access Management Service API](https://docs.oracle.com/iaas/api/#/en/identity/20160918/).
Example: FAULT-DOMAIN-1
- Parameters:
faultDomain
- the value to set- Returns:
- this builder
-
clusterConfig
public InstanceReservationConfigDetails.Builder clusterConfig(ClusterConfigDetails clusterConfig)
-
reservedCount
public InstanceReservationConfigDetails.Builder reservedCount(Long reservedCount)
The total number of instances that can be launched from the capacity configuration.- Parameters:
reservedCount
- the value to set- Returns:
- this builder
-
clusterPlacementGroupId
public InstanceReservationConfigDetails.Builder clusterPlacementGroupId(String clusterPlacementGroupId)
The OCID of the cluster placement group for this instance reservation capacity configuration.- Parameters:
clusterPlacementGroupId
- the value to set- Returns:
- this builder
-
build
public InstanceReservationConfigDetails build()
-
copy
public InstanceReservationConfigDetails.Builder copy(InstanceReservationConfigDetails model)
-
-