Class EbsVolumeConfiguration
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EbsVolumeConfiguration.Builder,EbsVolumeConfiguration>
The configuration for an Amazon EBS-backed persistent volume. The service creates persistent volumes when a session first launches, and the volumes survive instance termination. The volumes persist until you delete the session.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final BooleanSpecifies whether to encrypt the volume.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 Integeriops()The number of IOPS to provision.final StringkmsKeyId()The identifier of the KMS key to use for encryption.final Stringname()The logical name of the volume.static Class<? extends EbsVolumeConfiguration.Builder> final IntegersizeGiB()The size of the volume, in GiB.final StringAn optional Amazon EBS snapshot ID.final IntegerThe throughput, in MiB/s.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 EbsVolumeTypeThe Amazon EBS volume type.final StringThe Amazon EBS volume type.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
The logical name of the volume. Use this name to reference the volume when you mount it into an agent runtime.
- Returns:
- The logical name of the volume. Use this name to reference the volume when you mount it into an agent runtime.
-
sizeGiB
The size of the volume, in GiB.
- Returns:
- The size of the volume, in GiB.
-
volumeType
The Amazon EBS volume type. If you do not specify a type, the default is
gp3.If the service returns an enum value that is not available in the current SDK version,
volumeTypewill returnEbsVolumeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvolumeTypeAsString().- Returns:
- The Amazon EBS volume type. If you do not specify a type, the default is
gp3. - See Also:
-
volumeTypeAsString
The Amazon EBS volume type. If you do not specify a type, the default is
gp3.If the service returns an enum value that is not available in the current SDK version,
volumeTypewill returnEbsVolumeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvolumeTypeAsString().- Returns:
- The Amazon EBS volume type. If you do not specify a type, the default is
gp3. - See Also:
-
iops
The number of IOPS to provision. Valid only for
gp3,io1, andio2volumes.- Returns:
- The number of IOPS to provision. Valid only for
gp3,io1, andio2volumes.
-
throughput
The throughput, in MiB/s. Valid only for
gp3volumes.- Returns:
- The throughput, in MiB/s. Valid only for
gp3volumes.
-
encrypted
Specifies whether to encrypt the volume. If
true, the service encrypts the volume with the KMS key that you specify inkmsKeyId, or the default KMS key for Amazon EBS if you do not specify one. The default istrue.- Returns:
- Specifies whether to encrypt the volume. If
true, the service encrypts the volume with the KMS key that you specify inkmsKeyId, or the default KMS key for Amazon EBS if you do not specify one. The default istrue.
-
kmsKeyId
The identifier of the KMS key to use for encryption.
- Returns:
- The identifier of the KMS key to use for encryption.
-
snapshotId
An optional Amazon EBS snapshot ID. If provided, the volume is initialized from this snapshot the first time it is created. On subsequent restarts, the existing volume is used and the snapshot is ignored.
- Returns:
- An optional Amazon EBS snapshot ID. If provided, the volume is initialized from this snapshot the first time it is created. On subsequent restarts, the existing volume is used and the snapshot is ignored.
-
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<EbsVolumeConfiguration.Builder,EbsVolumeConfiguration> - 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
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-