#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteCommentContentInput {
pub comment_id: ::std::option::Option<::std::string::String>,
}
impl DeleteCommentContentInput {
pub fn comment_id(&self) -> ::std::option::Option<&str> {
self.comment_id.as_deref()
}
}
impl DeleteCommentContentInput {
pub fn builder() -> crate::operation::delete_comment_content::builders::DeleteCommentContentInputBuilder {
crate::operation::delete_comment_content::builders::DeleteCommentContentInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteCommentContentInputBuilder {
pub(crate) comment_id: ::std::option::Option<::std::string::String>,
}
impl DeleteCommentContentInputBuilder {
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::delete_comment_content::DeleteCommentContentInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::delete_comment_content::DeleteCommentContentInput { comment_id: self.comment_id })
}
}