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: _pipe_source_active_mq_broker_parameters.rs
    path of file: ./repos/aws-sdk-rust/sdk/pipes/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>The parameters for using an Active MQ broker as a source.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct PipeSourceActiveMqBrokerParameters {
    /// <p>The credentials needed to access the resource.</p>
    pub credentials: ::std::option::Option<crate::types::MqBrokerAccessCredentials>,
    /// <p>The name of the destination queue to consume.</p>
    pub queue_name: ::std::string::String,
    /// <p>The maximum number of records to include in each batch
    
    pub fn build(self) -> ::std::result::Result<crate::types::PipeSourceActiveMqBrokerParameters, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::PipeSourceActiveMqBrokerParameters {
            credentials: self.credentials,
            queue_name: self.queue_name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "queue_name",
                    "queue_name was not specified but it is required when building PipeSourceActiveMqBrokerParameters",
                )
            })?,
            batch_size: self.batch_size,
            maximum_batching_window_in_seconds: self.maximum_batching_window_in_seconds,
        })
    }