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

Information about comments added to a document review request.

See * Also:

AWS * API Reference

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

The type of information added to a review request. Currently, only the value * Comment is supported.

*/ inline const DocumentReviewCommentType& GetType() const{ return m_type; } /** *

The type of information added to a review request. Currently, only the value * Comment is supported.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of information added to a review request. Currently, only the value * Comment is supported.

*/ inline void SetType(const DocumentReviewCommentType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of information added to a review request. Currently, only the value * Comment is supported.

*/ inline void SetType(DocumentReviewCommentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of information added to a review request. Currently, only the value * Comment is supported.

*/ inline DocumentReviewCommentSource& WithType(const DocumentReviewCommentType& value) { SetType(value); return *this;} /** *

The type of information added to a review request. Currently, only the value * Comment is supported.

*/ inline DocumentReviewCommentSource& WithType(DocumentReviewCommentType&& value) { SetType(std::move(value)); return *this;} /** *

The content of a comment entered by a user who requests a review of a new * document version, or who reviews the new version.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

The content of a comment entered by a user who requests a review of a new * document version, or who reviews the new version.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The content of a comment entered by a user who requests a review of a new * document version, or who reviews the new version.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The content of a comment entered by a user who requests a review of a new * document version, or who reviews the new version.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The content of a comment entered by a user who requests a review of a new * document version, or who reviews the new version.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

The content of a comment entered by a user who requests a review of a new * document version, or who reviews the new version.

*/ inline DocumentReviewCommentSource& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

The content of a comment entered by a user who requests a review of a new * document version, or who reviews the new version.

*/ inline DocumentReviewCommentSource& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

The content of a comment entered by a user who requests a review of a new * document version, or who reviews the new version.

*/ inline DocumentReviewCommentSource& WithContent(const char* value) { SetContent(value); return *this;} private: DocumentReviewCommentType m_type; bool m_typeHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws