#[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
source§impl PartialEq for VolumeConfigurationBuilder
impl PartialEq for VolumeConfigurationBuilder
source§fn eq(&self, other: &VolumeConfigurationBuilder) -> bool
fn eq(&self, other: &VolumeConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.