Class Shape
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.core.model.Shape
-
@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 inlaunchInstance
.For more information, see Overview of the Compute Service and Compute Shapes.
Note: Objects should always be created or deserialized using theShape.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 theShape.Builder
, which maintain a set of all explicitly set fields calledShape.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 class
Shape.BaselineOcpuUtilizations
static class
Shape.BillingType
How instances that use this shape are charged.static class
Shape.Builder
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
Shape
@Deprecated @ConstructorProperties({"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)
Deprecated.
-
-
Method Detail
-
builder
public static Shape.Builder builder()
Create a new builder.
-
toBuilder
public Shape.Builder toBuilder()
-
getBaselineOcpuUtilizations
public List<Shape.BaselineOcpuUtilizations> getBaselineOcpuUtilizations()
For a subcore burstable VM, the supported baseline OCPU utilization for instances that use this shape.- Returns:
- the value
-
getMinTotalBaselineOcpusRequired
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.
- Returns:
- the value
-
getShape
public String getShape()
The name of the shape.You can enumerate all available shapes by calling
listShapes
.- Returns:
- the value
-
getProcessorDescription
public String getProcessorDescription()
A short description of the shape’s processor (CPU).- Returns:
- the value
-
getOcpus
public Float getOcpus()
The default number of OCPUs available for this shape.- Returns:
- the value
-
getMemoryInGBs
public Float getMemoryInGBs()
The default amount of memory available for this shape, in gigabytes.- Returns:
- the value
-
getNetworkPorts
public Integer getNetworkPorts()
The number of physical network interface card (NIC) ports available for this shape.- Returns:
- the value
-
getNetworkingBandwidthInGbps
public Float getNetworkingBandwidthInGbps()
The networking bandwidth available for this shape, in gigabits per second.- Returns:
- the value
-
getMaxVnicAttachments
public Integer getMaxVnicAttachments()
The maximum number of VNIC attachments available for this shape.- Returns:
- the value
-
getGpus
public Integer getGpus()
The number of GPUs available for this shape.- Returns:
- the value
-
getGpuDescription
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.
- Returns:
- the value
-
getLocalDisks
public Integer getLocalDisks()
The number of local disks available for this shape.- Returns:
- the value
-
getLocalDisksTotalSizeInGBs
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.
- Returns:
- the value
-
getLocalDiskDescription
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.
- Returns:
- the value
-
getRdmaPorts
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.
- Returns:
- the value
-
getRdmaBandwidthInGbps
public Integer getRdmaBandwidthInGbps()
The networking bandwidth available for the remote direct memory access (RDMA) network for this shape, in gigabits per second.- Returns:
- the value
-
getIsLiveMigrationSupported
public Boolean getIsLiveMigrationSupported()
Whether live migration is supported for this shape.- Returns:
- the value
-
getOcpuOptions
public ShapeOcpuOptions getOcpuOptions()
-
getMemoryOptions
public ShapeMemoryOptions getMemoryOptions()
-
getNetworkingBandwidthOptions
public ShapeNetworkingBandwidthOptions getNetworkingBandwidthOptions()
-
getMaxVnicAttachmentOptions
public ShapeMaxVnicAttachmentOptions getMaxVnicAttachmentOptions()
-
getPlatformConfigOptions
public ShapePlatformConfigOptions getPlatformConfigOptions()
-
getIsBilledForStoppedInstance
public Boolean getIsBilledForStoppedInstance()
Whether billing continues when the instances that use this shape are in the stopped state.- Returns:
- the value
-
getBillingType
public Shape.BillingType getBillingType()
How instances that use this shape are charged.- Returns:
- the value
-
getQuotaNames
public List<String> getQuotaNames()
The list of of compartment quotas for the shape.- Returns:
- the value
-
getIsSubcore
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.
- Returns:
- the value
-
getIsFlexible
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.
- Returns:
- the value
-
getResizeCompatibleShapes
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.
- Returns:
- the value
-
getRecommendedAlternatives
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.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in 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:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-