Interface EbsVolumeConfiguration.Builder

  • 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

      EbsVolumeConfiguration.Builder volumeType(String 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 is gp3.
      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 is gp3.
      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, and io2 volumes.

      Parameters:
      iops - The number of IOPS to provision. Valid only for gp3, io1, and io2 volumes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • throughput

      EbsVolumeConfiguration.Builder throughput(Integer throughput)

      The throughput, in MiB/s. Valid only for gp3 volumes.

      Parameters:
      throughput - The throughput, in MiB/s. Valid only for gp3 volumes.
      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 in kmsKeyId, or the default KMS key for Amazon EBS if you do not specify one. The default is true.

      Parameters:
      encrypted - Specifies whether to encrypt the volume. If true, the service encrypts the volume with the KMS key that you specify in kmsKeyId, or the default KMS key for Amazon EBS if you do not specify one. The default is true.
      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

      EbsVolumeConfiguration.Builder snapshotId(String 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.