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: _http_retry_policy.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 a retry policy. Specify at least one value for at least one of the types of <code>RetryEvents</code>, a value for <code>maxRetries</code>, and a value for <code>perRetryTimeout</code>. Both <code>server-error</code> and <code>gateway-error</code> under <code>httpRetryEvents</code> include the Envoy <code>reset</code> policy. For more information on the <code>reset</code> policy, see the <a href="https://www.envoyproxy.io/docs/e
    
    pub fn build(self) -> ::std::result::Result<crate::types::HttpRetryPolicy, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::HttpRetryPolicy {
            per_retry_timeout: self.per_retry_timeout,
            max_retries: self.max_retries.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "max_retries",
                    "max_retries was not specified but it is required when building HttpRetryPolicy",
                )
            })?,
            http_retry_events: self.http_retry_events,
            tcp_retry_events: self.tcp_retry_events,
        })
    }