#[non_exhaustive]pub struct LaunchTemplateSpecificationBuilder { /* private fields */ }
Expand description
A builder for LaunchTemplateSpecification
.
Implementations§
source§impl LaunchTemplateSpecificationBuilder
impl LaunchTemplateSpecificationBuilder
sourcepub fn launch_template_id(self, input: impl Into<String>) -> Self
pub fn launch_template_id(self, input: impl Into<String>) -> Self
The ID of the launch template.
You must specify the LaunchTemplateId
or the LaunchTemplateName
, but not both.
sourcepub fn set_launch_template_id(self, input: Option<String>) -> Self
pub fn set_launch_template_id(self, input: Option<String>) -> Self
The ID of the launch template.
You must specify the LaunchTemplateId
or the LaunchTemplateName
, but not both.
sourcepub fn get_launch_template_id(&self) -> &Option<String>
pub fn get_launch_template_id(&self) -> &Option<String>
The ID of the launch template.
You must specify the LaunchTemplateId
or the LaunchTemplateName
, but not both.
sourcepub fn launch_template_name(self, input: impl Into<String>) -> Self
pub fn launch_template_name(self, input: impl Into<String>) -> Self
The name of the launch template.
You must specify the LaunchTemplateName
or the LaunchTemplateId
, but not both.
sourcepub fn set_launch_template_name(self, input: Option<String>) -> Self
pub fn set_launch_template_name(self, input: Option<String>) -> Self
The name of the launch template.
You must specify the LaunchTemplateName
or the LaunchTemplateId
, but not both.
sourcepub fn get_launch_template_name(&self) -> &Option<String>
pub fn get_launch_template_name(&self) -> &Option<String>
The name of the launch template.
You must specify the LaunchTemplateName
or the LaunchTemplateId
, but not both.
sourcepub fn version(self, input: impl Into<String>) -> Self
pub fn version(self, input: impl Into<String>) -> Self
The launch template version number, $Latest
, or $Default
.
If the value is $Latest
, Amazon EC2 uses the latest version of the launch template.
If the value is $Default
, Amazon EC2 uses the default version of the launch template.
Default: The default version of the launch template.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The launch template version number, $Latest
, or $Default
.
If the value is $Latest
, Amazon EC2 uses the latest version of the launch template.
If the value is $Default
, Amazon EC2 uses the default version of the launch template.
Default: The default version of the launch template.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The launch template version number, $Latest
, or $Default
.
If the value is $Latest
, Amazon EC2 uses the latest version of the launch template.
If the value is $Default
, Amazon EC2 uses the default version of the launch template.
Default: The default version of the launch template.
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<LaunchTemplateSpecificationBuilder> for LaunchTemplateSpecificationBuilder
impl PartialEq<LaunchTemplateSpecificationBuilder> 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 ==
.