Struct aws_sdk_securityhub::types::builders::AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder
source · #[non_exhaustive]pub struct AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails
.
Implementations§
source§impl AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder
impl AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder
sourcepub fn delete_on_termination(self, input: bool) -> Self
pub fn delete_on_termination(self, input: bool) -> Self
Indicates whether the EBS volume is deleted on instance termination.
sourcepub fn set_delete_on_termination(self, input: Option<bool>) -> Self
pub fn set_delete_on_termination(self, input: Option<bool>) -> Self
Indicates whether the EBS volume is deleted on instance termination.
sourcepub fn get_delete_on_termination(&self) -> &Option<bool>
pub fn get_delete_on_termination(&self) -> &Option<bool>
Indicates whether the EBS volume is deleted on instance termination.
sourcepub fn encrypted(self, input: bool) -> Self
pub fn encrypted(self, input: bool) -> Self
Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support Amazon EBS encryption. If you're creating a volume from a snapshot, you can't specify an encryption value.
sourcepub fn set_encrypted(self, input: Option<bool>) -> Self
pub fn set_encrypted(self, input: Option<bool>) -> Self
Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support Amazon EBS encryption. If you're creating a volume from a snapshot, you can't specify an encryption value.
sourcepub fn get_encrypted(&self) -> &Option<bool>
pub fn get_encrypted(&self) -> &Option<bool>
Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support Amazon EBS encryption. If you're creating a volume from a snapshot, you can't specify an encryption value.
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).
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 symmetric Key Management Service (KMS) customer managed key used for encryption.
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 symmetric Key Management Service (KMS) customer managed key used for encryption.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the symmetric Key Management Service (KMS) customer managed key used for encryption.
sourcepub fn snapshot_id(self, input: impl Into<String>) -> Self
pub fn snapshot_id(self, input: impl Into<String>) -> Self
The ID of the EBS snapshot.
sourcepub fn set_snapshot_id(self, input: Option<String>) -> Self
pub fn set_snapshot_id(self, input: Option<String>) -> Self
The ID of the EBS snapshot.
sourcepub fn get_snapshot_id(&self) -> &Option<String>
pub fn get_snapshot_id(&self) -> &Option<String>
The ID of the EBS snapshot.
sourcepub fn throughput(self, input: i32) -> Self
pub fn throughput(self, input: i32) -> Self
The throughput to provision for a gp3 volume, with a maximum of 1,000 MiB/s.
sourcepub fn set_throughput(self, input: Option<i32>) -> Self
pub fn set_throughput(self, input: Option<i32>) -> Self
The throughput to provision for a gp3 volume, with a maximum of 1,000 MiB/s.
sourcepub fn get_throughput(&self) -> &Option<i32>
pub fn get_throughput(&self) -> &Option<i32>
The throughput to provision for a gp3 volume, with a maximum of 1,000 MiB/s.
sourcepub fn volume_size(self, input: i32) -> Self
pub fn volume_size(self, input: i32) -> Self
The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size.
sourcepub fn set_volume_size(self, input: Option<i32>) -> Self
pub fn set_volume_size(self, input: Option<i32>) -> Self
The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size.
sourcepub fn get_volume_size(&self) -> &Option<i32>
pub fn get_volume_size(&self) -> &Option<i32>
The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size.
sourcepub fn volume_type(self, input: impl Into<String>) -> Self
pub fn volume_type(self, input: impl Into<String>) -> Self
The volume type.
sourcepub fn set_volume_type(self, input: Option<String>) -> Self
pub fn set_volume_type(self, input: Option<String>) -> Self
The volume type.
sourcepub fn get_volume_type(&self) -> &Option<String>
pub fn get_volume_type(&self) -> &Option<String>
The volume type.
sourcepub fn build(self) -> AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails
pub fn build(self) -> AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails
Consumes the builder and constructs a AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails
.
Trait Implementations§
source§impl Clone for AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder
impl Clone for AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder
source§fn clone(
&self
) -> AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder
fn clone( &self ) -> AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder
impl Default for AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder
source§fn default() -> AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder
fn default() -> AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder
source§impl PartialEq for AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder
impl PartialEq for AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder
source§fn eq(
&self,
other: &AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder
) -> bool
fn eq( &self, other: &AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetailsBuilder ) -> bool
self
and other
values to be equal, and is used
by ==
.