Class VolumeAttachment
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.core.model.VolumeAttachment
-
- Direct Known Subclasses:
EmulatedVolumeAttachment,IScsiVolumeAttachment,ParavirtualizedVolumeAttachment
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public class VolumeAttachment extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelA base object for all types of attachments between a storage volume and an instance.For specific details about iSCSI attachments, see
IScsiVolumeAttachment.For general information about volume attachments, see [Overview of Block Volume Storage](https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm).
*Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
Note: Objects should always be created or deserialized using theBuilder. 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 theBuilder, which maintain a set of all explicitly set fields calledBuilder#__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 classVolumeAttachment.IscsiLoginStateThe iscsi login state of the volume attachment.static classVolumeAttachment.LifecycleStateThe current state of the volume attachment.
-
Constructor Summary
Constructors Modifier Constructor Description protectedVolumeAttachment(String availabilityDomain, String compartmentId, String device, String displayName, String id, String instanceId, Boolean isReadOnly, Boolean isShareable, VolumeAttachment.LifecycleState lifecycleState, Date timeCreated, String volumeId, Boolean isPvEncryptionInTransitEnabled, Boolean isMultipath, VolumeAttachment.IscsiLoginState iscsiLoginState, Boolean isVolumeCreatedDuringLaunch)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetAvailabilityDomain()The availability domain of an instance.StringgetCompartmentId()The OCID of the compartment.StringgetDevice()The device name.StringgetDisplayName()A user-friendly name.StringgetId()The OCID of the volume attachment.StringgetInstanceId()The OCID of the instance the volume is attached to.VolumeAttachment.IscsiLoginStategetIscsiLoginState()The iscsi login state of the volume attachment.BooleangetIsMultipath()Whether the Iscsi or Paravirtualized attachment is multipath or not, it is not applicable to NVMe attachment.BooleangetIsPvEncryptionInTransitEnabled()Whether in-transit encryption for the data volume’s paravirtualized attachment is enabled or not.BooleangetIsReadOnly()Whether the attachment was created in read-only mode.BooleangetIsShareable()Whether the attachment should be created in shareable mode.BooleangetIsVolumeCreatedDuringLaunch()Flag indicating if this volume was created for the customer as part of a simplified launch.VolumeAttachment.LifecycleStategetLifecycleState()The current state of the volume attachment.DategetTimeCreated()The date and time the volume was created, in the format defined by RFC3339.StringgetVolumeId()The OCID of the volume.inthashCode()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
VolumeAttachment
@Deprecated @ConstructorProperties({"availabilityDomain","compartmentId","device","displayName","id","instanceId","isReadOnly","isShareable","lifecycleState","timeCreated","volumeId","isPvEncryptionInTransitEnabled","isMultipath","iscsiLoginState","isVolumeCreatedDuringLaunch"}) protected VolumeAttachment(String availabilityDomain, String compartmentId, String device, String displayName, String id, String instanceId, Boolean isReadOnly, Boolean isShareable, VolumeAttachment.LifecycleState lifecycleState, Date timeCreated, String volumeId, Boolean isPvEncryptionInTransitEnabled, Boolean isMultipath, VolumeAttachment.IscsiLoginState iscsiLoginState, Boolean isVolumeCreatedDuringLaunch)
Deprecated.
-
-
Method Detail
-
getAvailabilityDomain
public String getAvailabilityDomain()
The availability domain of an instance.Example: Uocm:PHX-AD-1
- Returns:
- the value
-
getCompartmentId
public String getCompartmentId()
The OCID of the compartment.- Returns:
- the value
-
getDevice
public String getDevice()
The device name.- Returns:
- the value
-
getDisplayName
public String getDisplayName()
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Returns:
- the value
-
getId
public String getId()
The OCID of the volume attachment.- Returns:
- the value
-
getInstanceId
public String getInstanceId()
The OCID of the instance the volume is attached to.- Returns:
- the value
-
getIsReadOnly
public Boolean getIsReadOnly()
Whether the attachment was created in read-only mode.- Returns:
- the value
-
getIsShareable
public Boolean getIsShareable()
Whether the attachment should be created in shareable mode.If an attachment is created in shareable mode, then other instances can attach the same volume, provided that they also create their attachments in shareable mode. Only certain volume types can be attached in shareable mode. Defaults to false if not specified.
- Returns:
- the value
-
getLifecycleState
public VolumeAttachment.LifecycleState getLifecycleState()
The current state of the volume attachment.- Returns:
- the value
-
getTimeCreated
public Date getTimeCreated()
The date and time the volume was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Returns:
- the value
-
getVolumeId
public String getVolumeId()
The OCID of the volume.- Returns:
- the value
-
getIsPvEncryptionInTransitEnabled
public Boolean getIsPvEncryptionInTransitEnabled()
Whether in-transit encryption for the data volume’s paravirtualized attachment is enabled or not.- Returns:
- the value
-
getIsMultipath
public Boolean getIsMultipath()
Whether the Iscsi or Paravirtualized attachment is multipath or not, it is not applicable to NVMe attachment.- Returns:
- the value
-
getIscsiLoginState
public VolumeAttachment.IscsiLoginState getIscsiLoginState()
The iscsi login state of the volume attachment.For a Iscsi volume attachment, all iscsi sessions need to be all logged-in or logged-out to be in logged-in or logged-out state.
- Returns:
- the value
-
getIsVolumeCreatedDuringLaunch
public Boolean getIsVolumeCreatedDuringLaunch()
Flag indicating if this volume was created for the customer as part of a simplified launch.Used to determine whether the volume requires deletion on instance termination.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin 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:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-