Interface AwsEc2VolumeDetails.Builder

    • Method Detail

      • createTime

        AwsEc2VolumeDetails.Builder createTime​(String createTime)

        Indicates when the volume was created.

        This field accepts only the specified formats. Timestamps can end with Z or ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:

        • YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z)

        • YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z)

        • YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59)

        • YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759)

        • YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59)

        Parameters:
        createTime - Indicates when the volume was created.

        This field accepts only the specified formats. Timestamps can end with Z or ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:

        • YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z)

        • YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z)

        • YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59)

        • YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759)

        • YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59)

        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

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

        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

        AwsEc2VolumeDetails.Builder status​(String 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

        AwsEc2VolumeDetails.Builder attachments​(AwsEc2VolumeAttachment... attachments)

        The volume attachments.

        Parameters:
        attachments - The volume attachments.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • 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.