// 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 UpdateStreamWarmThroughputInput {
    /// <p>The ARN of the stream to be updated.</p>
    pub stream_arn: ::std::option::Option<::std::string::String>,
    /// <p>The name of the stream to be updated.</p>
    pub stream_name: ::std::option::Option<::std::string::String>,
    /// <p>Not Implemented. Reserved for future use.</p>
    pub stream_id: ::std::option::Option<::std::string::String>,
    /// <p>The target warm throughput in MB/s that the stream should be scaled to handle. This represents the throughput capacity that will be immediately available for write operations.</p>
    pub warm_throughput_mibps: ::std::option::Option<i32>,
}
impl UpdateStreamWarmThroughputInput {
    /// <p>The ARN of the stream to be updated.</p>
    pub fn stream_arn(&self) -> ::std::option::Option<&str> {
        self.stream_arn.as_deref()
    }
    /// <p>The name of the stream to be updated.</p>
    pub fn stream_name(&self) -> ::std::option::Option<&str> {
        self.stream_name.as_deref()
    }
    /// <p>Not Implemented. Reserved for future use.</p>
    pub fn stream_id(&self) -> ::std::option::Option<&str> {
        self.stream_id.as_deref()
    }
    /// <p>The target warm throughput in MB/s that the stream should be scaled to handle. This represents the throughput capacity that will be immediately available for write operations.</p>
    pub fn warm_throughput_mibps(&self) -> ::std::option::Option<i32> {
        self.warm_throughput_mibps
    }
}
impl UpdateStreamWarmThroughputInput {
    /// Creates a new builder-style object to manufacture [`UpdateStreamWarmThroughputInput`](crate::operation::update_stream_warm_throughput::UpdateStreamWarmThroughputInput).
    pub fn builder() -> crate::operation::update_stream_warm_throughput::builders::UpdateStreamWarmThroughputInputBuilder {
        crate::operation::update_stream_warm_throughput::builders::UpdateStreamWarmThroughputInputBuilder::default()
    }
}

/// A builder for [`UpdateStreamWarmThroughputInput`](crate::operation::update_stream_warm_throughput::UpdateStreamWarmThroughputInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateStreamWarmThroughputInputBuilder {
    pub(crate) stream_arn: ::std::option::Option<::std::string::String>,
    pub(crate) stream_name: ::std::option::Option<::std::string::String>,
    pub(crate) stream_id: ::std::option::Option<::std::string::String>,
    pub(crate) warm_throughput_mibps: ::std::option::Option<i32>,
}
impl UpdateStreamWarmThroughputInputBuilder {
    /// <p>The ARN of the stream to be 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 to be 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 to be updated.</p>
    pub fn get_stream_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.stream_arn
    }
    /// <p>The name of the stream to be 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 to be 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 to be updated.</p>
    pub fn get_stream_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.stream_name
    }
    /// <p>Not Implemented. Reserved for future use.</p>
    pub fn stream_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.stream_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Not Implemented. Reserved for future use.</p>
    pub fn set_stream_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.stream_id = input;
        self
    }
    /// <p>Not Implemented. Reserved for future use.</p>
    pub fn get_stream_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.stream_id
    }
    /// <p>The target warm throughput in MB/s that the stream should be scaled to handle. This represents the throughput capacity that will be immediately available for write operations.</p>
    /// This field is required.
    pub fn warm_throughput_mibps(mut self, input: i32) -> Self {
        self.warm_throughput_mibps = ::std::option::Option::Some(input);
        self
    }
    /// <p>The target warm throughput in MB/s that the stream should be scaled to handle. This represents the throughput capacity that will be immediately available for write operations.</p>
    pub fn set_warm_throughput_mibps(mut self, input: ::std::option::Option<i32>) -> Self {
        self.warm_throughput_mibps = input;
        self
    }
    /// <p>The target warm throughput in MB/s that the stream should be scaled to handle. This represents the throughput capacity that will be immediately available for write operations.</p>
    pub fn get_warm_throughput_mibps(&self) -> &::std::option::Option<i32> {
        &self.warm_throughput_mibps
    }
    /// Consumes the builder and constructs a [`UpdateStreamWarmThroughputInput`](crate::operation::update_stream_warm_throughput::UpdateStreamWarmThroughputInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::update_stream_warm_throughput::UpdateStreamWarmThroughputInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::update_stream_warm_throughput::UpdateStreamWarmThroughputInput {
            stream_arn: self.stream_arn,
            stream_name: self.stream_name,
            stream_id: self.stream_id,
            warm_throughput_mibps: self.warm_throughput_mibps,
        })
    }
}
