/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace WorkDocs { namespace Model { class CreateCommentResult { public: AWS_WORKDOCS_API CreateCommentResult(); AWS_WORKDOCS_API CreateCommentResult(const Aws::AmazonWebServiceResult& result); AWS_WORKDOCS_API CreateCommentResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The comment that has been created.

*/ inline const Comment& GetComment() const{ return m_comment; } /** *

The comment that has been created.

*/ inline void SetComment(const Comment& value) { m_comment = value; } /** *

The comment that has been created.

*/ inline void SetComment(Comment&& value) { m_comment = std::move(value); } /** *

The comment that has been created.

*/ inline CreateCommentResult& WithComment(const Comment& value) { SetComment(value); return *this;} /** *

The comment that has been created.

*/ inline CreateCommentResult& WithComment(Comment&& value) { SetComment(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateCommentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateCommentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateCommentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Comment m_comment; Aws::String m_requestId; }; } // namespace Model } // namespace WorkDocs } // namespace Aws