/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A comment that's posted by a user on a control. This includes the author's
* name, the comment text, and a timestamp. See Also:
AWS
* API Reference
The name of the user who authored the comment.
*/ inline const Aws::String& GetAuthorName() const{ return m_authorName; } /** *The name of the user who authored the comment.
*/ inline bool AuthorNameHasBeenSet() const { return m_authorNameHasBeenSet; } /** *The name of the user who authored the comment.
*/ inline void SetAuthorName(const Aws::String& value) { m_authorNameHasBeenSet = true; m_authorName = value; } /** *The name of the user who authored the comment.
*/ inline void SetAuthorName(Aws::String&& value) { m_authorNameHasBeenSet = true; m_authorName = std::move(value); } /** *The name of the user who authored the comment.
*/ inline void SetAuthorName(const char* value) { m_authorNameHasBeenSet = true; m_authorName.assign(value); } /** *The name of the user who authored the comment.
*/ inline ControlComment& WithAuthorName(const Aws::String& value) { SetAuthorName(value); return *this;} /** *The name of the user who authored the comment.
*/ inline ControlComment& WithAuthorName(Aws::String&& value) { SetAuthorName(std::move(value)); return *this;} /** *The name of the user who authored the comment.
*/ inline ControlComment& WithAuthorName(const char* value) { SetAuthorName(value); return *this;} /** *The body text of a control comment.
*/ inline const Aws::String& GetCommentBody() const{ return m_commentBody; } /** *The body text of a control comment.
*/ inline bool CommentBodyHasBeenSet() const { return m_commentBodyHasBeenSet; } /** *The body text of a control comment.
*/ inline void SetCommentBody(const Aws::String& value) { m_commentBodyHasBeenSet = true; m_commentBody = value; } /** *The body text of a control comment.
*/ inline void SetCommentBody(Aws::String&& value) { m_commentBodyHasBeenSet = true; m_commentBody = std::move(value); } /** *The body text of a control comment.
*/ inline void SetCommentBody(const char* value) { m_commentBodyHasBeenSet = true; m_commentBody.assign(value); } /** *The body text of a control comment.
*/ inline ControlComment& WithCommentBody(const Aws::String& value) { SetCommentBody(value); return *this;} /** *The body text of a control comment.
*/ inline ControlComment& WithCommentBody(Aws::String&& value) { SetCommentBody(std::move(value)); return *this;} /** *The body text of a control comment.
*/ inline ControlComment& WithCommentBody(const char* value) { SetCommentBody(value); return *this;} /** *The time when the comment was posted.
*/ inline const Aws::Utils::DateTime& GetPostedDate() const{ return m_postedDate; } /** *The time when the comment was posted.
*/ inline bool PostedDateHasBeenSet() const { return m_postedDateHasBeenSet; } /** *The time when the comment was posted.
*/ inline void SetPostedDate(const Aws::Utils::DateTime& value) { m_postedDateHasBeenSet = true; m_postedDate = value; } /** *The time when the comment was posted.
*/ inline void SetPostedDate(Aws::Utils::DateTime&& value) { m_postedDateHasBeenSet = true; m_postedDate = std::move(value); } /** *The time when the comment was posted.
*/ inline ControlComment& WithPostedDate(const Aws::Utils::DateTime& value) { SetPostedDate(value); return *this;} /** *The time when the comment was posted.
*/ inline ControlComment& WithPostedDate(Aws::Utils::DateTime&& value) { SetPostedDate(std::move(value)); return *this;} private: Aws::String m_authorName; bool m_authorNameHasBeenSet = false; Aws::String m_commentBody; bool m_commentBodyHasBeenSet = false; Aws::Utils::DateTime m_postedDate; bool m_postedDateHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws