Class ComputeCapacityReservationSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.ComputeCapacityReservationSummary.Builder
-
- Enclosing class:
- ComputeCapacityReservationSummary
public static class ComputeCapacityReservationSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeCapacityReservationSummary.BuilderavailabilityDomain(String availabilityDomain)The availability domain of the capacity reservation.ComputeCapacityReservationSummarybuild()ComputeCapacityReservationSummary.BuildercompartmentId(String compartmentId)The OCID of the compartment.ComputeCapacityReservationSummary.Buildercopy(ComputeCapacityReservationSummary model)ComputeCapacityReservationSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ComputeCapacityReservationSummary.BuilderdisplayName(String displayName)A user-friendly name.ComputeCapacityReservationSummary.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.ComputeCapacityReservationSummary.Builderid(String id)The OCID of the instance reservation configuration.ComputeCapacityReservationSummary.BuilderisDefaultReservation(Boolean isDefaultReservation)Whether this capacity reservation is the default.ComputeCapacityReservationSummary.BuilderlifecycleState(ComputeCapacityReservation.LifecycleState lifecycleState)The current state of the capacity reservation.ComputeCapacityReservationSummary.BuilderreservedInstanceCount(Long reservedInstanceCount)The number of instances for which capacity will be held in this compute capacity reservation.ComputeCapacityReservationSummary.BuildertimeCreated(Date timeCreated)The date and time the capacity reservation was created, in the format defined by RFC3339.ComputeCapacityReservationSummary.BuilderusedInstanceCount(Long usedInstanceCount)The total number of instances currently consuming space in this compute capacity reservation.
-
-
-
Method Detail
-
id
public ComputeCapacityReservationSummary.Builder id(String id)
The OCID of the instance reservation configuration.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public ComputeCapacityReservationSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
displayName
public ComputeCapacityReservationSummary.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
-
definedTags
public ComputeCapacityReservationSummary.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
-
freeformTags
public ComputeCapacityReservationSummary.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
-
lifecycleState
public ComputeCapacityReservationSummary.Builder lifecycleState(ComputeCapacityReservation.LifecycleState lifecycleState)
The current state of the capacity reservation.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
availabilityDomain
public ComputeCapacityReservationSummary.Builder availabilityDomain(String availabilityDomain)
The availability domain of the capacity reservation.- Parameters:
availabilityDomain- the value to set- Returns:
- this builder
-
reservedInstanceCount
public ComputeCapacityReservationSummary.Builder reservedInstanceCount(Long reservedInstanceCount)
The number of instances for which capacity will be held in 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
-
usedInstanceCount
public ComputeCapacityReservationSummary.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
-
isDefaultReservation
public ComputeCapacityReservationSummary.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
-
timeCreated
public ComputeCapacityReservationSummary.Builder timeCreated(Date timeCreated)
The date and time the 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
-
build
public ComputeCapacityReservationSummary build()
-
copy
public ComputeCapacityReservationSummary.Builder copy(ComputeCapacityReservationSummary model)
-
-