Interface AwsEc2VolumeDetails.Builder

  • Method Details

    • createTime

      AwsEc2VolumeDetails.Builder createTime(String createTime)

      Indicates when the volume was created.

      For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.

      Parameters:
      createTime - Indicates when the volume was created.

      For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.

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

      AwsEc2VolumeDetails.Builder deviceName(String deviceName)

      The device name for the volume that is attached to the instance.

      Parameters:
      deviceName - The device name for the volume that is attached to the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • encrypted

      AwsEc2VolumeDetails.Builder encrypted(Boolean encrypted)

      Specifies whether the volume is encrypted.

      Parameters:
      encrypted - Specifies whether the volume is encrypted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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

      AwsEc2VolumeDetails.Builder snapshotId(String snapshotId)

      The snapshot from which the volume was created.

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

      The volume state. Valid values are as follows:

      • available

      • creating

      • deleted

      • deleting

      • error

      • in-use

      Parameters:
      status - The volume state. Valid values are as follows:

      • available

      • creating

      • deleted

      • deleting

      • error

      • in-use

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

      AwsEc2VolumeDetails.Builder kmsKeyId(String kmsKeyId)

      The ARN of the KMS key that was used to protect the volume encryption key for the volume.

      Parameters:
      kmsKeyId - The ARN of the 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.
    • attachments

      The volume attachments.

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

      The volume attachments.

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

      The volume attachments.

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

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

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

      AwsEc2VolumeDetails.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.
    • volumeType

      AwsEc2VolumeDetails.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.
    • volumeScanStatus

      AwsEc2VolumeDetails.Builder volumeScanStatus(String volumeScanStatus)

      Indicates whether the volume was scanned or skipped.

      Parameters:
      volumeScanStatus - Indicates whether the volume was scanned or skipped.
      Returns:
      Returns a reference to this object so that method calls can be chained together.