@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class LaunchCreateVolumeFromAttributes extends LaunchCreateVolumeDetails
The details of the volume to create for CreateVolume operation.
Note: Objects should always be created or deserialized using the LaunchCreateVolumeFromAttributes.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 LaunchCreateVolumeFromAttributes.Builder
, which maintain a
set of all explicitly set fields called LaunchCreateVolumeFromAttributes.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 |
LaunchCreateVolumeFromAttributes.Builder |
LaunchCreateVolumeDetails.VolumeCreationType
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
LaunchCreateVolumeFromAttributes(String compartmentId,
String displayName,
String kmsKeyId,
Long vpusPerGB,
Long sizeInGBs)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static LaunchCreateVolumeFromAttributes.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCompartmentId()
The OCID of the compartment that contains the volume.
|
String |
getDisplayName()
A user-friendly name.
|
String |
getKmsKeyId()
The OCID of the Vault service key to assign as the master encryption key for the volume.
|
Long |
getSizeInGBs()
The size of the volume in GBs.
|
Long |
getVpusPerGB()
The number of volume performance units (VPUs) that will be applied to this volume per GB,
representing the Block Volume service’s elastic performance options.
|
int |
hashCode() |
LaunchCreateVolumeFromAttributes.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
public static LaunchCreateVolumeFromAttributes.Builder builder()
Create a new builder.
public LaunchCreateVolumeFromAttributes.Builder toBuilder()
public String getCompartmentId()
The OCID of the compartment that contains the volume. If not provided, it will be inherited from the instance.
public String getDisplayName()
A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
public String getKmsKeyId()
The OCID of the Vault service key to assign as the master encryption key for the volume.
public Long getVpusPerGB()
The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service’s elastic performance options. See Block Volume Performance Levels for more information.
Allowed values:
0
: Represents Lower Cost option.
10
: Represents Balanced option.
20
: Represents Higher Performance option.
30
-120
: Represents the Ultra High Performance option.
public Long getSizeInGBs()
The size of the volume in GBs.
public String toString()
toString
in class LaunchCreateVolumeDetails
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class LaunchCreateVolumeDetails
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class LaunchCreateVolumeDetails
public int hashCode()
hashCode
in class LaunchCreateVolumeDetails
Copyright © 2016–2024. All rights reserved.