#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Stream {
pub stream_id: ::std::option::Option<::std::string::String>,
pub file_id: ::std::option::Option<i32>,
}
impl Stream {
pub fn stream_id(&self) -> ::std::option::Option<&str> {
self.stream_id.as_deref()
}
pub fn file_id(&self) -> ::std::option::Option<i32> {
self.file_id
}
}
impl Stream {
pub fn builder() -> crate::types::builders::StreamBuilder {
crate::types::builders::StreamBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StreamBuilder {
pub(crate) stream_id: ::std::option::Option<::std::string::String>,
pub(crate) file_id: ::std::option::Option<i32>,
}
impl StreamBuilder {
pub fn stream_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.stream_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_stream_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.stream_id = input;
self
}
pub fn get_stream_id(&self) -> &::std::option::Option<::std::string::String> {
&self.stream_id
}
pub fn file_id(mut self, input: i32) -> Self {
self.file_id = ::std::option::Option::Some(input);
self
}
pub fn set_file_id(mut self, input: ::std::option::Option<i32>) -> Self {
self.file_id = input;
self
}
pub fn get_file_id(&self) -> &::std::option::Option<i32> {
&self.file_id
}
pub fn build(self) -> crate::types::Stream {
crate::types::Stream {
stream_id: self.stream_id,
file_id: self.file_id,
}
}
}