@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 ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
InstanceReservationConfig.Builder |
Constructor and Description |
---|
InstanceReservationConfig(String faultDomain,
String instanceShape,
InstanceReservationShapeConfigDetails instanceShapeConfig,
Long reservedCount,
Long usedCount)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static InstanceReservationConfig.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
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","instanceShape","instanceShapeConfig","reservedCount","usedCount"}) public InstanceReservationConfig(String faultDomain, String instanceShape, InstanceReservationShapeConfigDetails instanceShapeConfig, Long reservedCount, Long usedCount)
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 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 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–2023. All rights reserved.