#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub struct GetLogObjectOutput {
pub field_stream:
crate::event_receiver::EventReceiver<crate::types::GetLogObjectResponseStream, crate::types::error::GetLogObjectResponseStreamError>,
_request_id: Option<String>,
}
impl GetLogObjectOutput {
pub fn field_stream(
&self,
) -> &crate::event_receiver::EventReceiver<crate::types::GetLogObjectResponseStream, crate::types::error::GetLogObjectResponseStreamError> {
&self.field_stream
}
}
impl ::aws_types::request_id::RequestId for GetLogObjectOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetLogObjectOutput {
pub fn builder() -> crate::operation::get_log_object::builders::GetLogObjectOutputBuilder {
crate::operation::get_log_object::builders::GetLogObjectOutputBuilder::default()
}
#[allow(unused)]
pub(crate) fn into_builder(self) -> crate::operation::get_log_object::builders::GetLogObjectOutputBuilder {
Self::builder().field_stream(self.field_stream)
}
}
#[derive(::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetLogObjectOutputBuilder {
pub(crate) field_stream: ::std::option::Option<
crate::event_receiver::EventReceiver<crate::types::GetLogObjectResponseStream, crate::types::error::GetLogObjectResponseStreamError>,
>,
_request_id: Option<String>,
}
impl GetLogObjectOutputBuilder {
pub fn field_stream(
mut self,
input: crate::event_receiver::EventReceiver<crate::types::GetLogObjectResponseStream, crate::types::error::GetLogObjectResponseStreamError>,
) -> Self {
self.field_stream = ::std::option::Option::Some(input);
self
}
pub fn set_field_stream(
mut self,
input: ::std::option::Option<
crate::event_receiver::EventReceiver<crate::types::GetLogObjectResponseStream, crate::types::error::GetLogObjectResponseStreamError>,
>,
) -> Self {
self.field_stream = input;
self
}
pub fn get_field_stream(
&self,
) -> &::std::option::Option<
crate::event_receiver::EventReceiver<crate::types::GetLogObjectResponseStream, crate::types::error::GetLogObjectResponseStreamError>,
> {
&self.field_stream
}
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,
) -> ::std::result::Result<crate::operation::get_log_object::GetLogObjectOutput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_log_object::GetLogObjectOutput {
field_stream: self.field_stream.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"field_stream",
"field_stream was not specified but it is required when building GetLogObjectOutput",
)
})?,
_request_id: self._request_id,
})
}
}