aws_sdk_deadline/operation/delete_queue/
_delete_queue_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteQueueInput {
pub farm_id: ::std::option::Option<::std::string::String>,
pub queue_id: ::std::option::Option<::std::string::String>,
}
impl DeleteQueueInput {
pub fn farm_id(&self) -> ::std::option::Option<&str> {
self.farm_id.as_deref()
}
pub fn queue_id(&self) -> ::std::option::Option<&str> {
self.queue_id.as_deref()
}
}
impl DeleteQueueInput {
pub fn builder() -> crate::operation::delete_queue::builders::DeleteQueueInputBuilder {
crate::operation::delete_queue::builders::DeleteQueueInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteQueueInputBuilder {
pub(crate) farm_id: ::std::option::Option<::std::string::String>,
pub(crate) queue_id: ::std::option::Option<::std::string::String>,
}
impl DeleteQueueInputBuilder {
pub fn farm_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.farm_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_farm_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.farm_id = input;
self
}
pub fn get_farm_id(&self) -> &::std::option::Option<::std::string::String> {
&self.farm_id
}
pub fn queue_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.queue_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_queue_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.queue_id = input;
self
}
pub fn get_queue_id(&self) -> &::std::option::Option<::std::string::String> {
&self.queue_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::delete_queue::DeleteQueueInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_queue::DeleteQueueInput {
farm_id: self.farm_id,
queue_id: self.queue_id,
})
}
}