#[non_exhaustive]pub struct FleetLaunchTemplateSpecificationBuilder { /* private fields */ }Expand description
A builder for FleetLaunchTemplateSpecification.
Implementations§
source§impl FleetLaunchTemplateSpecificationBuilder
impl FleetLaunchTemplateSpecificationBuilder
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. You must specify a value, otherwise the request fails.
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.
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. You must specify a value, otherwise the request fails.
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.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The launch template version number, $Latest, or $Default. You must specify a value, otherwise the request fails.
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.
sourcepub fn build(self) -> FleetLaunchTemplateSpecification
pub fn build(self) -> FleetLaunchTemplateSpecification
Consumes the builder and constructs a FleetLaunchTemplateSpecification.
Trait Implementations§
source§impl Clone for FleetLaunchTemplateSpecificationBuilder
impl Clone for FleetLaunchTemplateSpecificationBuilder
source§fn clone(&self) -> FleetLaunchTemplateSpecificationBuilder
fn clone(&self) -> FleetLaunchTemplateSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for FleetLaunchTemplateSpecificationBuilder
impl Default for FleetLaunchTemplateSpecificationBuilder
source§fn default() -> FleetLaunchTemplateSpecificationBuilder
fn default() -> FleetLaunchTemplateSpecificationBuilder
source§impl PartialEq for FleetLaunchTemplateSpecificationBuilder
impl PartialEq for FleetLaunchTemplateSpecificationBuilder
source§fn eq(&self, other: &FleetLaunchTemplateSpecificationBuilder) -> bool
fn eq(&self, other: &FleetLaunchTemplateSpecificationBuilder) -> bool
self and other values to be equal, and is used
by ==.