@Generated(value="OracleSDKGenerator", comments="API Version: 20220509") public final class Disk extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The assets disk.
Note: Objects should always be created or deserialized using the Disk.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 Disk.Builder
, which maintain a
set of all explicitly set fields called Disk.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 |
Disk.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Disk(String name,
Integer bootOrder,
String uuid,
String uuidLun,
Long sizeInMBs,
String location,
String persistentMode,
Boolean isCbtEnabled)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Disk.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Integer |
getBootOrder()
Order of boot volumes.
|
Boolean |
getIsCbtEnabled()
Indicates that CBT (change disk tracking) is enabled for this virtual disk.
|
String |
getLocation()
Location of the boot/data volume.
|
String |
getName()
Disk name.
|
String |
getPersistentMode()
The disk persistent mode.
|
Long |
getSizeInMBs()
The size of the volume in MBs.
|
String |
getUuid()
Disk UUID for the virtual disk, if available.
|
String |
getUuidLun()
Disk UUID LUN for the virtual disk, if available.
|
int |
hashCode() |
Disk.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"name","bootOrder","uuid","uuidLun","sizeInMBs","location","persistentMode","isCbtEnabled"}) public Disk(String name, Integer bootOrder, String uuid, String uuidLun, Long sizeInMBs, String location, String persistentMode, Boolean isCbtEnabled)
public static Disk.Builder builder()
Create a new builder.
public Disk.Builder toBuilder()
public String getName()
Disk name.
public Integer getBootOrder()
Order of boot volumes.
public String getUuid()
Disk UUID for the virtual disk, if available.
public String getUuidLun()
Disk UUID LUN for the virtual disk, if available.
public Long getSizeInMBs()
The size of the volume in MBs.
public String getLocation()
Location of the boot/data volume.
public String getPersistentMode()
The disk persistent mode.
public Boolean getIsCbtEnabled()
Indicates that CBT (change disk tracking) is enabled for this virtual disk.
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–2024. All rights reserved.