aws-sdk-pcs 1.70.1

AWS SDK for AWS Parallel Computing Service
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 GetQueueInput {
    /// <p>The name or ID of the cluster of the queue.</p>
    pub cluster_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The name or ID of the queue.</p>
    pub queue_identifier: ::std::option::Option<::std::string::String>,
}
impl GetQueueInput {
    /// <p>The name or ID of the cluster of the queue.</p>
    pub fn cluster_identifier(&self) -> ::std::option::Option<&str> {
        self.cluster_identifier.as_deref()
    }
    /// <p>The name or ID of the queue.</p>
    pub fn queue_identifier(&self) -> ::std::option::Option<&str> {
        self.queue_identifier.as_deref()
    }
}
impl GetQueueInput {
    /// Creates a new builder-style object to manufacture [`GetQueueInput`](crate::operation::get_queue::GetQueueInput).
    pub fn builder() -> crate::operation::get_queue::builders::GetQueueInputBuilder {
        crate::operation::get_queue::builders::GetQueueInputBuilder::default()
    }
}

/// A builder for [`GetQueueInput`](crate::operation::get_queue::GetQueueInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetQueueInputBuilder {
    pub(crate) cluster_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) queue_identifier: ::std::option::Option<::std::string::String>,
}
impl GetQueueInputBuilder {
    /// <p>The name or ID of the cluster of the queue.</p>
    /// This field is required.
    pub fn cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.cluster_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name or ID of the cluster of the queue.</p>
    pub fn set_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.cluster_identifier = input;
        self
    }
    /// <p>The name or ID of the cluster of the queue.</p>
    pub fn get_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.cluster_identifier
    }
    /// <p>The name or ID of the queue.</p>
    /// This field is required.
    pub fn queue_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.queue_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name or ID of the queue.</p>
    pub fn set_queue_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.queue_identifier = input;
        self
    }
    /// <p>The name or ID of the queue.</p>
    pub fn get_queue_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.queue_identifier
    }
    /// Consumes the builder and constructs a [`GetQueueInput`](crate::operation::get_queue::GetQueueInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::get_queue::GetQueueInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_queue::GetQueueInput {
            cluster_identifier: self.cluster_identifier,
            queue_identifier: self.queue_identifier,
        })
    }
}