#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeStreamOutput {
pub stream_info: ::std::option::Option<crate::types::StreamInfo>,
_request_id: Option<String>,
}
impl DescribeStreamOutput {
pub fn stream_info(&self) -> ::std::option::Option<&crate::types::StreamInfo> {
self.stream_info.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribeStreamOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeStreamOutput {
pub fn builder() -> crate::operation::describe_stream::builders::DescribeStreamOutputBuilder {
crate::operation::describe_stream::builders::DescribeStreamOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribeStreamOutputBuilder {
pub(crate) stream_info: ::std::option::Option<crate::types::StreamInfo>,
_request_id: Option<String>,
}
impl DescribeStreamOutputBuilder {
pub fn stream_info(mut self, input: crate::types::StreamInfo) -> Self {
self.stream_info = ::std::option::Option::Some(input);
self
}
pub fn set_stream_info(mut self, input: ::std::option::Option<crate::types::StreamInfo>) -> Self {
self.stream_info = input;
self
}
pub fn get_stream_info(&self) -> &::std::option::Option<crate::types::StreamInfo> {
&self.stream_info
}
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::describe_stream::DescribeStreamOutput {
crate::operation::describe_stream::DescribeStreamOutput {
stream_info: self.stream_info,
_request_id: self._request_id,
}
}
}