@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class InstanceReservationConfig extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Data that defines the capacity configuration.
Note: Objects should always be created or deserialized using the InstanceReservationConfig.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the InstanceReservationConfig.Builder
, which maintain a
set of all explicitly set fields called InstanceReservationConfig.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
InstanceReservationConfig.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
InstanceReservationConfig(String faultDomain,
ClusterConfigDetails clusterConfig,
String instanceShape,
InstanceReservationShapeConfigDetails instanceShapeConfig,
Long reservedCount,
Long usedCount,
String clusterPlacementGroupId)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static InstanceReservationConfig.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
ClusterConfigDetails |
getClusterConfig() |
String |
getClusterPlacementGroupId()
The OCID of the cluster placement group for this instance reservation capacity configuration.
|
String |
getFaultDomain()
The fault domain of this capacity configuration.
|
String |
getInstanceShape()
The shape to use when launching instances using compute capacity reservations.
|
InstanceReservationShapeConfigDetails |
getInstanceShapeConfig() |
Long |
getReservedCount()
The total number of instances that can be launched from the capacity configuration.
|
Long |
getUsedCount()
The amount of capacity in use out of the total capacity reserved in this capacity
configuration.
|
int |
hashCode() |
InstanceReservationConfig.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"faultDomain","clusterConfig","instanceShape","instanceShapeConfig","reservedCount","usedCount","clusterPlacementGroupId"}) public InstanceReservationConfig(String faultDomain, ClusterConfigDetails clusterConfig, String instanceShape, InstanceReservationShapeConfigDetails instanceShapeConfig, Long reservedCount, Long usedCount, String clusterPlacementGroupId)
public static InstanceReservationConfig.Builder builder()
Create a new builder.
public InstanceReservationConfig.Builder toBuilder()
public String getFaultDomain()
The fault domain of this capacity configuration. If a value is not supplied, this capacity configuration is applicable to all fault domains in the specified availability domain. For more information, see Capacity Reservations.
public ClusterConfigDetails getClusterConfig()
public String getInstanceShape()
The shape to use when launching instances using compute capacity reservations. The shape
determines the number of CPUs, the amount of memory, and other resources allocated to the
instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes
.
public InstanceReservationShapeConfigDetails getInstanceShapeConfig()
public Long getReservedCount()
The total number of instances that can be launched from the capacity configuration.
public Long getUsedCount()
The amount of capacity in use out of the total capacity reserved in this capacity configuration.
public String getClusterPlacementGroupId()
The OCID of the cluster placement group for this instance reservation capacity configuration.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.