// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeStreamConsumerOutput {
    /// <p>An object that represents the details of the consumer.</p>
    pub consumer_description: ::std::option::Option<crate::types::ConsumerDescription>,
    _request_id: Option<String>,
}
impl DescribeStreamConsumerOutput {
    /// <p>An object that represents the details of the consumer.</p>
    pub fn consumer_description(&self) -> ::std::option::Option<&crate::types::ConsumerDescription> {
        self.consumer_description.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DescribeStreamConsumerOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribeStreamConsumerOutput {
    /// Creates a new builder-style object to manufacture [`DescribeStreamConsumerOutput`](crate::operation::describe_stream_consumer::DescribeStreamConsumerOutput).
    pub fn builder() -> crate::operation::describe_stream_consumer::builders::DescribeStreamConsumerOutputBuilder {
        crate::operation::describe_stream_consumer::builders::DescribeStreamConsumerOutputBuilder::default()
    }
}

/// A builder for [`DescribeStreamConsumerOutput`](crate::operation::describe_stream_consumer::DescribeStreamConsumerOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeStreamConsumerOutputBuilder {
    pub(crate) consumer_description: ::std::option::Option<crate::types::ConsumerDescription>,
    _request_id: Option<String>,
}
impl DescribeStreamConsumerOutputBuilder {
    /// <p>An object that represents the details of the consumer.</p>
    /// This field is required.
    pub fn consumer_description(mut self, input: crate::types::ConsumerDescription) -> Self {
        self.consumer_description = ::std::option::Option::Some(input);
        self
    }
    /// <p>An object that represents the details of the consumer.</p>
    pub fn set_consumer_description(mut self, input: ::std::option::Option<crate::types::ConsumerDescription>) -> Self {
        self.consumer_description = input;
        self
    }
    /// <p>An object that represents the details of the consumer.</p>
    pub fn get_consumer_description(&self) -> &::std::option::Option<crate::types::ConsumerDescription> {
        &self.consumer_description
    }
    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 [`DescribeStreamConsumerOutput`](crate::operation::describe_stream_consumer::DescribeStreamConsumerOutput).
    pub fn build(self) -> crate::operation::describe_stream_consumer::DescribeStreamConsumerOutput {
        crate::operation::describe_stream_consumer::DescribeStreamConsumerOutput {
            consumer_description: self.consumer_description,
            _request_id: self._request_id,
        }
    }
}
