aws_sdk_sqs/operation/delete_queue/
_delete_queue_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p></p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DeleteQueueInput {
7    /// <p>The URL of the Amazon SQS queue to delete.</p>
8    /// <p>Queue URLs and names are case-sensitive.</p>
9    pub queue_url: ::std::option::Option<::std::string::String>,
10}
11impl DeleteQueueInput {
12    /// <p>The URL of the Amazon SQS queue to delete.</p>
13    /// <p>Queue URLs and names are case-sensitive.</p>
14    pub fn queue_url(&self) -> ::std::option::Option<&str> {
15        self.queue_url.as_deref()
16    }
17}
18impl DeleteQueueInput {
19    /// Creates a new builder-style object to manufacture [`DeleteQueueInput`](crate::operation::delete_queue::DeleteQueueInput).
20    pub fn builder() -> crate::operation::delete_queue::builders::DeleteQueueInputBuilder {
21        crate::operation::delete_queue::builders::DeleteQueueInputBuilder::default()
22    }
23}
24
25/// A builder for [`DeleteQueueInput`](crate::operation::delete_queue::DeleteQueueInput).
26#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
27#[non_exhaustive]
28pub struct DeleteQueueInputBuilder {
29    pub(crate) queue_url: ::std::option::Option<::std::string::String>,
30}
31impl DeleteQueueInputBuilder {
32    /// <p>The URL of the Amazon SQS queue to delete.</p>
33    /// <p>Queue URLs and names are case-sensitive.</p>
34    /// This field is required.
35    pub fn queue_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
36        self.queue_url = ::std::option::Option::Some(input.into());
37        self
38    }
39    /// <p>The URL of the Amazon SQS queue to delete.</p>
40    /// <p>Queue URLs and names are case-sensitive.</p>
41    pub fn set_queue_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
42        self.queue_url = input;
43        self
44    }
45    /// <p>The URL of the Amazon SQS queue to delete.</p>
46    /// <p>Queue URLs and names are case-sensitive.</p>
47    pub fn get_queue_url(&self) -> &::std::option::Option<::std::string::String> {
48        &self.queue_url
49    }
50    /// Consumes the builder and constructs a [`DeleteQueueInput`](crate::operation::delete_queue::DeleteQueueInput).
51    pub fn build(self) -> ::std::result::Result<crate::operation::delete_queue::DeleteQueueInput, ::aws_smithy_types::error::operation::BuildError> {
52        ::std::result::Result::Ok(crate::operation::delete_queue::DeleteQueueInput { queue_url: self.queue_url })
53    }
54}