public static class ComputeCapacityReservationSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
public ComputeCapacityReservationSummary.Builder id(String id)
The OCID of the instance reservation configuration.
id
- the value to setpublic ComputeCapacityReservationSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment.
compartmentId
- the value to setpublic ComputeCapacityReservationSummary.Builder displayName(String displayName)
A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
displayName
- the value to setpublic 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"}}
definedTags
- the value to setpublic 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"}
freeformTags
- the value to setpublic ComputeCapacityReservationSummary.Builder lifecycleState(ComputeCapacityReservation.LifecycleState lifecycleState)
The current state of the capacity reservation.
lifecycleState
- the value to setpublic ComputeCapacityReservationSummary.Builder availabilityDomain(String availabilityDomain)
The availability domain of the capacity reservation.
availabilityDomain
- the value to setpublic 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.
reservedInstanceCount
- the value to setpublic 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.
usedInstanceCount
- the value to setpublic ComputeCapacityReservationSummary.Builder isDefaultReservation(Boolean isDefaultReservation)
Whether this capacity reservation is the default. For more information, see Capacity Reservations.
isDefaultReservation
- the value to setpublic 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
timeCreated
- the value to setpublic ComputeCapacityReservationSummary build()
public ComputeCapacityReservationSummary.Builder copy(ComputeCapacityReservationSummary model)
Copyright © 2016–2025. All rights reserved.