#[non_exhaustive]pub struct LaunchTemplateConfigurationBuilder { /* private fields */ }
Expand description
A builder for LaunchTemplateConfiguration
.
Implementations§
source§impl LaunchTemplateConfigurationBuilder
impl LaunchTemplateConfigurationBuilder
sourcepub fn launch_template_id(self, input: impl Into<String>) -> Self
pub fn launch_template_id(self, input: impl Into<String>) -> Self
Identifies the Amazon EC2 launch template to use.
This field is required.sourcepub fn set_launch_template_id(self, input: Option<String>) -> Self
pub fn set_launch_template_id(self, input: Option<String>) -> Self
Identifies the Amazon EC2 launch template to use.
sourcepub fn get_launch_template_id(&self) -> &Option<String>
pub fn get_launch_template_id(&self) -> &Option<String>
Identifies the Amazon EC2 launch template to use.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The account ID that this configuration applies to.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The account ID that this configuration applies to.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The account ID that this configuration applies to.
sourcepub fn set_default_version(self, input: bool) -> Self
pub fn set_default_version(self, input: bool) -> Self
Set the specified Amazon EC2 launch template as the default launch template for the specified account.
sourcepub fn set_set_default_version(self, input: Option<bool>) -> Self
pub fn set_set_default_version(self, input: Option<bool>) -> Self
Set the specified Amazon EC2 launch template as the default launch template for the specified account.
sourcepub fn get_set_default_version(&self) -> &Option<bool>
pub fn get_set_default_version(&self) -> &Option<bool>
Set the specified Amazon EC2 launch template as the default launch template for the specified account.
sourcepub fn build(self) -> Result<LaunchTemplateConfiguration, BuildError>
pub fn build(self) -> Result<LaunchTemplateConfiguration, BuildError>
Consumes the builder and constructs a LaunchTemplateConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LaunchTemplateConfigurationBuilder
impl Clone for LaunchTemplateConfigurationBuilder
source§fn clone(&self) -> LaunchTemplateConfigurationBuilder
fn clone(&self) -> LaunchTemplateConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for LaunchTemplateConfigurationBuilder
impl Default for LaunchTemplateConfigurationBuilder
source§fn default() -> LaunchTemplateConfigurationBuilder
fn default() -> LaunchTemplateConfigurationBuilder
source§impl PartialEq for LaunchTemplateConfigurationBuilder
impl PartialEq for LaunchTemplateConfigurationBuilder
source§fn eq(&self, other: &LaunchTemplateConfigurationBuilder) -> bool
fn eq(&self, other: &LaunchTemplateConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.