Struct aws_sdk_ec2::operation::delete_launch_template_versions::builders::DeleteLaunchTemplateVersionsInputBuilder
source · #[non_exhaustive]pub struct DeleteLaunchTemplateVersionsInputBuilder { /* private fields */ }
Expand description
A builder for DeleteLaunchTemplateVersionsInput
.
Implementations§
source§impl DeleteLaunchTemplateVersionsInputBuilder
impl DeleteLaunchTemplateVersionsInputBuilder
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 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 versions(self, input: impl Into<String>) -> Self
pub fn versions(self, input: impl Into<String>) -> Self
Appends an item to versions
.
To override the contents of this collection use set_versions
.
The version numbers of one or more launch template versions to delete.
sourcepub fn set_versions(self, input: Option<Vec<String>>) -> Self
pub fn set_versions(self, input: Option<Vec<String>>) -> Self
The version numbers of one or more launch template versions to delete.
sourcepub fn get_versions(&self) -> &Option<Vec<String>>
pub fn get_versions(&self) -> &Option<Vec<String>>
The version numbers of one or more launch template versions to delete.
sourcepub fn build(self) -> Result<DeleteLaunchTemplateVersionsInput, BuildError>
pub fn build(self) -> Result<DeleteLaunchTemplateVersionsInput, BuildError>
Consumes the builder and constructs a DeleteLaunchTemplateVersionsInput
.
source§impl DeleteLaunchTemplateVersionsInputBuilder
impl DeleteLaunchTemplateVersionsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DeleteLaunchTemplateVersionsOutput, SdkError<DeleteLaunchTemplateVersionsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DeleteLaunchTemplateVersionsOutput, SdkError<DeleteLaunchTemplateVersionsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DeleteLaunchTemplateVersionsInputBuilder
impl Clone for DeleteLaunchTemplateVersionsInputBuilder
source§fn clone(&self) -> DeleteLaunchTemplateVersionsInputBuilder
fn clone(&self) -> DeleteLaunchTemplateVersionsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DeleteLaunchTemplateVersionsInputBuilder
impl Default for DeleteLaunchTemplateVersionsInputBuilder
source§fn default() -> DeleteLaunchTemplateVersionsInputBuilder
fn default() -> DeleteLaunchTemplateVersionsInputBuilder
source§impl PartialEq<DeleteLaunchTemplateVersionsInputBuilder> for DeleteLaunchTemplateVersionsInputBuilder
impl PartialEq<DeleteLaunchTemplateVersionsInputBuilder> for DeleteLaunchTemplateVersionsInputBuilder
source§fn eq(&self, other: &DeleteLaunchTemplateVersionsInputBuilder) -> bool
fn eq(&self, other: &DeleteLaunchTemplateVersionsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.