@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class LaunchInstanceShapeConfigDetails extends Object
The shape configuration requested for the instance.
If the parameter is provided, the instance is created with the resources that you specify. If some properties are missing or the entire parameter is not provided, the instance is created with the default configuration values for the `shape` that you specify.
Each shape only supports certain configurable values. If the values that you provide are not valid for the specified `shape`, an error is returned.
For more information about customizing the resources that are allocated to a flexible shapes,
see [Flexible Shapes](https://docs.cloud.oracle.com/Content/Compute/References/computeshapes.htm#flexible).
Note: Objects should always be created or deserialized using the LaunchInstanceShapeConfigDetails.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 LaunchInstanceShapeConfigDetails.Builder, which maintain a set of all explicitly set fields called
__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take
__explicitlySet__ into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null from unset null).
| Modifier and Type | Class and Description |
|---|---|
static class |
LaunchInstanceShapeConfigDetails.Builder |
| Constructor and Description |
|---|
LaunchInstanceShapeConfigDetails(Float ocpus,
Float memoryInGBs)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static LaunchInstanceShapeConfigDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
Float |
getMemoryInGBs()
The total amount of memory available to the instance, in gigabytes.
|
Float |
getOcpus()
The total number of OCPUs available to the instance.
|
int |
hashCode() |
LaunchInstanceShapeConfigDetails.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"ocpus","memoryInGBs"}) @Deprecated public LaunchInstanceShapeConfigDetails(Float ocpus, Float memoryInGBs)
public static LaunchInstanceShapeConfigDetails.Builder builder()
Create a new builder.
public LaunchInstanceShapeConfigDetails.Builder toBuilder()
public Float getOcpus()
The total number of OCPUs available to the instance.
public Float getMemoryInGBs()
The total amount of memory available to the instance, in gigabytes.
Copyright © 2016–2021. All rights reserved.