/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSM { namespace Model { /** *

Information about a document approval review.

See Also:

AWS * API Reference

*/ class DocumentReviews { public: AWS_SSM_API DocumentReviews(); AWS_SSM_API DocumentReviews(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API DocumentReviews& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The action to take on a document approval review request.

*/ inline const DocumentReviewAction& GetAction() const{ return m_action; } /** *

The action to take on a document approval review request.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

The action to take on a document approval review request.

*/ inline void SetAction(const DocumentReviewAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *

The action to take on a document approval review request.

*/ inline void SetAction(DocumentReviewAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

The action to take on a document approval review request.

*/ inline DocumentReviews& WithAction(const DocumentReviewAction& value) { SetAction(value); return *this;} /** *

The action to take on a document approval review request.

*/ inline DocumentReviews& WithAction(DocumentReviewAction&& value) { SetAction(std::move(value)); return *this;} /** *

A comment entered by a user in your organization about the document review * request.

*/ inline const Aws::Vector& GetComment() const{ return m_comment; } /** *

A comment entered by a user in your organization about the document review * request.

*/ inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } /** *

A comment entered by a user in your organization about the document review * request.

*/ inline void SetComment(const Aws::Vector& value) { m_commentHasBeenSet = true; m_comment = value; } /** *

A comment entered by a user in your organization about the document review * request.

*/ inline void SetComment(Aws::Vector&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } /** *

A comment entered by a user in your organization about the document review * request.

*/ inline DocumentReviews& WithComment(const Aws::Vector& value) { SetComment(value); return *this;} /** *

A comment entered by a user in your organization about the document review * request.

*/ inline DocumentReviews& WithComment(Aws::Vector&& value) { SetComment(std::move(value)); return *this;} /** *

A comment entered by a user in your organization about the document review * request.

*/ inline DocumentReviews& AddComment(const DocumentReviewCommentSource& value) { m_commentHasBeenSet = true; m_comment.push_back(value); return *this; } /** *

A comment entered by a user in your organization about the document review * request.

*/ inline DocumentReviews& AddComment(DocumentReviewCommentSource&& value) { m_commentHasBeenSet = true; m_comment.push_back(std::move(value)); return *this; } private: DocumentReviewAction m_action; bool m_actionHasBeenSet = false; Aws::Vector m_comment; bool m_commentHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws