/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #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 reviewer's response to a document review * request.

See Also:

AWS * API Reference

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

The date and time that a reviewer entered a response to a document review * request.

*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *

The date and time that a reviewer entered a response to a document review * request.

*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *

The date and time that a reviewer entered a response to a document review * request.

*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *

The date and time that a reviewer entered a response to a document review * request.

*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } /** *

The date and time that a reviewer entered a response to a document review * request.

*/ inline DocumentReviewerResponseSource& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *

The date and time that a reviewer entered a response to a document review * request.

*/ inline DocumentReviewerResponseSource& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} /** *

The date and time that a reviewer last updated a response to a document * review request.

*/ inline const Aws::Utils::DateTime& GetUpdatedTime() const{ return m_updatedTime; } /** *

The date and time that a reviewer last updated a response to a document * review request.

*/ inline bool UpdatedTimeHasBeenSet() const { return m_updatedTimeHasBeenSet; } /** *

The date and time that a reviewer last updated a response to a document * review request.

*/ inline void SetUpdatedTime(const Aws::Utils::DateTime& value) { m_updatedTimeHasBeenSet = true; m_updatedTime = value; } /** *

The date and time that a reviewer last updated a response to a document * review request.

*/ inline void SetUpdatedTime(Aws::Utils::DateTime&& value) { m_updatedTimeHasBeenSet = true; m_updatedTime = std::move(value); } /** *

The date and time that a reviewer last updated a response to a document * review request.

*/ inline DocumentReviewerResponseSource& WithUpdatedTime(const Aws::Utils::DateTime& value) { SetUpdatedTime(value); return *this;} /** *

The date and time that a reviewer last updated a response to a document * review request.

*/ inline DocumentReviewerResponseSource& WithUpdatedTime(Aws::Utils::DateTime&& value) { SetUpdatedTime(std::move(value)); return *this;} /** *

The current review status of a new custom SSM document created by a member of * your organization, or of the latest version of an existing SSM document.

*

Only one version of a document can be in the APPROVED state at a time. When a * new version is approved, the status of the previous version changes to * REJECTED.

Only one version of a document can be in review, or PENDING, at * a time.

*/ inline const ReviewStatus& GetReviewStatus() const{ return m_reviewStatus; } /** *

The current review status of a new custom SSM document created by a member of * your organization, or of the latest version of an existing SSM document.

*

Only one version of a document can be in the APPROVED state at a time. When a * new version is approved, the status of the previous version changes to * REJECTED.

Only one version of a document can be in review, or PENDING, at * a time.

*/ inline bool ReviewStatusHasBeenSet() const { return m_reviewStatusHasBeenSet; } /** *

The current review status of a new custom SSM document created by a member of * your organization, or of the latest version of an existing SSM document.

*

Only one version of a document can be in the APPROVED state at a time. When a * new version is approved, the status of the previous version changes to * REJECTED.

Only one version of a document can be in review, or PENDING, at * a time.

*/ inline void SetReviewStatus(const ReviewStatus& value) { m_reviewStatusHasBeenSet = true; m_reviewStatus = value; } /** *

The current review status of a new custom SSM document created by a member of * your organization, or of the latest version of an existing SSM document.

*

Only one version of a document can be in the APPROVED state at a time. When a * new version is approved, the status of the previous version changes to * REJECTED.

Only one version of a document can be in review, or PENDING, at * a time.

*/ inline void SetReviewStatus(ReviewStatus&& value) { m_reviewStatusHasBeenSet = true; m_reviewStatus = std::move(value); } /** *

The current review status of a new custom SSM document created by a member of * your organization, or of the latest version of an existing SSM document.

*

Only one version of a document can be in the APPROVED state at a time. When a * new version is approved, the status of the previous version changes to * REJECTED.

Only one version of a document can be in review, or PENDING, at * a time.

*/ inline DocumentReviewerResponseSource& WithReviewStatus(const ReviewStatus& value) { SetReviewStatus(value); return *this;} /** *

The current review status of a new custom SSM document created by a member of * your organization, or of the latest version of an existing SSM document.

*

Only one version of a document can be in the APPROVED state at a time. When a * new version is approved, the status of the previous version changes to * REJECTED.

Only one version of a document can be in review, or PENDING, at * a time.

*/ inline DocumentReviewerResponseSource& WithReviewStatus(ReviewStatus&& value) { SetReviewStatus(std::move(value)); return *this;} /** *

The comment entered by a reviewer as part of their document review * response.

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

The comment entered by a reviewer as part of their document review * response.

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

The comment entered by a reviewer as part of their document review * response.

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

The comment entered by a reviewer as part of their document review * response.

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

The comment entered by a reviewer as part of their document review * response.

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

The comment entered by a reviewer as part of their document review * response.

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

The comment entered by a reviewer as part of their document review * response.

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

The comment entered by a reviewer as part of their document review * response.

*/ inline DocumentReviewerResponseSource& AddComment(DocumentReviewCommentSource&& value) { m_commentHasBeenSet = true; m_comment.push_back(std::move(value)); return *this; } /** *

The user in your organization assigned to review a document request.

*/ inline const Aws::String& GetReviewer() const{ return m_reviewer; } /** *

The user in your organization assigned to review a document request.

*/ inline bool ReviewerHasBeenSet() const { return m_reviewerHasBeenSet; } /** *

The user in your organization assigned to review a document request.

*/ inline void SetReviewer(const Aws::String& value) { m_reviewerHasBeenSet = true; m_reviewer = value; } /** *

The user in your organization assigned to review a document request.

*/ inline void SetReviewer(Aws::String&& value) { m_reviewerHasBeenSet = true; m_reviewer = std::move(value); } /** *

The user in your organization assigned to review a document request.

*/ inline void SetReviewer(const char* value) { m_reviewerHasBeenSet = true; m_reviewer.assign(value); } /** *

The user in your organization assigned to review a document request.

*/ inline DocumentReviewerResponseSource& WithReviewer(const Aws::String& value) { SetReviewer(value); return *this;} /** *

The user in your organization assigned to review a document request.

*/ inline DocumentReviewerResponseSource& WithReviewer(Aws::String&& value) { SetReviewer(std::move(value)); return *this;} /** *

The user in your organization assigned to review a document request.

*/ inline DocumentReviewerResponseSource& WithReviewer(const char* value) { SetReviewer(value); return *this;} private: Aws::Utils::DateTime m_createTime; bool m_createTimeHasBeenSet = false; Aws::Utils::DateTime m_updatedTime; bool m_updatedTimeHasBeenSet = false; ReviewStatus m_reviewStatus; bool m_reviewStatusHasBeenSet = false; Aws::Vector m_comment; bool m_commentHasBeenSet = false; Aws::String m_reviewer; bool m_reviewerHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws