Struct aws_sdk_ec2::types::builders::ScheduledInstancesEbsBuilder
source · #[non_exhaustive]pub struct ScheduledInstancesEbsBuilder { /* private fields */ }
Expand description
A builder for ScheduledInstancesEbs
.
Implementations§
source§impl ScheduledInstancesEbsBuilder
impl ScheduledInstancesEbsBuilder
sourcepub fn delete_on_termination(self, input: bool) -> Self
pub fn delete_on_termination(self, input: bool) -> Self
Indicates whether the 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 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 volume is deleted on instance termination.
sourcepub fn encrypted(self, input: bool) -> Self
pub fn encrypted(self, input: bool) -> Self
Indicates whether the volume is encrypted. You can attached encrypted volumes only to instances that support them.
sourcepub fn set_encrypted(self, input: Option<bool>) -> Self
pub fn set_encrypted(self, input: Option<bool>) -> Self
Indicates whether the volume is encrypted. You can attached encrypted volumes only to instances that support them.
sourcepub fn get_encrypted(&self) -> &Option<bool>
pub fn get_encrypted(&self) -> &Option<bool>
Indicates whether the volume is encrypted. You can attached encrypted volumes only to instances that support them.
sourcepub fn iops(self, input: i32) -> Self
pub fn iops(self, input: i32) -> Self
The number of I/O operations per second (IOPS) to provision for a gp3
, io1
, or io2
volume.
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) to provision for a gp3
, io1
, or io2
volume.
sourcepub fn get_iops(&self) -> &Option<i32>
pub fn get_iops(&self) -> &Option<i32>
The number of I/O operations per second (IOPS) to provision for a gp3
, io1
, or io2
volume.
sourcepub fn snapshot_id(self, input: impl Into<String>) -> Self
pub fn snapshot_id(self, input: impl Into<String>) -> Self
The ID of the 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 snapshot.
sourcepub fn get_snapshot_id(&self) -> &Option<String>
pub fn get_snapshot_id(&self) -> &Option<String>
The ID of the snapshot.
sourcepub fn volume_size(self, input: i32) -> Self
pub fn volume_size(self, input: i32) -> Self
The size of the volume, in GiB.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot 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 GiB.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
sourcepub fn get_volume_size(&self) -> &Option<i32>
pub fn get_volume_size(&self) -> &Option<i32>
The size of the volume, in GiB.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
sourcepub fn volume_type(self, input: impl Into<String>) -> Self
pub fn volume_type(self, input: impl Into<String>) -> Self
The volume type.
Default: gp2
sourcepub fn set_volume_type(self, input: Option<String>) -> Self
pub fn set_volume_type(self, input: Option<String>) -> Self
The volume type.
Default: gp2
sourcepub fn get_volume_type(&self) -> &Option<String>
pub fn get_volume_type(&self) -> &Option<String>
The volume type.
Default: gp2
sourcepub fn build(self) -> ScheduledInstancesEbs
pub fn build(self) -> ScheduledInstancesEbs
Consumes the builder and constructs a ScheduledInstancesEbs
.
Trait Implementations§
source§impl Clone for ScheduledInstancesEbsBuilder
impl Clone for ScheduledInstancesEbsBuilder
source§fn clone(&self) -> ScheduledInstancesEbsBuilder
fn clone(&self) -> ScheduledInstancesEbsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScheduledInstancesEbsBuilder
impl Debug for ScheduledInstancesEbsBuilder
source§impl Default for ScheduledInstancesEbsBuilder
impl Default for ScheduledInstancesEbsBuilder
source§fn default() -> ScheduledInstancesEbsBuilder
fn default() -> ScheduledInstancesEbsBuilder
source§impl PartialEq for ScheduledInstancesEbsBuilder
impl PartialEq for ScheduledInstancesEbsBuilder
source§fn eq(&self, other: &ScheduledInstancesEbsBuilder) -> bool
fn eq(&self, other: &ScheduledInstancesEbsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.