Interface EbsVolumeConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EbsVolumeConfiguration.Builder,,EbsVolumeConfiguration> SdkBuilder<EbsVolumeConfiguration.Builder,,EbsVolumeConfiguration> SdkPojo
- Enclosing class:
EbsVolumeConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies whether to encrypt the volume.The number of IOPS to provision.The identifier of the KMS key to use for encryption.The logical name of the volume.The size of the volume, in GiB.snapshotId(String snapshotId) An optional Amazon EBS snapshot ID.throughput(Integer throughput) The throughput, in MiB/s.volumeType(String volumeType) The Amazon EBS volume type.volumeType(EbsVolumeType volumeType) The Amazon EBS volume type.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The logical name of the volume. Use this name to reference the volume when you mount it into an agent runtime.
- Parameters:
name- The logical name of the volume. Use this name to reference the volume when you mount it into an agent runtime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sizeGiB
The size of the volume, in GiB.
- Parameters:
sizeGiB- The size of the volume, in GiB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeType
The Amazon EBS volume type. If you do not specify a type, the default is
gp3.- Parameters:
volumeType- The Amazon EBS volume type. If you do not specify a type, the default isgp3.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
volumeType
The Amazon EBS volume type. If you do not specify a type, the default is
gp3.- Parameters:
volumeType- The Amazon EBS volume type. If you do not specify a type, the default isgp3.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
iops
The number of IOPS to provision. Valid only for
gp3,io1, andio2volumes.- Parameters:
iops- The number of IOPS to provision. Valid only forgp3,io1, andio2volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
throughput
The throughput, in MiB/s. Valid only for
gp3volumes.- Parameters:
throughput- The throughput, in MiB/s. Valid only forgp3volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
encrypted- Specifies whether to encrypt the volume. Iftrue, 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:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
The identifier of the KMS key to use for encryption.
- Parameters:
kmsKeyId- The identifier of the KMS key to use for encryption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-