/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the metadata of a comment.See Also:
AWS
* API Reference
The ID of the comment.
*/ inline const Aws::String& GetCommentId() const{ return m_commentId; } /** *The ID of the comment.
*/ inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; } /** *The ID of the comment.
*/ inline void SetCommentId(const Aws::String& value) { m_commentIdHasBeenSet = true; m_commentId = value; } /** *The ID of the comment.
*/ inline void SetCommentId(Aws::String&& value) { m_commentIdHasBeenSet = true; m_commentId = std::move(value); } /** *The ID of the comment.
*/ inline void SetCommentId(const char* value) { m_commentIdHasBeenSet = true; m_commentId.assign(value); } /** *The ID of the comment.
*/ inline CommentMetadata& WithCommentId(const Aws::String& value) { SetCommentId(value); return *this;} /** *The ID of the comment.
*/ inline CommentMetadata& WithCommentId(Aws::String&& value) { SetCommentId(std::move(value)); return *this;} /** *The ID of the comment.
*/ inline CommentMetadata& WithCommentId(const char* value) { SetCommentId(value); return *this;} /** *The user who made the comment.
*/ inline const User& GetContributor() const{ return m_contributor; } /** *The user who made the comment.
*/ inline bool ContributorHasBeenSet() const { return m_contributorHasBeenSet; } /** *The user who made the comment.
*/ inline void SetContributor(const User& value) { m_contributorHasBeenSet = true; m_contributor = value; } /** *The user who made the comment.
*/ inline void SetContributor(User&& value) { m_contributorHasBeenSet = true; m_contributor = std::move(value); } /** *The user who made the comment.
*/ inline CommentMetadata& WithContributor(const User& value) { SetContributor(value); return *this;} /** *The user who made the comment.
*/ inline CommentMetadata& WithContributor(User&& value) { SetContributor(std::move(value)); return *this;} /** *The timestamp that the comment was created.
*/ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** *The timestamp that the comment was created.
*/ inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; } /** *The timestamp that the comment was created.
*/ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; } /** *The timestamp that the comment was created.
*/ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); } /** *The timestamp that the comment was created.
*/ inline CommentMetadata& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** *The timestamp that the comment was created.
*/ inline CommentMetadata& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} /** *The status of the comment.
*/ inline const CommentStatusType& GetCommentStatus() const{ return m_commentStatus; } /** *The status of the comment.
*/ inline bool CommentStatusHasBeenSet() const { return m_commentStatusHasBeenSet; } /** *The status of the comment.
*/ inline void SetCommentStatus(const CommentStatusType& value) { m_commentStatusHasBeenSet = true; m_commentStatus = value; } /** *The status of the comment.
*/ inline void SetCommentStatus(CommentStatusType&& value) { m_commentStatusHasBeenSet = true; m_commentStatus = std::move(value); } /** *The status of the comment.
*/ inline CommentMetadata& WithCommentStatus(const CommentStatusType& value) { SetCommentStatus(value); return *this;} /** *The status of the comment.
*/ inline CommentMetadata& WithCommentStatus(CommentStatusType&& value) { SetCommentStatus(std::move(value)); return *this;} /** *The ID of the user being replied to.
*/ inline const Aws::String& GetRecipientId() const{ return m_recipientId; } /** *The ID of the user being replied to.
*/ inline bool RecipientIdHasBeenSet() const { return m_recipientIdHasBeenSet; } /** *The ID of the user being replied to.
*/ inline void SetRecipientId(const Aws::String& value) { m_recipientIdHasBeenSet = true; m_recipientId = value; } /** *The ID of the user being replied to.
*/ inline void SetRecipientId(Aws::String&& value) { m_recipientIdHasBeenSet = true; m_recipientId = std::move(value); } /** *The ID of the user being replied to.
*/ inline void SetRecipientId(const char* value) { m_recipientIdHasBeenSet = true; m_recipientId.assign(value); } /** *The ID of the user being replied to.
*/ inline CommentMetadata& WithRecipientId(const Aws::String& value) { SetRecipientId(value); return *this;} /** *The ID of the user being replied to.
*/ inline CommentMetadata& WithRecipientId(Aws::String&& value) { SetRecipientId(std::move(value)); return *this;} /** *The ID of the user being replied to.
*/ inline CommentMetadata& WithRecipientId(const char* value) { SetRecipientId(value); return *this;} /** *The ID of the user who made the comment.
*/ inline const Aws::String& GetContributorId() const{ return m_contributorId; } /** *The ID of the user who made the comment.
*/ inline bool ContributorIdHasBeenSet() const { return m_contributorIdHasBeenSet; } /** *The ID of the user who made the comment.
*/ inline void SetContributorId(const Aws::String& value) { m_contributorIdHasBeenSet = true; m_contributorId = value; } /** *The ID of the user who made the comment.
*/ inline void SetContributorId(Aws::String&& value) { m_contributorIdHasBeenSet = true; m_contributorId = std::move(value); } /** *The ID of the user who made the comment.
*/ inline void SetContributorId(const char* value) { m_contributorIdHasBeenSet = true; m_contributorId.assign(value); } /** *The ID of the user who made the comment.
*/ inline CommentMetadata& WithContributorId(const Aws::String& value) { SetContributorId(value); return *this;} /** *The ID of the user who made the comment.
*/ inline CommentMetadata& WithContributorId(Aws::String&& value) { SetContributorId(std::move(value)); return *this;} /** *The ID of the user who made the comment.
*/ inline CommentMetadata& WithContributorId(const char* value) { SetContributorId(value); return *this;} private: Aws::String m_commentId; bool m_commentIdHasBeenSet = false; User m_contributor; bool m_contributorHasBeenSet = false; Aws::Utils::DateTime m_createdTimestamp; bool m_createdTimestampHasBeenSet = false; CommentStatusType m_commentStatus; bool m_commentStatusHasBeenSet = false; Aws::String m_recipientId; bool m_recipientIdHasBeenSet = false; Aws::String m_contributorId; bool m_contributorIdHasBeenSet = false; }; } // namespace Model } // namespace WorkDocs } // namespace Aws