/// Response with WHIP URL and ICE servers for publishing
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct GenerateWhipStreamResponse {
    #[builder(into)]
    #[serde(rename = "streamId")]
    stream_id: String,
    #[builder(into)]
    #[serde(rename = "whipUrl")]
    whip_url: String,
    #[builder(default, list(item(type = super::IceServer)))]
    #[serde(rename = "iceServers", skip_serializing_if = "Vec::is_empty", default)]
    ice_servers: Vec<super::IceServer>,
}
impl GenerateWhipStreamResponse {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(stream_id: impl Into<String>, whip_url: impl Into<String>) -> Self {
        Self::builder().stream_id(stream_id).whip_url(whip_url).build()
    }
    #[inline]
    pub fn stream_id(&self) -> &str {
        &*self.stream_id
    }
    #[inline]
    pub fn whip_url(&self) -> &str {
        &*self.whip_url
    }
    #[inline]
    pub fn ice_servers(&self) -> &[super::IceServer] {
        &*self.ice_servers
    }
}
