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: _outlier_detection.rs
    path of file: ./repos/aws-sdk-rust/sdk/appmesh/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 object that represents the outlier detection for a virtual node's listener.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct OutlierDetection {
    /// <p>Number of consecutive <code>5xx</code> errors required for ejection.</p>
    pub max_server_errors: i64,
    /// <p>The time interval between ejection sweep analysis.</p>
    pub interval: ::std::option::Option<crate::types::Duration>,
    /// <p>The base amount of ti
    
    pub fn build(self) -> ::std::result::Result<crate::types::OutlierDetection, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::OutlierDetection {
            max_server_errors: self.max_server_errors.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "max_server_errors",
                    "max_server_errors was not specified but it is required when building OutlierDetection",
                )
            })?,
            interval: self.interval,
            base_ejection_duration: self.base_ejection_duration,
            max_ejection_percent: self.max_ejection_percent.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "max_ejection_percent",
                    "max_ejection_percent was not specified but it is required when building OutlierDetection",
                )
            })?,
        })
    }