Class ComputeCapacityReservation.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.ComputeCapacityReservation.Builder
-
- Enclosing class:
- ComputeCapacityReservation
public static class ComputeCapacityReservation.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeCapacityReservation.Builder
availabilityDomain(String availabilityDomain)
The availability domain of the compute capacity reservation.ComputeCapacityReservation
build()
ComputeCapacityReservation.Builder
compartmentId(String compartmentId)
The OCID of the compartment containing the compute capacity reservation.ComputeCapacityReservation.Builder
copy(ComputeCapacityReservation model)
ComputeCapacityReservation.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.ComputeCapacityReservation.Builder
displayName(String displayName)
A user-friendly name.ComputeCapacityReservation.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.ComputeCapacityReservation.Builder
id(String id)
The OCID of the compute capacity reservation.ComputeCapacityReservation.Builder
instanceReservationConfigs(List<InstanceReservationConfig> instanceReservationConfigs)
The capacity configurations for the capacity reservation.ComputeCapacityReservation.Builder
isDefaultReservation(Boolean isDefaultReservation)
Whether this capacity reservation is the default.ComputeCapacityReservation.Builder
lifecycleState(ComputeCapacityReservation.LifecycleState lifecycleState)
The current state of the compute capacity reservation.ComputeCapacityReservation.Builder
reservedInstanceCount(Long reservedInstanceCount)
The number of instances for which capacity will be held with this compute capacity reservation.ComputeCapacityReservation.Builder
timeCreated(Date timeCreated)
The date and time the compute capacity reservation was created, in the format defined by RFC3339.ComputeCapacityReservation.Builder
timeUpdated(Date timeUpdated)
The date and time the compute capacity reservation was updated, in the format defined by RFC3339.ComputeCapacityReservation.Builder
usedInstanceCount(Long usedInstanceCount)
The total number of instances currently consuming space in this compute capacity reservation.
-
-
-
Method Detail
-
availabilityDomain
public ComputeCapacityReservation.Builder availabilityDomain(String availabilityDomain)
The availability domain of the compute capacity reservation.Example: Uocm:PHX-AD-1
- Parameters:
availabilityDomain
- the value to set- Returns:
- this builder
-
compartmentId
public ComputeCapacityReservation.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the compute capacity reservation.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public ComputeCapacityReservation.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
displayName
public ComputeCapacityReservation.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
freeformTags
public ComputeCapacityReservation.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
id
public ComputeCapacityReservation.Builder id(String id)
The OCID of the compute capacity reservation.- Parameters:
id
- the value to set- Returns:
- this builder
-
isDefaultReservation
public ComputeCapacityReservation.Builder isDefaultReservation(Boolean isDefaultReservation)
Whether this capacity reservation is the default.For more information, see Capacity Reservations.
- Parameters:
isDefaultReservation
- the value to set- Returns:
- this builder
-
instanceReservationConfigs
public ComputeCapacityReservation.Builder instanceReservationConfigs(List<InstanceReservationConfig> instanceReservationConfigs)
The capacity configurations for the capacity reservation.To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.
- Parameters:
instanceReservationConfigs
- the value to set- Returns:
- this builder
-
lifecycleState
public ComputeCapacityReservation.Builder lifecycleState(ComputeCapacityReservation.LifecycleState lifecycleState)
The current state of the compute capacity reservation.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
reservedInstanceCount
public ComputeCapacityReservation.Builder reservedInstanceCount(Long reservedInstanceCount)
The number of instances for which capacity will be held with this compute capacity reservation.This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
- Parameters:
reservedInstanceCount
- the value to set- Returns:
- this builder
-
timeUpdated
public ComputeCapacityReservation.Builder timeUpdated(Date timeUpdated)
The date and time the compute capacity reservation was updated, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
timeCreated
public ComputeCapacityReservation.Builder timeCreated(Date timeCreated)
The date and time the compute capacity reservation was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
usedInstanceCount
public ComputeCapacityReservation.Builder usedInstanceCount(Long usedInstanceCount)
The total number of instances currently consuming space in this compute capacity reservation.This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
- Parameters:
usedInstanceCount
- the value to set- Returns:
- this builder
-
build
public ComputeCapacityReservation build()
-
copy
public ComputeCapacityReservation.Builder copy(ComputeCapacityReservation model)
-
-