public static class ComputeCapacityReservation.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public ComputeCapacityReservation.Builder availabilityDomain(String availabilityDomain)
The availability domain of the compute capacity reservation.
Example: Uocm:PHX-AD-1
availabilityDomain
- the value to setpublic ComputeCapacityReservation.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the compute capacity reservation.
compartmentId
- the value to setpublic 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"}}
definedTags
- the value to setpublic ComputeCapacityReservation.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 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"}
freeformTags
- the value to setpublic ComputeCapacityReservation.Builder id(String id)
The OCID of the compute capacity reservation.
id
- the value to setpublic ComputeCapacityReservation.Builder isDefaultReservation(Boolean isDefaultReservation)
Whether this capacity reservation is the default. For more information, see Capacity Reservations.
isDefaultReservation
- the value to setpublic 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.
instanceReservationConfigs
- the value to setpublic ComputeCapacityReservation.Builder lifecycleState(ComputeCapacityReservation.LifecycleState lifecycleState)
The current state of the compute capacity reservation.
lifecycleState
- the value to setpublic 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.
reservedInstanceCount
- the value to setpublic 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
timeUpdated
- the value to setpublic 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
timeCreated
- the value to setpublic 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.
usedInstanceCount
- the value to setpublic ComputeCapacityReservation build()
public ComputeCapacityReservation.Builder copy(ComputeCapacityReservation model)
Copyright © 2016–2024. All rights reserved.