Class Volume
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.Volume
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Volume
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Volume.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The attachment state of the volume - `unattached`: Not attached to any virtual server instances - `attached`: Attached to a virtual server instance (even if the instance is stopped) - `unusable`: Not able to be attached to any virtual server instances.static interface
The attachment state of the volume - `unattached`: Not attached to any virtual server instances - `attached`: Attached to a virtual server instance (even if the instance is stopped) - `unusable`: Not able to be attached to any virtual server instances.static interface
The attachment state of the volume - `unattached`: Not attached to any virtual server instances - `attached`: Attached to a virtual server instance (even if the instance is stopped) - `unusable`: Not able to be attached to any virtual server instances.static interface
The type of encryption used on the volume.static interface
The health of this resource: - `ok`: No abnormal behavior detected - `degraded`: Experiencing compromised performance, capacity, or connectivity - `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated - `inapplicable`: The health state does not apply because of the current lifecycle state.static interface
The resource type.static interface
The status of the volume. -
Method Summary
Modifier and TypeMethodDescriptionGets the adjustableCapacityStates.Gets the adjustableIopsStates.Gets the attachmentState.Gets the bandwidth.Gets the capacity.Gets the catalogOffering.Gets the createdAt.getCrn()
Gets the crn.Gets the encryption.Gets the encryptionKey.Gets the healthReasons.Gets the healthState.getHref()
Gets the href.getId()
Gets the id.getIops()
Gets the iops.getName()
Gets the name.Gets the operatingSystem.Gets the profile.Gets the resourceGroup.Gets the resourceType.Gets the sourceImage.Gets the sourceSnapshot.Gets the status.Gets the statusReasons.Gets the userTags.Gets the volumeAttachments.getZone()
Gets the zone.isActive()
Gets the active.isBusy()
Gets the busy.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
isActive
Gets the active. Indicates whether a running virtual server instance has an attachment to this volume.- Returns:
- the active
-
getAdjustableCapacityStates
-
getAdjustableIopsStates
-
getAttachmentState
Gets the attachmentState. The attachment state of the volume - `unattached`: Not attached to any virtual server instances - `attached`: Attached to a virtual server instance (even if the instance is stopped) - `unusable`: Not able to be attached to any virtual server instances.- Returns:
- the attachmentState
-
getBandwidth
Gets the bandwidth. The maximum bandwidth (in megabits per second) for the volume. The minimum and maximum limits for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the bandwidth
-
isBusy
Gets the busy. Indicates whether this volume is performing an operation that must be serialized. This must be `false` to perform an operation that is specified to require serialization.- Returns:
- the busy
-
getCapacity
Gets the capacity. The capacity to use for the volume (in gigabytes). The minimum and maximum limits for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the capacity
-
getCatalogOffering
Gets the catalogOffering. The [catalog](https://cloud.ibm.com/docs/account?topic=account-restrict-by-user) offering this volume was created from. If a virtual server instance is provisioned with a `boot_volume_attachment` specifying this volume, the virtual server instance will use this volume's catalog offering, including its pricing plan. If absent, this volume was not created from a catalog offering.- Returns:
- the catalogOffering
-
getCreatedAt
Gets the createdAt. The date and time that the volume was created.- Returns:
- the createdAt
-
getCrn
-
getEncryption
Gets the encryption. The type of encryption used on the volume.- Returns:
- the encryption
-
getEncryptionKey
Gets the encryptionKey. The root key used to wrap the data encryption key for the volume. This property will be present for volumes with an `encryption` type of `user_managed`.- Returns:
- the encryptionKey
-
getHealthReasons
Gets the healthReasons. The reasons for the current `health_state` (if any).- Returns:
- the healthReasons
-
getHealthState
Gets the healthState. The health of this resource: - `ok`: No abnormal behavior detected - `degraded`: Experiencing compromised performance, capacity, or connectivity - `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated - `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.- Returns:
- the healthState
-
getHref
-
getId
-
getIops
Gets the iops. The maximum I/O operations per second (IOPS) for this volume.- Returns:
- the iops
-
getName
Gets the name. The name for this volume. The name is unique across all volumes in the region.- Returns:
- the name
-
getOperatingSystem
Gets the operatingSystem. The operating system associated with this volume. If absent, this volume was not created from an image, or the image did not include an operating system.- Returns:
- the operatingSystem
-
getProfile
Gets the profile. The [profile](https://cloud.ibm.com/docs/vpc?topic=vpc-block-storage-profiles) for this volume.- Returns:
- the profile
-
getResourceGroup
Gets the resourceGroup. The resource group for this volume.- Returns:
- the resourceGroup
-
getResourceType
-
getSourceImage
Gets the sourceImage. The image from which this volume was created (this may be [deleted](https://cloud.ibm.com/apidocs/vpc#deleted-resources)). If absent, this volume was not created from an image.- Returns:
- the sourceImage
-
getSourceSnapshot
Gets the sourceSnapshot. The snapshot from which this volume was cloned.- Returns:
- the sourceSnapshot
-
getStatus
Gets the status. The status of the volume. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the status
-
getStatusReasons
Gets the statusReasons. The reasons for the current status (if any).- Returns:
- the statusReasons
-
getUserTags
-
getVolumeAttachments
Gets the volumeAttachments. The volume attachments for this volume.- Returns:
- the volumeAttachments
-
getZone
-