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