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: _event_destination.rs
    path of file: ./repos/aws-sdk-rust/sdk/sesv2/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>In the Amazon SES API v2, <i>events</i> include message sends, deliveries, opens, clicks, bounces, complaints and delivery delays. <i>Event destinations</i> are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct EventDestination {
    /// <p>A name that identifies the event desti
    
    pub fn build(self) -> ::std::result::Result<crate::types::EventDestination, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::EventDestination {
            name: self.name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "name",
                    "name was not specified but it is required when building EventDestination",
                )
            })?,
            enabled: self.enabled.unwrap_or_default(),
            matching_event_types: self.matching_event_types.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "matching_event_types",
                    "matching_event_types was not specified but it is required when building EventDestination",
                )
            })?,
            kinesis_firehose_destination: self.kinesis_firehose_destination,
            cloud_watch_destination: self.cloud_watch_destination,
            sns_destination: self.sns_destination,
            pinpoint_destination: self.pinpoint_destination,
        })
    }