// 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 UpdateStreamWarmThroughputOutput {
    /// <p>The ARN of the stream that was updated.</p>
    pub stream_arn: ::std::option::Option<::std::string::String>,
    /// <p>The name of the stream that was updated.</p>
    pub stream_name: ::std::option::Option<::std::string::String>,
    /// <p>Specifies the updated warm throughput configuration for your data stream.</p>
    pub warm_throughput: ::std::option::Option<crate::types::WarmThroughputObject>,
    _request_id: Option<String>,
}
impl UpdateStreamWarmThroughputOutput {
    /// <p>The ARN of the stream that was updated.</p>
    pub fn stream_arn(&self) -> ::std::option::Option<&str> {
        self.stream_arn.as_deref()
    }
    /// <p>The name of the stream that was updated.</p>
    pub fn stream_name(&self) -> ::std::option::Option<&str> {
        self.stream_name.as_deref()
    }
    /// <p>Specifies the updated warm throughput configuration for your data stream.</p>
    pub fn warm_throughput(&self) -> ::std::option::Option<&crate::types::WarmThroughputObject> {
        self.warm_throughput.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for UpdateStreamWarmThroughputOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl UpdateStreamWarmThroughputOutput {
    /// Creates a new builder-style object to manufacture [`UpdateStreamWarmThroughputOutput`](crate::operation::update_stream_warm_throughput::UpdateStreamWarmThroughputOutput).
    pub fn builder() -> crate::operation::update_stream_warm_throughput::builders::UpdateStreamWarmThroughputOutputBuilder {
        crate::operation::update_stream_warm_throughput::builders::UpdateStreamWarmThroughputOutputBuilder::default()
    }
}

/// A builder for [`UpdateStreamWarmThroughputOutput`](crate::operation::update_stream_warm_throughput::UpdateStreamWarmThroughputOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateStreamWarmThroughputOutputBuilder {
    pub(crate) stream_arn: ::std::option::Option<::std::string::String>,
    pub(crate) stream_name: ::std::option::Option<::std::string::String>,
    pub(crate) warm_throughput: ::std::option::Option<crate::types::WarmThroughputObject>,
    _request_id: Option<String>,
}
impl UpdateStreamWarmThroughputOutputBuilder {
    /// <p>The ARN of the stream that was updated.</p>
    pub fn stream_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.stream_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the stream that was updated.</p>
    pub fn set_stream_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.stream_arn = input;
        self
    }
    /// <p>The ARN of the stream that was updated.</p>
    pub fn get_stream_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.stream_arn
    }
    /// <p>The name of the stream that was updated.</p>
    pub fn stream_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.stream_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the stream that was updated.</p>
    pub fn set_stream_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.stream_name = input;
        self
    }
    /// <p>The name of the stream that was updated.</p>
    pub fn get_stream_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.stream_name
    }
    /// <p>Specifies the updated warm throughput configuration for your data stream.</p>
    pub fn warm_throughput(mut self, input: crate::types::WarmThroughputObject) -> Self {
        self.warm_throughput = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies the updated warm throughput configuration for your data stream.</p>
    pub fn set_warm_throughput(mut self, input: ::std::option::Option<crate::types::WarmThroughputObject>) -> Self {
        self.warm_throughput = input;
        self
    }
    /// <p>Specifies the updated warm throughput configuration for your data stream.</p>
    pub fn get_warm_throughput(&self) -> &::std::option::Option<crate::types::WarmThroughputObject> {
        &self.warm_throughput
    }
    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 [`UpdateStreamWarmThroughputOutput`](crate::operation::update_stream_warm_throughput::UpdateStreamWarmThroughputOutput).
    pub fn build(self) -> crate::operation::update_stream_warm_throughput::UpdateStreamWarmThroughputOutput {
        crate::operation::update_stream_warm_throughput::UpdateStreamWarmThroughputOutput {
            stream_arn: self.stream_arn,
            stream_name: self.stream_name,
            warm_throughput: self.warm_throughput,
            _request_id: self._request_id,
        }
    }
}
