Struct aws_sdk_ec2::model::launch_template_specification::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for LaunchTemplateSpecification.
Implementations§
source§impl Builder
impl Builder
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 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 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 build(self) -> LaunchTemplateSpecification
pub fn build(self) -> LaunchTemplateSpecification
Consumes the builder and constructs a LaunchTemplateSpecification.