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: _aws_cloud_map_service_discovery.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 Cloud Map service discovery information for your virtual node.</p><note>
/// <p>Cloud Map is not available in the eu-south-1 Region.</p>
/// </note>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct AwsCloudMapServiceDiscovery {
    /// <p>The name of the Cloud Map namespace to use.</p>
    pub namespace_name: ::std::string::String,
    /// <p>The name of the Cloud Map service to use.</p>
    pub service_name: ::std::string::String,
    /// <p>A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs wi
    
    pub fn build(self) -> ::std::result::Result<crate::types::AwsCloudMapServiceDiscovery, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::AwsCloudMapServiceDiscovery {
            namespace_name: self.namespace_name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "namespace_name",
                    "namespace_name was not specified but it is required when building AwsCloudMapServiceDiscovery",
                )
            })?,
            service_name: self.service_name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "service_name",
                    "service_name was not specified but it is required when building AwsCloudMapServiceDiscovery",
                )
            })?,
            attributes: self.attributes,
            ip_preference: self.ip_preference,
        })
    }