#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetCommentInput {
pub comment_id: ::std::option::Option<::std::string::String>,
}
impl GetCommentInput {
pub fn comment_id(&self) -> ::std::option::Option<&str> {
self.comment_id.as_deref()
}
}
impl GetCommentInput {
pub fn builder() -> crate::operation::get_comment::builders::GetCommentInputBuilder {
crate::operation::get_comment::builders::GetCommentInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetCommentInputBuilder {
pub(crate) comment_id: ::std::option::Option<::std::string::String>,
}
impl GetCommentInputBuilder {
pub fn comment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.comment_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_comment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.comment_id = input;
self
}
pub fn get_comment_id(&self) -> &::std::option::Option<::std::string::String> {
&self.comment_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_comment::GetCommentInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_comment::GetCommentInput { comment_id: self.comment_id })
}
}