aws-sdk-connect 1.166.0

AWS SDK for Amazon Connect Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>A meeting created using the Amazon Chime SDK.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Meeting {
    /// <p>The Amazon Web Services Region in which you create the meeting.</p>
    pub media_region: ::std::option::Option<::std::string::String>,
    /// <p>The media placement for the meeting.</p>
    pub media_placement: ::std::option::Option<crate::types::MediaPlacement>,
    /// <p>The configuration settings of the features available to a meeting.</p>
    pub meeting_features: ::std::option::Option<crate::types::MeetingFeaturesConfiguration>,
    /// <p>The Amazon Chime SDK meeting ID.</p>
    pub meeting_id: ::std::option::Option<::std::string::String>,
}
impl Meeting {
    /// <p>The Amazon Web Services Region in which you create the meeting.</p>
    pub fn media_region(&self) -> ::std::option::Option<&str> {
        self.media_region.as_deref()
    }
    /// <p>The media placement for the meeting.</p>
    pub fn media_placement(&self) -> ::std::option::Option<&crate::types::MediaPlacement> {
        self.media_placement.as_ref()
    }
    /// <p>The configuration settings of the features available to a meeting.</p>
    pub fn meeting_features(&self) -> ::std::option::Option<&crate::types::MeetingFeaturesConfiguration> {
        self.meeting_features.as_ref()
    }
    /// <p>The Amazon Chime SDK meeting ID.</p>
    pub fn meeting_id(&self) -> ::std::option::Option<&str> {
        self.meeting_id.as_deref()
    }
}
impl Meeting {
    /// Creates a new builder-style object to manufacture [`Meeting`](crate::types::Meeting).
    pub fn builder() -> crate::types::builders::MeetingBuilder {
        crate::types::builders::MeetingBuilder::default()
    }
}

/// A builder for [`Meeting`](crate::types::Meeting).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct MeetingBuilder {
    pub(crate) media_region: ::std::option::Option<::std::string::String>,
    pub(crate) media_placement: ::std::option::Option<crate::types::MediaPlacement>,
    pub(crate) meeting_features: ::std::option::Option<crate::types::MeetingFeaturesConfiguration>,
    pub(crate) meeting_id: ::std::option::Option<::std::string::String>,
}
impl MeetingBuilder {
    /// <p>The Amazon Web Services Region in which you create the meeting.</p>
    pub fn media_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.media_region = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Web Services Region in which you create the meeting.</p>
    pub fn set_media_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.media_region = input;
        self
    }
    /// <p>The Amazon Web Services Region in which you create the meeting.</p>
    pub fn get_media_region(&self) -> &::std::option::Option<::std::string::String> {
        &self.media_region
    }
    /// <p>The media placement for the meeting.</p>
    pub fn media_placement(mut self, input: crate::types::MediaPlacement) -> Self {
        self.media_placement = ::std::option::Option::Some(input);
        self
    }
    /// <p>The media placement for the meeting.</p>
    pub fn set_media_placement(mut self, input: ::std::option::Option<crate::types::MediaPlacement>) -> Self {
        self.media_placement = input;
        self
    }
    /// <p>The media placement for the meeting.</p>
    pub fn get_media_placement(&self) -> &::std::option::Option<crate::types::MediaPlacement> {
        &self.media_placement
    }
    /// <p>The configuration settings of the features available to a meeting.</p>
    pub fn meeting_features(mut self, input: crate::types::MeetingFeaturesConfiguration) -> Self {
        self.meeting_features = ::std::option::Option::Some(input);
        self
    }
    /// <p>The configuration settings of the features available to a meeting.</p>
    pub fn set_meeting_features(mut self, input: ::std::option::Option<crate::types::MeetingFeaturesConfiguration>) -> Self {
        self.meeting_features = input;
        self
    }
    /// <p>The configuration settings of the features available to a meeting.</p>
    pub fn get_meeting_features(&self) -> &::std::option::Option<crate::types::MeetingFeaturesConfiguration> {
        &self.meeting_features
    }
    /// <p>The Amazon Chime SDK meeting ID.</p>
    pub fn meeting_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.meeting_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Chime SDK meeting ID.</p>
    pub fn set_meeting_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.meeting_id = input;
        self
    }
    /// <p>The Amazon Chime SDK meeting ID.</p>
    pub fn get_meeting_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.meeting_id
    }
    /// Consumes the builder and constructs a [`Meeting`](crate::types::Meeting).
    pub fn build(self) -> crate::types::Meeting {
        crate::types::Meeting {
            media_region: self.media_region,
            media_placement: self.media_placement,
            meeting_features: self.meeting_features,
            meeting_id: self.meeting_id,
        }
    }
}