aws_sdk_wisdom/operation/create_content/
_create_content_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateContentOutput {
pub content: ::std::option::Option<crate::types::ContentData>,
_request_id: Option<String>,
}
impl CreateContentOutput {
pub fn content(&self) -> ::std::option::Option<&crate::types::ContentData> {
self.content.as_ref()
}
}
impl ::aws_types::request_id::RequestId for CreateContentOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateContentOutput {
pub fn builder() -> crate::operation::create_content::builders::CreateContentOutputBuilder {
crate::operation::create_content::builders::CreateContentOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateContentOutputBuilder {
pub(crate) content: ::std::option::Option<crate::types::ContentData>,
_request_id: Option<String>,
}
impl CreateContentOutputBuilder {
pub fn content(mut self, input: crate::types::ContentData) -> Self {
self.content = ::std::option::Option::Some(input);
self
}
pub fn set_content(mut self, input: ::std::option::Option<crate::types::ContentData>) -> Self {
self.content = input;
self
}
pub fn get_content(&self) -> &::std::option::Option<crate::types::ContentData> {
&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) -> crate::operation::create_content::CreateContentOutput {
crate::operation::create_content::CreateContentOutput {
content: self.content,
_request_id: self._request_id,
}
}
}