#[non_exhaustive]pub struct LaunchTemplateSpecificationBuilder { /* private fields */ }
Expand description
A builder for LaunchTemplateSpecification
.
Implementations§
source§impl LaunchTemplateSpecificationBuilder
impl LaunchTemplateSpecificationBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the launch template.
You must specify either the launch template name or the launch template ID in the request, but not both.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the launch template.
You must specify either the launch template name or the launch template ID in the request, but not both.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the launch template.
You must specify either the launch template name or the launch template ID in the request, but not both.
sourcepub fn version(self, input: impl Into<String>) -> Self
pub fn version(self, input: impl Into<String>) -> Self
The version number of the launch template to use. If no version is specified, then the template's default version is used.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version number of the launch template to use. If no version is specified, then the template's default version is used.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The version number of the launch template to use. If no version is specified, then the template's default version is used.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the launch template.
You must specify either the launch template ID or the launch template name in the request, but not both.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID of the launch template.
You must specify either the launch template ID or the launch template name in the request, but not both.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The ID of the launch template.
You must specify either the launch template ID or the launch template name in the request, but not both.
sourcepub fn build(self) -> LaunchTemplateSpecification
pub fn build(self) -> LaunchTemplateSpecification
Consumes the builder and constructs a LaunchTemplateSpecification
.
Trait Implementations§
source§impl Clone for LaunchTemplateSpecificationBuilder
impl Clone for LaunchTemplateSpecificationBuilder
source§fn clone(&self) -> LaunchTemplateSpecificationBuilder
fn clone(&self) -> LaunchTemplateSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for LaunchTemplateSpecificationBuilder
impl Default for LaunchTemplateSpecificationBuilder
source§fn default() -> LaunchTemplateSpecificationBuilder
fn default() -> LaunchTemplateSpecificationBuilder
source§impl PartialEq for LaunchTemplateSpecificationBuilder
impl PartialEq for LaunchTemplateSpecificationBuilder
source§fn eq(&self, other: &LaunchTemplateSpecificationBuilder) -> bool
fn eq(&self, other: &LaunchTemplateSpecificationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LaunchTemplateSpecificationBuilder
Auto Trait Implementations§
impl Freeze for LaunchTemplateSpecificationBuilder
impl RefUnwindSafe for LaunchTemplateSpecificationBuilder
impl Send for LaunchTemplateSpecificationBuilder
impl Sync for LaunchTemplateSpecificationBuilder
impl Unpin for LaunchTemplateSpecificationBuilder
impl UnwindSafe for LaunchTemplateSpecificationBuilder
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