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: _media_concurrency.rs
    path of file: ./repos/aws-sdk-rust/sdk/connect/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>Contains information about which channels are supported, and how many contacts an agent can have on a channel simultaneously.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct MediaConcurrency {
    /// <p>The channels that agents can handle in the Contact Control Panel (CCP).</p>
    pub channel: crate::types::Channel,
    /// <p>
    
    pub fn build(self) -> ::std::result::Result<crate::types::MediaConcurrency, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::MediaConcurrency {
            channel: self.channel.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "channel",
                    "channel was not specified but it is required when building MediaConcurrency",
                )
            })?,
            concurrency: self.concurrency.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "concurrency",
                    "concurrency was not specified but it is required when building MediaConcurrency",
                )
            })?,
            cross_channel_behavior: self.cross_channel_behavior,
        })
    }