#[non_exhaustive]pub struct VolumeConfigurationBuilder { /* private fields */ }
Expand description
A builder for VolumeConfiguration
.
Implementations§
source§impl VolumeConfigurationBuilder
impl VolumeConfigurationBuilder
sourcepub fn volume_type(self, input: impl Into<String>) -> Self
pub fn volume_type(self, input: impl Into<String>) -> Self
The volume type.
This can be gp2
for General Purpose SSD, io1
or io2
for Provisioned IOPS SSD, st1
for Throughput Optimized HDD, sc1
for Cold HDD, or standard
for Magnetic volumes.
sourcepub fn set_volume_type(self, input: Option<String>) -> Self
pub fn set_volume_type(self, input: Option<String>) -> Self
The volume type.
This can be gp2
for General Purpose SSD, io1
or io2
for Provisioned IOPS SSD, st1
for Throughput Optimized HDD, sc1
for Cold HDD, or standard
for Magnetic volumes.
sourcepub fn get_volume_type(&self) -> &Option<String>
pub fn get_volume_type(&self) -> &Option<String>
The volume type.
This can be gp2
for General Purpose SSD, io1
or io2
for Provisioned IOPS SSD, st1
for Throughput Optimized HDD, sc1
for Cold HDD, or standard
for Magnetic volumes.
sourcepub fn volume_size(self, input: i32) -> Self
pub fn volume_size(self, input: i32) -> Self
The size of the volume, in GiB.
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.
sourcepub fn get_volume_size(&self) -> &Option<i32>
pub fn get_volume_size(&self) -> &Option<i32>
The size of the volume, in GiB.
sourcepub fn volume_baseline_iops(self, input: i32) -> Self
pub fn volume_baseline_iops(self, input: i32) -> Self
The baseline IOPS of the volume.
sourcepub fn set_volume_baseline_iops(self, input: Option<i32>) -> Self
pub fn set_volume_baseline_iops(self, input: Option<i32>) -> Self
The baseline IOPS of the volume.
sourcepub fn get_volume_baseline_iops(&self) -> &Option<i32>
pub fn get_volume_baseline_iops(&self) -> &Option<i32>
The baseline IOPS of the volume.
sourcepub fn volume_burst_iops(self, input: i32) -> Self
pub fn volume_burst_iops(self, input: i32) -> Self
The burst IOPS of the volume.
sourcepub fn set_volume_burst_iops(self, input: Option<i32>) -> Self
pub fn set_volume_burst_iops(self, input: Option<i32>) -> Self
The burst IOPS of the volume.
sourcepub fn get_volume_burst_iops(&self) -> &Option<i32>
pub fn get_volume_burst_iops(&self) -> &Option<i32>
The burst IOPS of the volume.
sourcepub fn volume_baseline_throughput(self, input: i32) -> Self
pub fn volume_baseline_throughput(self, input: i32) -> Self
The baseline throughput of the volume.
sourcepub fn set_volume_baseline_throughput(self, input: Option<i32>) -> Self
pub fn set_volume_baseline_throughput(self, input: Option<i32>) -> Self
The baseline throughput of the volume.
sourcepub fn get_volume_baseline_throughput(&self) -> &Option<i32>
pub fn get_volume_baseline_throughput(&self) -> &Option<i32>
The baseline throughput of the volume.
sourcepub fn volume_burst_throughput(self, input: i32) -> Self
pub fn volume_burst_throughput(self, input: i32) -> Self
The burst throughput of the volume.
sourcepub fn set_volume_burst_throughput(self, input: Option<i32>) -> Self
pub fn set_volume_burst_throughput(self, input: Option<i32>) -> Self
The burst throughput of the volume.
sourcepub fn get_volume_burst_throughput(&self) -> &Option<i32>
pub fn get_volume_burst_throughput(&self) -> &Option<i32>
The burst throughput of the volume.
sourcepub fn root_volume(self, input: bool) -> Self
pub fn root_volume(self, input: bool) -> Self
Contains the image used to boot the instance during launch.
sourcepub fn set_root_volume(self, input: Option<bool>) -> Self
pub fn set_root_volume(self, input: Option<bool>) -> Self
Contains the image used to boot the instance during launch.
sourcepub fn get_root_volume(&self) -> &Option<bool>
pub fn get_root_volume(&self) -> &Option<bool>
Contains the image used to boot the instance during launch.
sourcepub fn build(self) -> VolumeConfiguration
pub fn build(self) -> VolumeConfiguration
Consumes the builder and constructs a VolumeConfiguration
.
Trait Implementations§
source§impl Clone for VolumeConfigurationBuilder
impl Clone for VolumeConfigurationBuilder
source§fn clone(&self) -> VolumeConfigurationBuilder
fn clone(&self) -> VolumeConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VolumeConfigurationBuilder
impl Debug for VolumeConfigurationBuilder
source§impl Default for VolumeConfigurationBuilder
impl Default for VolumeConfigurationBuilder
source§fn default() -> VolumeConfigurationBuilder
fn default() -> VolumeConfigurationBuilder
impl StructuralPartialEq for VolumeConfigurationBuilder
Auto Trait Implementations§
impl Freeze for VolumeConfigurationBuilder
impl RefUnwindSafe for VolumeConfigurationBuilder
impl Send for VolumeConfigurationBuilder
impl Sync for VolumeConfigurationBuilder
impl Unpin for VolumeConfigurationBuilder
impl UnwindSafe for VolumeConfigurationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more