@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class Shape extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
A compute instance shape that can be used in launchInstance
. For more information, see Overview of the Compute
Service and
Compute
Shapes.
Note: Objects should always be created or deserialized using the Shape.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 Shape.Builder
, which maintain a
set of all explicitly set fields called Shape.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 |
Shape.BaselineOcpuUtilizations |
static class |
Shape.BillingType
How instances that use this shape are charged.
|
static class |
Shape.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Shape(List<Shape.BaselineOcpuUtilizations> baselineOcpuUtilizations,
BigDecimal minTotalBaselineOcpusRequired,
String shape,
String processorDescription,
Float ocpus,
Float memoryInGBs,
Integer networkPorts,
Float networkingBandwidthInGbps,
Integer maxVnicAttachments,
Integer gpus,
String gpuDescription,
Integer localDisks,
Float localDisksTotalSizeInGBs,
String localDiskDescription,
Integer rdmaPorts,
Integer rdmaBandwidthInGbps,
Boolean isLiveMigrationSupported,
ShapeOcpuOptions ocpuOptions,
ShapeMemoryOptions memoryOptions,
ShapeNetworkingBandwidthOptions networkingBandwidthOptions,
ShapeMaxVnicAttachmentOptions maxVnicAttachmentOptions,
ShapePlatformConfigOptions platformConfigOptions,
Boolean isBilledForStoppedInstance,
Shape.BillingType billingType,
List<String> quotaNames,
Boolean isSubcore,
Boolean isFlexible,
List<String> resizeCompatibleShapes,
List<ShapeAlternativeObject> recommendedAlternatives)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Shape.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<Shape.BaselineOcpuUtilizations> |
getBaselineOcpuUtilizations()
For a subcore burstable VM, the supported baseline OCPU utilization for instances that use
this shape.
|
Shape.BillingType |
getBillingType()
How instances that use this shape are charged.
|
String |
getGpuDescription()
A short description of the graphics processing unit (GPU) available for this shape.
|
Integer |
getGpus()
The number of GPUs available for this shape.
|
Boolean |
getIsBilledForStoppedInstance()
Whether billing continues when the instances that use this shape are in the stopped state.
|
Boolean |
getIsFlexible()
Whether the shape supports creating flexible instances.
|
Boolean |
getIsLiveMigrationSupported()
Whether live migration is supported for this shape.
|
Boolean |
getIsSubcore()
Whether the shape supports creating subcore or burstable instances.
|
String |
getLocalDiskDescription()
A short description of the local disks available for this shape.
|
Integer |
getLocalDisks()
The number of local disks available for this shape.
|
Float |
getLocalDisksTotalSizeInGBs()
The aggregate size of the local disks available for this shape, in gigabytes.
|
ShapeMaxVnicAttachmentOptions |
getMaxVnicAttachmentOptions() |
Integer |
getMaxVnicAttachments()
The maximum number of VNIC attachments available for this shape.
|
Float |
getMemoryInGBs()
The default amount of memory available for this shape, in gigabytes.
|
ShapeMemoryOptions |
getMemoryOptions() |
BigDecimal |
getMinTotalBaselineOcpusRequired()
For a subcore burstable VM, the minimum total baseline OCPUs required.
|
Float |
getNetworkingBandwidthInGbps()
The networking bandwidth available for this shape, in gigabits per second.
|
ShapeNetworkingBandwidthOptions |
getNetworkingBandwidthOptions() |
Integer |
getNetworkPorts()
The number of physical network interface card (NIC) ports available for this shape.
|
ShapeOcpuOptions |
getOcpuOptions() |
Float |
getOcpus()
The default number of OCPUs available for this shape.
|
ShapePlatformConfigOptions |
getPlatformConfigOptions() |
String |
getProcessorDescription()
A short description of the shape’s processor (CPU).
|
List<String> |
getQuotaNames()
The list of of compartment quotas for the shape.
|
Integer |
getRdmaBandwidthInGbps()
The networking bandwidth available for the remote direct memory access (RDMA) network for
this shape, in gigabits per second.
|
Integer |
getRdmaPorts()
The number of networking ports available for the remote direct memory access (RDMA) network
between nodes in a high performance computing (HPC) cluster network.
|
List<ShapeAlternativeObject> |
getRecommendedAlternatives()
The list of shapes and shape details (if applicable) that Oracle recommends that you use as
an alternative to the current shape.
|
List<String> |
getResizeCompatibleShapes()
The list of compatible shapes that this shape can be changed to.
|
String |
getShape()
The name of the shape.
|
int |
hashCode() |
Shape.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"baselineOcpuUtilizations","minTotalBaselineOcpusRequired","shape","processorDescription","ocpus","memoryInGBs","networkPorts","networkingBandwidthInGbps","maxVnicAttachments","gpus","gpuDescription","localDisks","localDisksTotalSizeInGBs","localDiskDescription","rdmaPorts","rdmaBandwidthInGbps","isLiveMigrationSupported","ocpuOptions","memoryOptions","networkingBandwidthOptions","maxVnicAttachmentOptions","platformConfigOptions","isBilledForStoppedInstance","billingType","quotaNames","isSubcore","isFlexible","resizeCompatibleShapes","recommendedAlternatives"}) public Shape(List<Shape.BaselineOcpuUtilizations> baselineOcpuUtilizations, BigDecimal minTotalBaselineOcpusRequired, String shape, String processorDescription, Float ocpus, Float memoryInGBs, Integer networkPorts, Float networkingBandwidthInGbps, Integer maxVnicAttachments, Integer gpus, String gpuDescription, Integer localDisks, Float localDisksTotalSizeInGBs, String localDiskDescription, Integer rdmaPorts, Integer rdmaBandwidthInGbps, Boolean isLiveMigrationSupported, ShapeOcpuOptions ocpuOptions, ShapeMemoryOptions memoryOptions, ShapeNetworkingBandwidthOptions networkingBandwidthOptions, ShapeMaxVnicAttachmentOptions maxVnicAttachmentOptions, ShapePlatformConfigOptions platformConfigOptions, Boolean isBilledForStoppedInstance, Shape.BillingType billingType, List<String> quotaNames, Boolean isSubcore, Boolean isFlexible, List<String> resizeCompatibleShapes, List<ShapeAlternativeObject> recommendedAlternatives)
public static Shape.Builder builder()
Create a new builder.
public Shape.Builder toBuilder()
public List<Shape.BaselineOcpuUtilizations> getBaselineOcpuUtilizations()
For a subcore burstable VM, the supported baseline OCPU utilization for instances that use this shape.
public BigDecimal getMinTotalBaselineOcpusRequired()
For a subcore burstable VM, the minimum total baseline OCPUs required. The total baseline OCPUs is equal to baselineOcpuUtilization chosen multiplied by the number of OCPUs chosen.
public String getShape()
The name of the shape. You can enumerate all available shapes by calling listShapes
.
public String getProcessorDescription()
A short description of the shape’s processor (CPU).
public Float getOcpus()
The default number of OCPUs available for this shape.
public Float getMemoryInGBs()
The default amount of memory available for this shape, in gigabytes.
public Integer getNetworkPorts()
The number of physical network interface card (NIC) ports available for this shape.
public Float getNetworkingBandwidthInGbps()
The networking bandwidth available for this shape, in gigabits per second.
public Integer getMaxVnicAttachments()
The maximum number of VNIC attachments available for this shape.
public Integer getGpus()
The number of GPUs available for this shape.
public String getGpuDescription()
A short description of the graphics processing unit (GPU) available for this shape.
If the shape does not have any GPUs, this field is null
.
public Integer getLocalDisks()
The number of local disks available for this shape.
public Float getLocalDisksTotalSizeInGBs()
The aggregate size of the local disks available for this shape, in gigabytes.
If the shape does not have any local disks, this field is null
.
public String getLocalDiskDescription()
A short description of the local disks available for this shape.
If the shape does not have any local disks, this field is null
.
public Integer getRdmaPorts()
The number of networking ports available for the remote direct memory access (RDMA) network
between nodes in a high performance computing (HPC) cluster network. If the shape does not
support cluster networks, this value is 0
.
public Integer getRdmaBandwidthInGbps()
The networking bandwidth available for the remote direct memory access (RDMA) network for this shape, in gigabits per second.
public Boolean getIsLiveMigrationSupported()
Whether live migration is supported for this shape.
public ShapeOcpuOptions getOcpuOptions()
public ShapeMemoryOptions getMemoryOptions()
public ShapeNetworkingBandwidthOptions getNetworkingBandwidthOptions()
public ShapeMaxVnicAttachmentOptions getMaxVnicAttachmentOptions()
public ShapePlatformConfigOptions getPlatformConfigOptions()
public Boolean getIsBilledForStoppedInstance()
Whether billing continues when the instances that use this shape are in the stopped state.
public Shape.BillingType getBillingType()
How instances that use this shape are charged.
public List<String> getQuotaNames()
The list of of compartment quotas for the shape.
public Boolean getIsSubcore()
Whether the shape supports creating subcore or burstable instances. A burstable instance is a virtual machine (VM) instance that provides a baseline level of CPU performance with the ability to burst to a higher level to support occasional spikes in usage.
public Boolean getIsFlexible()
Whether the shape supports creating flexible instances. A flexible shape is a shape that lets you customize the number of OCPUs and the amount of memory when launching or resizing your instance.
public List<String> getResizeCompatibleShapes()
The list of compatible shapes that this shape can be changed to. For more information, see Changing the Shape of an Instance.
public List<ShapeAlternativeObject> getRecommendedAlternatives()
The list of shapes and shape details (if applicable) that Oracle recommends that you use as an alternative to the current shape.
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–2025. All rights reserved.