Struct aws_sdk_ec2::model::volume::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Volume
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn attachments(self, input: VolumeAttachment) -> Self
pub fn attachments(self, input: VolumeAttachment) -> Self
Appends an item to attachments
.
To override the contents of this collection use set_attachments
.
Information about the volume attachments.
sourcepub fn set_attachments(self, input: Option<Vec<VolumeAttachment>>) -> Self
pub fn set_attachments(self, input: Option<Vec<VolumeAttachment>>) -> Self
Information about the volume attachments.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone for the volume.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone for the volume.
sourcepub fn create_time(self, input: DateTime) -> Self
pub fn create_time(self, input: DateTime) -> Self
The time stamp when volume creation was initiated.
sourcepub fn set_create_time(self, input: Option<DateTime>) -> Self
pub fn set_create_time(self, input: Option<DateTime>) -> Self
The time stamp when volume creation was initiated.
sourcepub fn set_encrypted(self, input: Option<bool>) -> Self
pub fn set_encrypted(self, input: Option<bool>) -> Self
Indicates whether the volume is encrypted.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
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.
sourcepub fn outpost_arn(self, input: impl Into<String>) -> Self
pub fn outpost_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Outpost.
sourcepub fn set_outpost_arn(self, input: Option<String>) -> Self
pub fn set_outpost_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Outpost.
sourcepub fn snapshot_id(self, input: impl Into<String>) -> Self
pub fn snapshot_id(self, input: impl Into<String>) -> Self
The snapshot from which the volume was created, if applicable.
sourcepub fn set_snapshot_id(self, input: Option<String>) -> Self
pub fn set_snapshot_id(self, input: Option<String>) -> Self
The snapshot from which the volume was created, if applicable.
sourcepub fn state(self, input: VolumeState) -> Self
pub fn state(self, input: VolumeState) -> Self
The volume state.
sourcepub fn set_state(self, input: Option<VolumeState>) -> Self
pub fn set_state(self, input: Option<VolumeState>) -> Self
The volume state.
sourcepub fn set_volume_id(self, input: Option<String>) -> Self
pub fn set_volume_id(self, input: Option<String>) -> Self
The ID of the volume.
sourcepub fn iops(self, input: i32) -> Self
pub fn iops(self, input: i32) -> Self
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.
sourcepub fn set_iops(self, input: Option<i32>) -> Self
pub fn set_iops(self, input: Option<i32>) -> Self
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.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Any tags assigned to the volume.
Any tags assigned to the volume.
sourcepub fn volume_type(self, input: VolumeType) -> Self
pub fn volume_type(self, input: VolumeType) -> Self
The volume type.
sourcepub fn set_volume_type(self, input: Option<VolumeType>) -> Self
pub fn set_volume_type(self, input: Option<VolumeType>) -> Self
The volume type.
sourcepub fn fast_restored(self, input: bool) -> Self
pub fn fast_restored(self, input: bool) -> Self
Indicates whether the volume was created using fast snapshot restore.
sourcepub fn set_fast_restored(self, input: Option<bool>) -> Self
pub fn set_fast_restored(self, input: Option<bool>) -> Self
Indicates whether the volume was created using fast snapshot restore.
sourcepub fn multi_attach_enabled(self, input: bool) -> Self
pub fn multi_attach_enabled(self, input: bool) -> Self
Indicates whether Amazon EBS Multi-Attach is enabled.
sourcepub fn set_multi_attach_enabled(self, input: Option<bool>) -> Self
pub fn set_multi_attach_enabled(self, input: Option<bool>) -> Self
Indicates whether Amazon EBS Multi-Attach is enabled.
sourcepub fn throughput(self, input: i32) -> Self
pub fn throughput(self, input: i32) -> Self
The throughput that the volume supports, in MiB/s.
sourcepub fn set_throughput(self, input: Option<i32>) -> Self
pub fn set_throughput(self, input: Option<i32>) -> Self
The throughput that the volume supports, in MiB/s.