Package com.oracle.bmc.core.model
Class InstanceReservationConfig
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.core.model.InstanceReservationConfig
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class InstanceReservationConfig extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelData that defines the capacity configuration.
Note: Objects should always be created or deserialized using theInstanceReservationConfig.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 theInstanceReservationConfig.Builder, which maintain a set of all explicitly set fields calledInstanceReservationConfig.Builder.__explicitlySet__. ThehashCode()andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInstanceReservationConfig.Builder
-
Constructor Summary
Constructors Constructor Description InstanceReservationConfig(String faultDomain, ClusterConfigDetails clusterConfig, String instanceShape, InstanceReservationShapeConfigDetails instanceShapeConfig, Long reservedCount, Long usedCount, String clusterPlacementGroupId)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstanceReservationConfig.Builderbuilder()Create a new builder.booleanequals(Object o)ClusterConfigDetailsgetClusterConfig()StringgetClusterPlacementGroupId()The OCID of the cluster placement group for this instance reservation capacity configuration.StringgetFaultDomain()The fault domain of this capacity configuration.StringgetInstanceShape()The shape to use when launching instances using compute capacity reservations.InstanceReservationShapeConfigDetailsgetInstanceShapeConfig()LonggetReservedCount()The total number of instances that can be launched from the capacity configuration.LonggetUsedCount()The amount of capacity in use out of the total capacity reserved in this capacity configuration.inthashCode()InstanceReservationConfig.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
InstanceReservationConfig
@Deprecated @ConstructorProperties({"faultDomain","clusterConfig","instanceShape","instanceShapeConfig","reservedCount","usedCount","clusterPlacementGroupId"}) public InstanceReservationConfig(String faultDomain, ClusterConfigDetails clusterConfig, String instanceShape, InstanceReservationShapeConfigDetails instanceShapeConfig, Long reservedCount, Long usedCount, String clusterPlacementGroupId)
Deprecated.
-
-
Method Detail
-
builder
public static InstanceReservationConfig.Builder builder()
Create a new builder.
-
toBuilder
public InstanceReservationConfig.Builder toBuilder()
-
getFaultDomain
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.
- Returns:
- the value
-
getClusterConfig
public ClusterConfigDetails getClusterConfig()
-
getInstanceShape
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.- Returns:
- the value
-
getInstanceShapeConfig
public InstanceReservationShapeConfigDetails getInstanceShapeConfig()
-
getReservedCount
public Long getReservedCount()
The total number of instances that can be launched from the capacity configuration.- Returns:
- the value
-
getUsedCount
public Long getUsedCount()
The amount of capacity in use out of the total capacity reserved in this capacity configuration.- Returns:
- the value
-
getClusterPlacementGroupId
public String getClusterPlacementGroupId()
The OCID of the cluster placement group for this instance reservation capacity configuration.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-