// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Do not modify this file. This file is machine generated, and any changes to it will be overwritten.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
#[allow(missing_docs)]
pub struct UpdateUsageMetadataInput {
    #[allow(missing_docs)]
    pub bytes_used: ::std::option::Option<::std::primitive::i32>,
    #[allow(missing_docs)]
    pub identifier: ::std::option::Option<::aws_smithy_types::Blob>,
}
impl UpdateUsageMetadataInput {
    #[allow(missing_docs)]
    pub fn bytes_used(&self) -> &::std::option::Option<::std::primitive::i32> {
        &self.bytes_used
    }
    #[allow(missing_docs)]
    pub fn identifier(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
        &self.identifier
    }
}
impl UpdateUsageMetadataInput {
    /// Creates a new builder-style object to manufacture [`UpdateUsageMetadataInput`](crate::operation::update_usage_metadata::builders::UpdateUsageMetadataInput).
    pub fn builder() -> crate::deps::aws_cryptography_materialProviders::operation::update_usage_metadata::builders::UpdateUsageMetadataInputBuilder{
        crate::deps::aws_cryptography_materialProviders::operation::update_usage_metadata::builders::UpdateUsageMetadataInputBuilder::default()
    }
}

/// A builder for [`UpdateUsageMetadataInput`](crate::operation::operation::UpdateUsageMetadataInput).
#[non_exhaustive]
#[derive(
    ::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
)]
pub struct UpdateUsageMetadataInputBuilder {
    pub(crate) bytes_used: ::std::option::Option<::std::primitive::i32>,
    pub(crate) identifier: ::std::option::Option<::aws_smithy_types::Blob>,
}
impl UpdateUsageMetadataInputBuilder {
    #[allow(missing_docs)]
    pub fn bytes_used(mut self, input: impl ::std::convert::Into<::std::primitive::i32>) -> Self {
        self.bytes_used = ::std::option::Option::Some(input.into());
        self
    }
    #[allow(missing_docs)]
    pub fn set_bytes_used(mut self, input: ::std::option::Option<::std::primitive::i32>) -> Self {
        self.bytes_used = input;
        self
    }
    #[allow(missing_docs)]
    pub fn get_bytes_used(&self) -> &::std::option::Option<::std::primitive::i32> {
        &self.bytes_used
    }
    #[allow(missing_docs)]
    pub fn identifier(
        mut self,
        input: impl ::std::convert::Into<::aws_smithy_types::Blob>,
    ) -> Self {
        self.identifier = ::std::option::Option::Some(input.into());
        self
    }
    #[allow(missing_docs)]
    pub fn set_identifier(
        mut self,
        input: ::std::option::Option<::aws_smithy_types::Blob>,
    ) -> Self {
        self.identifier = input;
        self
    }
    #[allow(missing_docs)]
    pub fn get_identifier(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
        &self.identifier
    }
    /// Consumes the builder and constructs a [`UpdateUsageMetadataInput`](crate::operation::operation::UpdateUsageMetadataInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::deps::aws_cryptography_materialProviders::operation::update_usage_metadata::UpdateUsageMetadataInput,
        ::aws_smithy_types::error::operation::BuildError,
    >{
        ::std::result::Result::Ok(crate::deps::aws_cryptography_materialProviders::operation::update_usage_metadata::UpdateUsageMetadataInput {
            bytes_used: self.bytes_used,
identifier: self.identifier,
        })
    }
}
