aws-sdk-batch 1.124.0

AWS SDK for AWS Batch
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Contains the parameters for <code>DeleteJobQueue</code>.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteJobQueueInput {
    /// <p>The short name or full Amazon Resource Name (ARN) of the queue to delete.</p>
    pub job_queue: ::std::option::Option<::std::string::String>,
}
impl DeleteJobQueueInput {
    /// <p>The short name or full Amazon Resource Name (ARN) of the queue to delete.</p>
    pub fn job_queue(&self) -> ::std::option::Option<&str> {
        self.job_queue.as_deref()
    }
}
impl DeleteJobQueueInput {
    /// Creates a new builder-style object to manufacture [`DeleteJobQueueInput`](crate::operation::delete_job_queue::DeleteJobQueueInput).
    pub fn builder() -> crate::operation::delete_job_queue::builders::DeleteJobQueueInputBuilder {
        crate::operation::delete_job_queue::builders::DeleteJobQueueInputBuilder::default()
    }
}

/// A builder for [`DeleteJobQueueInput`](crate::operation::delete_job_queue::DeleteJobQueueInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteJobQueueInputBuilder {
    pub(crate) job_queue: ::std::option::Option<::std::string::String>,
}
impl DeleteJobQueueInputBuilder {
    /// <p>The short name or full Amazon Resource Name (ARN) of the queue to delete.</p>
    /// This field is required.
    pub fn job_queue(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.job_queue = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The short name or full Amazon Resource Name (ARN) of the queue to delete.</p>
    pub fn set_job_queue(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.job_queue = input;
        self
    }
    /// <p>The short name or full Amazon Resource Name (ARN) of the queue to delete.</p>
    pub fn get_job_queue(&self) -> &::std::option::Option<::std::string::String> {
        &self.job_queue
    }
    /// Consumes the builder and constructs a [`DeleteJobQueueInput`](crate::operation::delete_job_queue::DeleteJobQueueInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_job_queue::DeleteJobQueueInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_job_queue::DeleteJobQueueInput { job_queue: self.job_queue })
    }
}