Package com.ibm.cloud.is.vpc.v1.model
Class VolumeAttachment
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.VolumeAttachment
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class VolumeAttachment extends com.ibm.cloud.sdk.core.service.model.GenericModel
VolumeAttachment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VolumeAttachment.Status
The status of this volume attachment.static interface
VolumeAttachment.Type
The type of volume attachment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getBandwidth()
Gets the bandwidth.Date
getCreatedAt()
Gets the createdAt.VolumeAttachmentDevice
getDevice()
Gets the device.String
getHref()
Gets the href.String
getId()
Gets the id.String
getName()
Gets the name.String
getStatus()
Gets the status.String
getType()
Gets the type.VolumeReferenceVolumeAttachmentContext
getVolume()
Gets the volume.Boolean
isDeleteVolumeOnInstanceDelete()
Gets the deleteVolumeOnInstanceDelete.
-
-
-
Method Detail
-
getBandwidth
public Long getBandwidth()
Gets the bandwidth. The maximum bandwidth (in megabits per second) for the volume when attached to this instance. This may be lower than the volume bandwidth depending on the configuration of the instance.- Returns:
- the bandwidth
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that the volume was attached.- Returns:
- the createdAt
-
isDeleteVolumeOnInstanceDelete
public Boolean isDeleteVolumeOnInstanceDelete()
Gets the deleteVolumeOnInstanceDelete. Indicates whether deleting the instance will also delete the attached volume.- Returns:
- the deleteVolumeOnInstanceDelete
-
getDevice
public VolumeAttachmentDevice getDevice()
Gets the device. Information about how the volume is exposed to the instance operating system. This property may be absent if the volume attachment's `status` is not `attached`.- Returns:
- the device
-
getHref
public String getHref()
Gets the href. The URL for this volume attachment.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this volume attachment.- Returns:
- the id
-
getName
public String getName()
Gets the name. The name for this volume attachment. The name is unique across all volume attachments on the instance.- Returns:
- the name
-
getStatus
public String getStatus()
Gets the status. The status of this volume attachment. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the status
-
getType
public String getType()
Gets the type. The type of volume attachment. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the type
-
getVolume
public VolumeReferenceVolumeAttachmentContext getVolume()
Gets the volume. The attached volume. This property will be absent if the volume has not yet been provisioned.- Returns:
- the volume
-
-