#[non_exhaustive]pub struct InstanceConfigurationBuilder { /* private fields */ }
Expand description
A builder for InstanceConfiguration
.
Implementations§
source§impl InstanceConfigurationBuilder
impl InstanceConfigurationBuilder
sourcepub fn image(self, input: impl Into<String>) -> Self
pub fn image(self, input: impl Into<String>) -> Self
The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
sourcepub fn set_image(self, input: Option<String>) -> Self
pub fn set_image(self, input: Option<String>) -> Self
The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
sourcepub fn get_image(&self) -> &Option<String>
pub fn get_image(&self) -> &Option<String>
The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
sourcepub fn block_device_mappings(self, input: InstanceBlockDeviceMapping) -> Self
pub fn block_device_mappings(self, input: InstanceBlockDeviceMapping) -> Self
Appends an item to block_device_mappings
.
To override the contents of this collection use set_block_device_mappings
.
Defines the block devices to attach for building an instance from this Image Builder AMI.
sourcepub fn set_block_device_mappings(
self,
input: Option<Vec<InstanceBlockDeviceMapping>>
) -> Self
pub fn set_block_device_mappings( self, input: Option<Vec<InstanceBlockDeviceMapping>> ) -> Self
Defines the block devices to attach for building an instance from this Image Builder AMI.
sourcepub fn get_block_device_mappings(
&self
) -> &Option<Vec<InstanceBlockDeviceMapping>>
pub fn get_block_device_mappings( &self ) -> &Option<Vec<InstanceBlockDeviceMapping>>
Defines the block devices to attach for building an instance from this Image Builder AMI.
sourcepub fn build(self) -> InstanceConfiguration
pub fn build(self) -> InstanceConfiguration
Consumes the builder and constructs a InstanceConfiguration
.
Trait Implementations§
source§impl Clone for InstanceConfigurationBuilder
impl Clone for InstanceConfigurationBuilder
source§fn clone(&self) -> InstanceConfigurationBuilder
fn clone(&self) -> InstanceConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceConfigurationBuilder
impl Debug for InstanceConfigurationBuilder
source§impl Default for InstanceConfigurationBuilder
impl Default for InstanceConfigurationBuilder
source§fn default() -> InstanceConfigurationBuilder
fn default() -> InstanceConfigurationBuilder
source§impl PartialEq for InstanceConfigurationBuilder
impl PartialEq for InstanceConfigurationBuilder
source§fn eq(&self, other: &InstanceConfigurationBuilder) -> bool
fn eq(&self, other: &InstanceConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceConfigurationBuilder
Auto Trait Implementations§
impl Freeze for InstanceConfigurationBuilder
impl RefUnwindSafe for InstanceConfigurationBuilder
impl Send for InstanceConfigurationBuilder
impl Sync for InstanceConfigurationBuilder
impl Unpin for InstanceConfigurationBuilder
impl UnwindSafe for InstanceConfigurationBuilder
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> 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