Class StorediSCSIVolume
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<StorediSCSIVolume.Builder,StorediSCSIVolume>
Describes an iSCSI stored volume.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StorediSCSIVolume.Builderbuilder()final InstantThe date the volume was created.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringkmsKey()Returns the value of the KMSKey property for this object.final BooleanIndicates if when the stored volume was created, existing data on the underlying local disk was preserved.static Class<? extends StorediSCSIVolume.Builder> final StringIf the stored volume was created from a snapshot, this field contains the snapshot ID used, e.g.final StringThe name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringThe Amazon Resource Name (ARN) of the storage volume.final StringA value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway.final StringThe ID of the local disk that was specified in the CreateStorediSCSIVolume operation.final StringvolumeId()The unique identifier of the volume, e.g., vol-AE4B946D.final VolumeiSCSIAttributesAn VolumeiSCSIAttributes object that represents a collection of iSCSI attributes for one stored volume.final DoubleRepresents the percentage complete if the volume is restoring or bootstrapping that represents the percent of data transferred.final LongThe size of the volume in bytes.final StringOne of the VolumeStatus values that indicates the state of the storage volume.final StringOne of the VolumeType enumeration values describing the type of the volume.final LongThe size of the data stored on the volume in bytes.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
volumeARN
The Amazon Resource Name (ARN) of the storage volume.
- Returns:
- The Amazon Resource Name (ARN) of the storage volume.
-
volumeId
The unique identifier of the volume, e.g., vol-AE4B946D.
- Returns:
- The unique identifier of the volume, e.g., vol-AE4B946D.
-
volumeType
One of the VolumeType enumeration values describing the type of the volume.
- Returns:
- One of the VolumeType enumeration values describing the type of the volume.
-
volumeStatus
One of the VolumeStatus values that indicates the state of the storage volume.
- Returns:
- One of the VolumeStatus values that indicates the state of the storage volume.
-
volumeAttachmentStatus
A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway. For more information, see Moving your volumes to a different gateway.
- Returns:
- A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway. For more information, see Moving your volumes to a different gateway.
-
volumeSizeInBytes
The size of the volume in bytes.
- Returns:
- The size of the volume in bytes.
-
volumeProgress
Represents the percentage complete if the volume is restoring or bootstrapping that represents the percent of data transferred. This field does not appear in the response if the stored volume is not restoring or bootstrapping.
- Returns:
- Represents the percentage complete if the volume is restoring or bootstrapping that represents the percent of data transferred. This field does not appear in the response if the stored volume is not restoring or bootstrapping.
-
volumeDiskId
The ID of the local disk that was specified in the CreateStorediSCSIVolume operation.
- Returns:
- The ID of the local disk that was specified in the CreateStorediSCSIVolume operation.
-
sourceSnapshotId
If the stored volume was created from a snapshot, this field contains the snapshot ID used, e.g. snap-78e22663. Otherwise, this field is not included.
- Returns:
- If the stored volume was created from a snapshot, this field contains the snapshot ID used, e.g. snap-78e22663. Otherwise, this field is not included.
-
preservedExistingData
Indicates if when the stored volume was created, existing data on the underlying local disk was preserved.
Valid Values:
true|false- Returns:
- Indicates if when the stored volume was created, existing data on the underlying local disk was
preserved.
Valid Values:
true|false
-
volumeiSCSIAttributes
An VolumeiSCSIAttributes object that represents a collection of iSCSI attributes for one stored volume.
- Returns:
- An VolumeiSCSIAttributes object that represents a collection of iSCSI attributes for one stored volume.
-
createdDate
The date the volume was created. Volumes created prior to March 28, 2017 don’t have this timestamp.
- Returns:
- The date the volume was created. Volumes created prior to March 28, 2017 don’t have this timestamp.
-
volumeUsedInBytes
The size of the data stored on the volume in bytes. This value is calculated based on the number of blocks that are touched, instead of the actual amount of data written. This value can be useful for sequential write patterns but less accurate for random write patterns.
VolumeUsedInBytesis different from the compressed size of the volume, which is the value that is used to calculate your bill.This value is not available for volumes created prior to May 13, 2015, until you store data on the volume.
- Returns:
- The size of the data stored on the volume in bytes. This value is calculated based on the number of
blocks that are touched, instead of the actual amount of data written. This value can be useful for
sequential write patterns but less accurate for random write patterns.
VolumeUsedInBytesis different from the compressed size of the volume, which is the value that is used to calculate your bill.This value is not available for volumes created prior to May 13, 2015, until you store data on the volume.
-
kmsKey
Returns the value of the KMSKey property for this object.- Returns:
- The value of the KMSKey property for this object.
-
targetName
The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN. For example, specifying
TargetNameas myvolume results in the target ARN ofarn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume. The target name must be unique across all volumes on a gateway.If you don't specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name.
- Returns:
- The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the
target ARN. For example, specifying
TargetNameas myvolume results in the target ARN ofarn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume. The target name must be unique across all volumes on a gateway.If you don't specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<StorediSCSIVolume.Builder,StorediSCSIVolume> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-