Struct aws_sdk_ec2::operation::modify_launch_template::builders::ModifyLaunchTemplateInputBuilder
source · #[non_exhaustive]pub struct ModifyLaunchTemplateInputBuilder { /* private fields */ }
Expand description
A builder for ModifyLaunchTemplateInput
.
Implementations§
source§impl ModifyLaunchTemplateInputBuilder
impl ModifyLaunchTemplateInputBuilder
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraint: Maximum 128 ASCII characters.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraint: Maximum 128 ASCII characters.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraint: Maximum 128 ASCII characters.
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 either 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 either 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 either 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 either 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 either 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 either the LaunchTemplateName
or the LaunchTemplateId
, but not both.
sourcepub fn default_version(self, input: impl Into<String>) -> Self
pub fn default_version(self, input: impl Into<String>) -> Self
The version number of the launch template to set as the default version.
sourcepub fn set_default_version(self, input: Option<String>) -> Self
pub fn set_default_version(self, input: Option<String>) -> Self
The version number of the launch template to set as the default version.
sourcepub fn get_default_version(&self) -> &Option<String>
pub fn get_default_version(&self) -> &Option<String>
The version number of the launch template to set as the default version.
sourcepub fn build(self) -> Result<ModifyLaunchTemplateInput, BuildError>
pub fn build(self) -> Result<ModifyLaunchTemplateInput, BuildError>
Consumes the builder and constructs a ModifyLaunchTemplateInput
.
source§impl ModifyLaunchTemplateInputBuilder
impl ModifyLaunchTemplateInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ModifyLaunchTemplateOutput, SdkError<ModifyLaunchTemplateError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ModifyLaunchTemplateOutput, SdkError<ModifyLaunchTemplateError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifyLaunchTemplateInputBuilder
impl Clone for ModifyLaunchTemplateInputBuilder
source§fn clone(&self) -> ModifyLaunchTemplateInputBuilder
fn clone(&self) -> ModifyLaunchTemplateInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ModifyLaunchTemplateInputBuilder
impl Default for ModifyLaunchTemplateInputBuilder
source§fn default() -> ModifyLaunchTemplateInputBuilder
fn default() -> ModifyLaunchTemplateInputBuilder
source§impl PartialEq<ModifyLaunchTemplateInputBuilder> for ModifyLaunchTemplateInputBuilder
impl PartialEq<ModifyLaunchTemplateInputBuilder> for ModifyLaunchTemplateInputBuilder
source§fn eq(&self, other: &ModifyLaunchTemplateInputBuilder) -> bool
fn eq(&self, other: &ModifyLaunchTemplateInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.