// 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 RegisterStreamConsumerOutput {
    /// <p>An object that represents the details of the consumer you registered. When you register a consumer, it gets an ARN that is generated by Kinesis Data Streams.</p>
    pub consumer: ::std::option::Option<crate::types::Consumer>,
    _request_id: Option<String>,
}
impl RegisterStreamConsumerOutput {
    /// <p>An object that represents the details of the consumer you registered. When you register a consumer, it gets an ARN that is generated by Kinesis Data Streams.</p>
    pub fn consumer(&self) -> ::std::option::Option<&crate::types::Consumer> {
        self.consumer.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for RegisterStreamConsumerOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl RegisterStreamConsumerOutput {
    /// Creates a new builder-style object to manufacture [`RegisterStreamConsumerOutput`](crate::operation::register_stream_consumer::RegisterStreamConsumerOutput).
    pub fn builder() -> crate::operation::register_stream_consumer::builders::RegisterStreamConsumerOutputBuilder {
        crate::operation::register_stream_consumer::builders::RegisterStreamConsumerOutputBuilder::default()
    }
}

/// A builder for [`RegisterStreamConsumerOutput`](crate::operation::register_stream_consumer::RegisterStreamConsumerOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RegisterStreamConsumerOutputBuilder {
    pub(crate) consumer: ::std::option::Option<crate::types::Consumer>,
    _request_id: Option<String>,
}
impl RegisterStreamConsumerOutputBuilder {
    /// <p>An object that represents the details of the consumer you registered. When you register a consumer, it gets an ARN that is generated by Kinesis Data Streams.</p>
    /// This field is required.
    pub fn consumer(mut self, input: crate::types::Consumer) -> Self {
        self.consumer = ::std::option::Option::Some(input);
        self
    }
    /// <p>An object that represents the details of the consumer you registered. When you register a consumer, it gets an ARN that is generated by Kinesis Data Streams.</p>
    pub fn set_consumer(mut self, input: ::std::option::Option<crate::types::Consumer>) -> Self {
        self.consumer = input;
        self
    }
    /// <p>An object that represents the details of the consumer you registered. When you register a consumer, it gets an ARN that is generated by Kinesis Data Streams.</p>
    pub fn get_consumer(&self) -> &::std::option::Option<crate::types::Consumer> {
        &self.consumer
    }
    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 [`RegisterStreamConsumerOutput`](crate::operation::register_stream_consumer::RegisterStreamConsumerOutput).
    pub fn build(self) -> crate::operation::register_stream_consumer::RegisterStreamConsumerOutput {
        crate::operation::register_stream_consumer::RegisterStreamConsumerOutput {
            consumer: self.consumer,
            _request_id: self._request_id,
        }
    }
}
