#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateChannelOutput {
pub channel: ::std::option::Option<crate::types::Channel>,
pub stream_key: ::std::option::Option<crate::types::StreamKey>,
_request_id: Option<String>,
}
impl CreateChannelOutput {
pub fn channel(&self) -> ::std::option::Option<&crate::types::Channel> {
self.channel.as_ref()
}
pub fn stream_key(&self) -> ::std::option::Option<&crate::types::StreamKey> {
self.stream_key.as_ref()
}
}
impl ::aws_types::request_id::RequestId for CreateChannelOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateChannelOutput {
pub fn builder() -> crate::operation::create_channel::builders::CreateChannelOutputBuilder {
crate::operation::create_channel::builders::CreateChannelOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateChannelOutputBuilder {
pub(crate) channel: ::std::option::Option<crate::types::Channel>,
pub(crate) stream_key: ::std::option::Option<crate::types::StreamKey>,
_request_id: Option<String>,
}
impl CreateChannelOutputBuilder {
pub fn channel(mut self, input: crate::types::Channel) -> Self {
self.channel = ::std::option::Option::Some(input);
self
}
pub fn set_channel(mut self, input: ::std::option::Option<crate::types::Channel>) -> Self {
self.channel = input;
self
}
pub fn get_channel(&self) -> &::std::option::Option<crate::types::Channel> {
&self.channel
}
pub fn stream_key(mut self, input: crate::types::StreamKey) -> Self {
self.stream_key = ::std::option::Option::Some(input);
self
}
pub fn set_stream_key(mut self, input: ::std::option::Option<crate::types::StreamKey>) -> Self {
self.stream_key = input;
self
}
pub fn get_stream_key(&self) -> &::std::option::Option<crate::types::StreamKey> {
&self.stream_key
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::create_channel::CreateChannelOutput {
crate::operation::create_channel::CreateChannelOutput {
channel: self.channel,
stream_key: self.stream_key,
_request_id: self._request_id,
}
}
}