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