1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SendAlexaOfferToMasterOutput {
    /// <p>The base64-encoded SDP answer content.</p>
    pub answer: std::option::Option<std::string::String>,
}
impl SendAlexaOfferToMasterOutput {
    /// <p>The base64-encoded SDP answer content.</p>
    pub fn answer(&self) -> std::option::Option<&str> {
        self.answer.as_deref()
    }
}
impl std::fmt::Debug for SendAlexaOfferToMasterOutput {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("SendAlexaOfferToMasterOutput");
        formatter.field("answer", &self.answer);
        formatter.finish()
    }
}
/// See [`SendAlexaOfferToMasterOutput`](crate::output::SendAlexaOfferToMasterOutput)
pub mod send_alexa_offer_to_master_output {
    /// A builder for [`SendAlexaOfferToMasterOutput`](crate::output::SendAlexaOfferToMasterOutput)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) answer: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>The base64-encoded SDP answer content.</p>
        pub fn answer(mut self, input: impl Into<std::string::String>) -> Self {
            self.answer = Some(input.into());
            self
        }
        /// <p>The base64-encoded SDP answer content.</p>
        pub fn set_answer(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.answer = input;
            self
        }
        /// Consumes the builder and constructs a [`SendAlexaOfferToMasterOutput`](crate::output::SendAlexaOfferToMasterOutput)
        pub fn build(self) -> crate::output::SendAlexaOfferToMasterOutput {
            crate::output::SendAlexaOfferToMasterOutput {
                answer: self.answer,
            }
        }
    }
}
impl SendAlexaOfferToMasterOutput {
    /// Creates a new builder-style object to manufacture [`SendAlexaOfferToMasterOutput`](crate::output::SendAlexaOfferToMasterOutput)
    pub fn builder() -> crate::output::send_alexa_offer_to_master_output::Builder {
        crate::output::send_alexa_offer_to_master_output::Builder::default()
    }
}

#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GetIceServerConfigOutput {
    /// <p>The list of ICE server information objects.</p>
    pub ice_server_list: std::option::Option<std::vec::Vec<crate::model::IceServer>>,
}
impl GetIceServerConfigOutput {
    /// <p>The list of ICE server information objects.</p>
    pub fn ice_server_list(&self) -> std::option::Option<&[crate::model::IceServer]> {
        self.ice_server_list.as_deref()
    }
}
impl std::fmt::Debug for GetIceServerConfigOutput {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("GetIceServerConfigOutput");
        formatter.field("ice_server_list", &self.ice_server_list);
        formatter.finish()
    }
}
/// See [`GetIceServerConfigOutput`](crate::output::GetIceServerConfigOutput)
pub mod get_ice_server_config_output {
    /// A builder for [`GetIceServerConfigOutput`](crate::output::GetIceServerConfigOutput)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) ice_server_list: std::option::Option<std::vec::Vec<crate::model::IceServer>>,
    }
    impl Builder {
        /// Appends an item to `ice_server_list`.
        ///
        /// To override the contents of this collection use [`set_ice_server_list`](Self::set_ice_server_list).
        ///
        /// <p>The list of ICE server information objects.</p>
        pub fn ice_server_list(mut self, input: impl Into<crate::model::IceServer>) -> Self {
            let mut v = self.ice_server_list.unwrap_or_default();
            v.push(input.into());
            self.ice_server_list = Some(v);
            self
        }
        /// <p>The list of ICE server information objects.</p>
        pub fn set_ice_server_list(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::IceServer>>,
        ) -> Self {
            self.ice_server_list = input;
            self
        }
        /// Consumes the builder and constructs a [`GetIceServerConfigOutput`](crate::output::GetIceServerConfigOutput)
        pub fn build(self) -> crate::output::GetIceServerConfigOutput {
            crate::output::GetIceServerConfigOutput {
                ice_server_list: self.ice_server_list,
            }
        }
    }
}
impl GetIceServerConfigOutput {
    /// Creates a new builder-style object to manufacture [`GetIceServerConfigOutput`](crate::output::GetIceServerConfigOutput)
    pub fn builder() -> crate::output::get_ice_server_config_output::Builder {
        crate::output::get_ice_server_config_output::Builder::default()
    }
}