/**
* 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; }
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
inline void SetAction(const DocumentReviewAction& value) { m_actionHasBeenSet = true; m_action = value; }
inline void SetAction(DocumentReviewAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
inline DocumentReviews& WithAction(const DocumentReviewAction& value) { SetAction(value); return *this;}
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; }
inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
inline void SetComment(const Aws::Vector& value) { m_commentHasBeenSet = true; m_comment = value; }
inline void SetComment(Aws::Vector&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
inline DocumentReviews& WithComment(const Aws::Vector& value) { SetComment(value); return *this;}
inline DocumentReviews& WithComment(Aws::Vector&& value) { SetComment(std::move(value)); return *this;}
inline DocumentReviews& AddComment(const DocumentReviewCommentSource& value) { m_commentHasBeenSet = true; m_comment.push_back(value); return *this; }
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