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: _sentiment_configuration.rs
    path of file: ./repos/aws-sdk-rust/sdk/chimesdkmediapipelines/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>A structure that contains the configuration settings for a sentiment analysis task.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct SentimentConfiguration {
    /// <p>The name of the rule in the sentiment configuration.</p>
    pub rule_name: ::std::string::String,
    /// <p>The type of sentiment, <code>POSITIVE</code>, <code>NEGATIVE</code>, or <code>NEUTRAL</code>.</p>
    pub sentiment_type: crate::types::SentimentType,
    /// <p>Specifies the analysis interval.</p>
    pub time_period: i32,
}
impl SentimentConfiguration {
    /// <p>The name of
    
    pub fn build(self) -> ::std::result::Result<crate::types::SentimentConfiguration, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::SentimentConfiguration {
            rule_name: self.rule_name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "rule_name",
                    "rule_name was not specified but it is required when building SentimentConfiguration",
                )
            })?,
            sentiment_type: self.sentiment_type.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "sentiment_type",
                    "sentiment_type was not specified but it is required when building SentimentConfiguration",
                )
            })?,
            time_period: self.time_period.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "time_period",
                    "time_period was not specified but it is required when building SentimentConfiguration",
                )
            })?,
        })
    }