You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: _batch_put_property_error.rs
    path of file: ./repos/aws-sdk-rust/sdk/iottwinmaker/src/types
    
    the code of the file until where you have to start completion: // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>An error returned by the <code>BatchPutProperty</code> action.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BatchPutPropertyError {
    /// <p>The error code.</p>
    pub error_code: ::std::string::String,
    /// <p>The error message.</p>
    pub error_message: ::std::string::String,
    /// <p>An object that contains information about errors returned by the <code>BatchPutProperty</code> action.</p>
    pub entry: ::std::option::Option<crate::types::PropertyValueEntry>,
}
impl BatchPutPropertyError {
    /// <p>The error code.</p>
    pub fn error_code(&self) -> &str {
        use std::ops::Deref;
        self.error_code.deref()
    }
    /// <p>The error message.</p>
  
    
    pub fn build(self) -> ::std::result::Result<crate::types::BatchPutPropertyError, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::BatchPutPropertyError {
            error_code: self.error_code.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "error_code",
                    "error_code was not specified but it is required when building BatchPutPropertyError",
                )
            })?,
            error_message: self.error_message.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "error_message",
                    "error_message was not specified but it is required when building BatchPutPropertyError",
                )
            })?,
            entry: self.entry,
        })
    }