#[non_exhaustive]pub struct LaunchTemplateConfigurationBuilder { /* private fields */ }
Expand description
A builder for LaunchTemplateConfiguration
.
Implementations§
source§impl LaunchTemplateConfigurationBuilder
impl LaunchTemplateConfigurationBuilder
sourcepub fn launch_template_id(self, input: impl Into<String>) -> Self
pub fn launch_template_id(self, input: impl Into<String>) -> Self
Identifies the Amazon EC2 launch template to use.
This field is required.sourcepub fn set_launch_template_id(self, input: Option<String>) -> Self
pub fn set_launch_template_id(self, input: Option<String>) -> Self
Identifies the Amazon EC2 launch template to use.
sourcepub fn get_launch_template_id(&self) -> &Option<String>
pub fn get_launch_template_id(&self) -> &Option<String>
Identifies the Amazon EC2 launch template to use.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The account ID that this configuration applies to.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The account ID that this configuration applies to.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The account ID that this configuration applies to.
sourcepub fn set_default_version(self, input: bool) -> Self
pub fn set_default_version(self, input: bool) -> Self
Set the specified Amazon EC2 launch template as the default launch template for the specified account.
sourcepub fn set_set_default_version(self, input: Option<bool>) -> Self
pub fn set_set_default_version(self, input: Option<bool>) -> Self
Set the specified Amazon EC2 launch template as the default launch template for the specified account.
sourcepub fn get_set_default_version(&self) -> &Option<bool>
pub fn get_set_default_version(&self) -> &Option<bool>
Set the specified Amazon EC2 launch template as the default launch template for the specified account.
sourcepub fn build(self) -> Result<LaunchTemplateConfiguration, BuildError>
pub fn build(self) -> Result<LaunchTemplateConfiguration, BuildError>
Consumes the builder and constructs a LaunchTemplateConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LaunchTemplateConfigurationBuilder
impl Clone for LaunchTemplateConfigurationBuilder
source§fn clone(&self) -> LaunchTemplateConfigurationBuilder
fn clone(&self) -> LaunchTemplateConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for LaunchTemplateConfigurationBuilder
impl Default for LaunchTemplateConfigurationBuilder
source§fn default() -> LaunchTemplateConfigurationBuilder
fn default() -> LaunchTemplateConfigurationBuilder
source§impl PartialEq for LaunchTemplateConfigurationBuilder
impl PartialEq for LaunchTemplateConfigurationBuilder
source§fn eq(&self, other: &LaunchTemplateConfigurationBuilder) -> bool
fn eq(&self, other: &LaunchTemplateConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LaunchTemplateConfigurationBuilder
Auto Trait Implementations§
impl Freeze for LaunchTemplateConfigurationBuilder
impl RefUnwindSafe for LaunchTemplateConfigurationBuilder
impl Send for LaunchTemplateConfigurationBuilder
impl Sync for LaunchTemplateConfigurationBuilder
impl Unpin for LaunchTemplateConfigurationBuilder
impl UnwindSafe for LaunchTemplateConfigurationBuilder
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