aws-sdk-batch 1.119.0

AWS SDK for AWS Batch
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteConsumableResourceInput {
    /// <p>The name or ARN of the consumable resource that will be deleted.</p>
    pub consumable_resource: ::std::option::Option<::std::string::String>,
}
impl DeleteConsumableResourceInput {
    /// <p>The name or ARN of the consumable resource that will be deleted.</p>
    pub fn consumable_resource(&self) -> ::std::option::Option<&str> {
        self.consumable_resource.as_deref()
    }
}
impl DeleteConsumableResourceInput {
    /// Creates a new builder-style object to manufacture [`DeleteConsumableResourceInput`](crate::operation::delete_consumable_resource::DeleteConsumableResourceInput).
    pub fn builder() -> crate::operation::delete_consumable_resource::builders::DeleteConsumableResourceInputBuilder {
        crate::operation::delete_consumable_resource::builders::DeleteConsumableResourceInputBuilder::default()
    }
}

/// A builder for [`DeleteConsumableResourceInput`](crate::operation::delete_consumable_resource::DeleteConsumableResourceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteConsumableResourceInputBuilder {
    pub(crate) consumable_resource: ::std::option::Option<::std::string::String>,
}
impl DeleteConsumableResourceInputBuilder {
    /// <p>The name or ARN of the consumable resource that will be deleted.</p>
    /// This field is required.
    pub fn consumable_resource(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.consumable_resource = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name or ARN of the consumable resource that will be deleted.</p>
    pub fn set_consumable_resource(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.consumable_resource = input;
        self
    }
    /// <p>The name or ARN of the consumable resource that will be deleted.</p>
    pub fn get_consumable_resource(&self) -> &::std::option::Option<::std::string::String> {
        &self.consumable_resource
    }
    /// Consumes the builder and constructs a [`DeleteConsumableResourceInput`](crate::operation::delete_consumable_resource::DeleteConsumableResourceInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_consumable_resource::DeleteConsumableResourceInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_consumable_resource::DeleteConsumableResourceInput {
            consumable_resource: self.consumable_resource,
        })
    }
}