Struct aws_sdk_lightsail::operation::create_cloud_formation_stack::builders::CreateCloudFormationStackInputBuilder
source · #[non_exhaustive]pub struct CreateCloudFormationStackInputBuilder { /* private fields */ }
Expand description
A builder for CreateCloudFormationStackInput
.
Implementations§
source§impl CreateCloudFormationStackInputBuilder
impl CreateCloudFormationStackInputBuilder
sourcepub fn instances(self, input: InstanceEntry) -> Self
pub fn instances(self, input: InstanceEntry) -> Self
Appends an item to instances
.
To override the contents of this collection use set_instances
.
An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.
sourcepub fn set_instances(self, input: Option<Vec<InstanceEntry>>) -> Self
pub fn set_instances(self, input: Option<Vec<InstanceEntry>>) -> Self
An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.
sourcepub fn get_instances(&self) -> &Option<Vec<InstanceEntry>>
pub fn get_instances(&self) -> &Option<Vec<InstanceEntry>>
An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.
sourcepub fn build(self) -> Result<CreateCloudFormationStackInput, BuildError>
pub fn build(self) -> Result<CreateCloudFormationStackInput, BuildError>
Consumes the builder and constructs a CreateCloudFormationStackInput
.
source§impl CreateCloudFormationStackInputBuilder
impl CreateCloudFormationStackInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateCloudFormationStackOutput, SdkError<CreateCloudFormationStackError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateCloudFormationStackOutput, SdkError<CreateCloudFormationStackError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateCloudFormationStackInputBuilder
impl Clone for CreateCloudFormationStackInputBuilder
source§fn clone(&self) -> CreateCloudFormationStackInputBuilder
fn clone(&self) -> CreateCloudFormationStackInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateCloudFormationStackInputBuilder
impl Default for CreateCloudFormationStackInputBuilder
source§fn default() -> CreateCloudFormationStackInputBuilder
fn default() -> CreateCloudFormationStackInputBuilder
source§impl PartialEq for CreateCloudFormationStackInputBuilder
impl PartialEq for CreateCloudFormationStackInputBuilder
source§fn eq(&self, other: &CreateCloudFormationStackInputBuilder) -> bool
fn eq(&self, other: &CreateCloudFormationStackInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateCloudFormationStackInputBuilder
Auto Trait Implementations§
impl Freeze for CreateCloudFormationStackInputBuilder
impl RefUnwindSafe for CreateCloudFormationStackInputBuilder
impl Send for CreateCloudFormationStackInputBuilder
impl Sync for CreateCloudFormationStackInputBuilder
impl Unpin for CreateCloudFormationStackInputBuilder
impl UnwindSafe for CreateCloudFormationStackInputBuilder
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