#[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 ==
.