#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetBlobOutput {
pub content: ::aws_smithy_types::Blob,
_request_id: Option<String>,
}
impl GetBlobOutput {
pub fn content(&self) -> &::aws_smithy_types::Blob {
&self.content
}
}
impl ::aws_types::request_id::RequestId for GetBlobOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetBlobOutput {
pub fn builder() -> crate::operation::get_blob::builders::GetBlobOutputBuilder {
crate::operation::get_blob::builders::GetBlobOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetBlobOutputBuilder {
pub(crate) content: ::std::option::Option<::aws_smithy_types::Blob>,
_request_id: Option<String>,
}
impl GetBlobOutputBuilder {
pub fn content(mut self, input: ::aws_smithy_types::Blob) -> Self {
self.content = ::std::option::Option::Some(input);
self
}
pub fn set_content(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
self.content = input;
self
}
pub fn get_content(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
&self.content
}
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_blob::GetBlobOutput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_blob::GetBlobOutput {
content: self.content.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"content",
"content was not specified but it is required when building GetBlobOutput",
)
})?,
_request_id: self._request_id,
})
}
}