Interface Volume.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Volume.Builder,Volume>, SdkBuilder<Volume.Builder,Volume>, SdkPojo
Enclosing class:
Volume

public static interface Volume.Builder extends SdkPojo, CopyableBuilder<Volume.Builder,Volume>
  • Method Details

    • attachments

      Volume.Builder attachments(Collection<VolumeAttachment> attachments)

      This parameter is not returned by CreateVolume.

      Information about the volume attachments.

      Parameters:
      attachments -

      This parameter is not returned by CreateVolume.

      Information about the volume attachments.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attachments

      Volume.Builder attachments(VolumeAttachment... attachments)

      This parameter is not returned by CreateVolume.

      Information about the volume attachments.

      Parameters:
      attachments -

      This parameter is not returned by CreateVolume.

      Information about the volume attachments.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attachments

      Volume.Builder attachments(Consumer<VolumeAttachment.Builder>... attachments)

      This parameter is not returned by CreateVolume.

      Information about the volume attachments.

      This is a convenience method that creates an instance of the VolumeAttachment.Builder avoiding the need to create one manually via VolumeAttachment.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to attachments(List<VolumeAttachment>).

      Parameters:
      attachments - a consumer that will call methods on VolumeAttachment.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • availabilityZone

      Volume.Builder availabilityZone(String availabilityZone)

      The Availability Zone for the volume.

      Parameters:
      availabilityZone - The Availability Zone for the volume.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createTime

      Volume.Builder createTime(Instant createTime)

      The time stamp when volume creation was initiated.

      Parameters:
      createTime - The time stamp when volume creation was initiated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • encrypted

      Volume.Builder encrypted(Boolean encrypted)

      Indicates whether the volume is encrypted.

      Parameters:
      encrypted - Indicates whether the volume is encrypted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • kmsKeyId

      Volume.Builder kmsKeyId(String kmsKeyId)

      The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that was used to protect the volume encryption key for the volume.

      Parameters:
      kmsKeyId - The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that was used to protect the volume encryption key for the volume.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outpostArn

      Volume.Builder outpostArn(String outpostArn)

      The Amazon Resource Name (ARN) of the Outpost.

      Parameters:
      outpostArn - The Amazon Resource Name (ARN) of the Outpost.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • size

      Volume.Builder size(Integer size)

      The size of the volume, in GiBs.

      Parameters:
      size - The size of the volume, in GiBs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • snapshotId

      Volume.Builder snapshotId(String snapshotId)

      The snapshot from which the volume was created, if applicable.

      Parameters:
      snapshotId - The snapshot from which the volume was created, if applicable.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      Volume.Builder state(String state)

      The volume state.

      Parameters:
      state - The volume state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The volume state.

      Parameters:
      state - The volume state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • volumeId

      Volume.Builder volumeId(String volumeId)

      The ID of the volume.

      Parameters:
      volumeId - The ID of the volume.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • iops

      Volume.Builder iops(Integer iops)

      The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.

      Parameters:
      iops - The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Any tags assigned to the volume.

      Parameters:
      tags - Any tags assigned to the volume.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Volume.Builder tags(Tag... tags)

      Any tags assigned to the volume.

      Parameters:
      tags - Any tags assigned to the volume.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Any tags assigned to the volume.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • volumeType

      Volume.Builder volumeType(String volumeType)

      The volume type.

      Parameters:
      volumeType - The volume type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • volumeType

      Volume.Builder volumeType(VolumeType volumeType)

      The volume type.

      Parameters:
      volumeType - The volume type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fastRestored

      Volume.Builder fastRestored(Boolean fastRestored)

      This parameter is not returned by CreateVolume.

      Indicates whether the volume was created using fast snapshot restore.

      Parameters:
      fastRestored -

      This parameter is not returned by CreateVolume.

      Indicates whether the volume was created using fast snapshot restore.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • multiAttachEnabled

      Volume.Builder multiAttachEnabled(Boolean multiAttachEnabled)

      Indicates whether Amazon EBS Multi-Attach is enabled.

      Parameters:
      multiAttachEnabled - Indicates whether Amazon EBS Multi-Attach is enabled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • throughput

      Volume.Builder throughput(Integer throughput)

      The throughput that the volume supports, in MiB/s.

      Parameters:
      throughput - The throughput that the volume supports, in MiB/s.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sseType

      Volume.Builder sseType(String sseType)

      This parameter is not returned by CreateVolume.

      Reserved for future use.

      Parameters:
      sseType -

      This parameter is not returned by CreateVolume.

      Reserved for future use.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sseType

      Volume.Builder sseType(SSEType sseType)

      This parameter is not returned by CreateVolume.

      Reserved for future use.

      Parameters:
      sseType -

      This parameter is not returned by CreateVolume.

      Reserved for future use.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: