aws_sdk_sqs/operation/delete_queue/
_delete_queue_input.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DeleteQueueInput {
7 pub queue_url: ::std::option::Option<::std::string::String>,
10}
11impl DeleteQueueInput {
12 pub fn queue_url(&self) -> ::std::option::Option<&str> {
15 self.queue_url.as_deref()
16 }
17}
18impl DeleteQueueInput {
19 pub fn builder() -> crate::operation::delete_queue::builders::DeleteQueueInputBuilder {
21 crate::operation::delete_queue::builders::DeleteQueueInputBuilder::default()
22 }
23}
24
25#[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 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 pub fn set_queue_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
42 self.queue_url = input;
43 self
44 }
45 pub fn get_queue_url(&self) -> &::std::option::Option<::std::string::String> {
48 &self.queue_url
49 }
50 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}