Package com.oracle.bmc.core.model
Class CapacityConfig
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.core.model.CapacityConfig
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class CapacityConfig extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelSpecifies the capacity configs that the Dedicated Virtual Machine Host (DVMH) Shape could support.
Note: Objects should always be created or deserialized using theCapacityConfig.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 theCapacityConfig.Builder, which maintain a set of all explicitly set fields calledCapacityConfig.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 classCapacityConfig.Builder
-
Constructor Summary
Constructors Constructor Description CapacityConfig(String capacityConfigName, SupportedCapabilities supportedCapabilities, Boolean isDefault, List<CapacityBinPreview> capacityBins)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CapacityConfig.Builderbuilder()Create a new builder.booleanequals(Object o)List<CapacityBinPreview>getCapacityBins()A list of total CPU and memory per capacity bucket.StringgetCapacityConfigName()The name of each capacity config.BooleangetIsDefault()Whether this capacity config is the default config.SupportedCapabilitiesgetSupportedCapabilities()inthashCode()CapacityConfig.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
CapacityConfig
@Deprecated @ConstructorProperties({"capacityConfigName","supportedCapabilities","isDefault","capacityBins"}) public CapacityConfig(String capacityConfigName, SupportedCapabilities supportedCapabilities, Boolean isDefault, List<CapacityBinPreview> capacityBins)
Deprecated.
-
-
Method Detail
-
builder
public static CapacityConfig.Builder builder()
Create a new builder.
-
toBuilder
public CapacityConfig.Builder toBuilder()
-
getCapacityConfigName
public String getCapacityConfigName()
The name of each capacity config.- Returns:
- the value
-
getSupportedCapabilities
public SupportedCapabilities getSupportedCapabilities()
-
getIsDefault
public Boolean getIsDefault()
Whether this capacity config is the default config.- Returns:
- the value
-
getCapacityBins
public List<CapacityBinPreview> getCapacityBins()
A list of total CPU and memory per capacity bucket.- 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
-
-