aws_sdk_connect/operation/describe_queue/
_describe_queue_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeQueueOutput {
pub queue: ::std::option::Option<crate::types::Queue>,
_request_id: Option<String>,
}
impl DescribeQueueOutput {
pub fn queue(&self) -> ::std::option::Option<&crate::types::Queue> {
self.queue.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribeQueueOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeQueueOutput {
pub fn builder() -> crate::operation::describe_queue::builders::DescribeQueueOutputBuilder {
crate::operation::describe_queue::builders::DescribeQueueOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeQueueOutputBuilder {
pub(crate) queue: ::std::option::Option<crate::types::Queue>,
_request_id: Option<String>,
}
impl DescribeQueueOutputBuilder {
pub fn queue(mut self, input: crate::types::Queue) -> Self {
self.queue = ::std::option::Option::Some(input);
self
}
pub fn set_queue(mut self, input: ::std::option::Option<crate::types::Queue>) -> Self {
self.queue = input;
self
}
pub fn get_queue(&self) -> &::std::option::Option<crate::types::Queue> {
&self.queue
}
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
}
pub fn build(self) -> crate::operation::describe_queue::DescribeQueueOutput {
crate::operation::describe_queue::DescribeQueueOutput {
queue: self.queue,
_request_id: self._request_id,
}
}
}