aws-sdk-sqs 1.105.0

AWS SDK for Amazon Simple Queue Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Returns the <code>QueueUrl</code> attribute of the created queue.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateQueueOutput {
    /// <p>The URL of the created Amazon SQS queue.</p>
    pub queue_url: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl CreateQueueOutput {
    /// <p>The URL of the created Amazon SQS queue.</p>
    pub fn queue_url(&self) -> ::std::option::Option<&str> {
        self.queue_url.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for CreateQueueOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateQueueOutput {
    /// Creates a new builder-style object to manufacture [`CreateQueueOutput`](crate::operation::create_queue::CreateQueueOutput).
    pub fn builder() -> crate::operation::create_queue::builders::CreateQueueOutputBuilder {
        crate::operation::create_queue::builders::CreateQueueOutputBuilder::default()
    }
}

/// A builder for [`CreateQueueOutput`](crate::operation::create_queue::CreateQueueOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateQueueOutputBuilder {
    pub(crate) queue_url: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl CreateQueueOutputBuilder {
    /// <p>The URL of the created Amazon SQS queue.</p>
    pub fn queue_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.queue_url = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The URL of the created Amazon SQS queue.</p>
    pub fn set_queue_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.queue_url = input;
        self
    }
    /// <p>The URL of the created Amazon SQS queue.</p>
    pub fn get_queue_url(&self) -> &::std::option::Option<::std::string::String> {
        &self.queue_url
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`CreateQueueOutput`](crate::operation::create_queue::CreateQueueOutput).
    pub fn build(self) -> crate::operation::create_queue::CreateQueueOutput {
        crate::operation::create_queue::CreateQueueOutput {
            queue_url: self.queue_url,
            _request_id: self._request_id,
        }
    }
}