/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { class PostCommentForPullRequestResult { public: AWS_CODECOMMIT_API PostCommentForPullRequestResult(); AWS_CODECOMMIT_API PostCommentForPullRequestResult(const Aws::AmazonWebServiceResult& result); AWS_CODECOMMIT_API PostCommentForPullRequestResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the repository where you posted a comment on a pull request.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The name of the repository where you posted a comment on a pull request.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryName = value; } /** *

The name of the repository where you posted a comment on a pull request.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryName = std::move(value); } /** *

The name of the repository where you posted a comment on a pull request.

*/ inline void SetRepositoryName(const char* value) { m_repositoryName.assign(value); } /** *

The name of the repository where you posted a comment on a pull request.

*/ inline PostCommentForPullRequestResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The name of the repository where you posted a comment on a pull request.

*/ inline PostCommentForPullRequestResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The name of the repository where you posted a comment on a pull request.

*/ inline PostCommentForPullRequestResult& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

The system-generated ID of the pull request.

*/ inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; } /** *

The system-generated ID of the pull request.

*/ inline void SetPullRequestId(const Aws::String& value) { m_pullRequestId = value; } /** *

The system-generated ID of the pull request.

*/ inline void SetPullRequestId(Aws::String&& value) { m_pullRequestId = std::move(value); } /** *

The system-generated ID of the pull request.

*/ inline void SetPullRequestId(const char* value) { m_pullRequestId.assign(value); } /** *

The system-generated ID of the pull request.

*/ inline PostCommentForPullRequestResult& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;} /** *

The system-generated ID of the pull request.

*/ inline PostCommentForPullRequestResult& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;} /** *

The system-generated ID of the pull request.

*/ inline PostCommentForPullRequestResult& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;} /** *

The full commit ID of the commit in the source branch used to create the pull * request, or in the case of an updated pull request, the full commit ID of the * commit used to update the pull request.

*/ inline const Aws::String& GetBeforeCommitId() const{ return m_beforeCommitId; } /** *

The full commit ID of the commit in the source branch used to create the pull * request, or in the case of an updated pull request, the full commit ID of the * commit used to update the pull request.

*/ inline void SetBeforeCommitId(const Aws::String& value) { m_beforeCommitId = value; } /** *

The full commit ID of the commit in the source branch used to create the pull * request, or in the case of an updated pull request, the full commit ID of the * commit used to update the pull request.

*/ inline void SetBeforeCommitId(Aws::String&& value) { m_beforeCommitId = std::move(value); } /** *

The full commit ID of the commit in the source branch used to create the pull * request, or in the case of an updated pull request, the full commit ID of the * commit used to update the pull request.

*/ inline void SetBeforeCommitId(const char* value) { m_beforeCommitId.assign(value); } /** *

The full commit ID of the commit in the source branch used to create the pull * request, or in the case of an updated pull request, the full commit ID of the * commit used to update the pull request.

*/ inline PostCommentForPullRequestResult& WithBeforeCommitId(const Aws::String& value) { SetBeforeCommitId(value); return *this;} /** *

The full commit ID of the commit in the source branch used to create the pull * request, or in the case of an updated pull request, the full commit ID of the * commit used to update the pull request.

*/ inline PostCommentForPullRequestResult& WithBeforeCommitId(Aws::String&& value) { SetBeforeCommitId(std::move(value)); return *this;} /** *

The full commit ID of the commit in the source branch used to create the pull * request, or in the case of an updated pull request, the full commit ID of the * commit used to update the pull request.

*/ inline PostCommentForPullRequestResult& WithBeforeCommitId(const char* value) { SetBeforeCommitId(value); return *this;} /** *

The full commit ID of the commit in the destination branch where the pull * request is merged.

*/ inline const Aws::String& GetAfterCommitId() const{ return m_afterCommitId; } /** *

The full commit ID of the commit in the destination branch where the pull * request is merged.

*/ inline void SetAfterCommitId(const Aws::String& value) { m_afterCommitId = value; } /** *

The full commit ID of the commit in the destination branch where the pull * request is merged.

*/ inline void SetAfterCommitId(Aws::String&& value) { m_afterCommitId = std::move(value); } /** *

The full commit ID of the commit in the destination branch where the pull * request is merged.

*/ inline void SetAfterCommitId(const char* value) { m_afterCommitId.assign(value); } /** *

The full commit ID of the commit in the destination branch where the pull * request is merged.

*/ inline PostCommentForPullRequestResult& WithAfterCommitId(const Aws::String& value) { SetAfterCommitId(value); return *this;} /** *

The full commit ID of the commit in the destination branch where the pull * request is merged.

*/ inline PostCommentForPullRequestResult& WithAfterCommitId(Aws::String&& value) { SetAfterCommitId(std::move(value)); return *this;} /** *

The full commit ID of the commit in the destination branch where the pull * request is merged.

*/ inline PostCommentForPullRequestResult& WithAfterCommitId(const char* value) { SetAfterCommitId(value); return *this;} /** *

In the directionality of the pull request, the blob ID of the before * blob.

*/ inline const Aws::String& GetBeforeBlobId() const{ return m_beforeBlobId; } /** *

In the directionality of the pull request, the blob ID of the before * blob.

*/ inline void SetBeforeBlobId(const Aws::String& value) { m_beforeBlobId = value; } /** *

In the directionality of the pull request, the blob ID of the before * blob.

*/ inline void SetBeforeBlobId(Aws::String&& value) { m_beforeBlobId = std::move(value); } /** *

In the directionality of the pull request, the blob ID of the before * blob.

*/ inline void SetBeforeBlobId(const char* value) { m_beforeBlobId.assign(value); } /** *

In the directionality of the pull request, the blob ID of the before * blob.

*/ inline PostCommentForPullRequestResult& WithBeforeBlobId(const Aws::String& value) { SetBeforeBlobId(value); return *this;} /** *

In the directionality of the pull request, the blob ID of the before * blob.

*/ inline PostCommentForPullRequestResult& WithBeforeBlobId(Aws::String&& value) { SetBeforeBlobId(std::move(value)); return *this;} /** *

In the directionality of the pull request, the blob ID of the before * blob.

*/ inline PostCommentForPullRequestResult& WithBeforeBlobId(const char* value) { SetBeforeBlobId(value); return *this;} /** *

In the directionality of the pull request, the blob ID of the after blob.

*/ inline const Aws::String& GetAfterBlobId() const{ return m_afterBlobId; } /** *

In the directionality of the pull request, the blob ID of the after blob.

*/ inline void SetAfterBlobId(const Aws::String& value) { m_afterBlobId = value; } /** *

In the directionality of the pull request, the blob ID of the after blob.

*/ inline void SetAfterBlobId(Aws::String&& value) { m_afterBlobId = std::move(value); } /** *

In the directionality of the pull request, the blob ID of the after blob.

*/ inline void SetAfterBlobId(const char* value) { m_afterBlobId.assign(value); } /** *

In the directionality of the pull request, the blob ID of the after blob.

*/ inline PostCommentForPullRequestResult& WithAfterBlobId(const Aws::String& value) { SetAfterBlobId(value); return *this;} /** *

In the directionality of the pull request, the blob ID of the after blob.

*/ inline PostCommentForPullRequestResult& WithAfterBlobId(Aws::String&& value) { SetAfterBlobId(std::move(value)); return *this;} /** *

In the directionality of the pull request, the blob ID of the after blob.

*/ inline PostCommentForPullRequestResult& WithAfterBlobId(const char* value) { SetAfterBlobId(value); return *this;} /** *

The location of the change where you posted your comment.

*/ inline const Location& GetLocation() const{ return m_location; } /** *

The location of the change where you posted your comment.

*/ inline void SetLocation(const Location& value) { m_location = value; } /** *

The location of the change where you posted your comment.

*/ inline void SetLocation(Location&& value) { m_location = std::move(value); } /** *

The location of the change where you posted your comment.

*/ inline PostCommentForPullRequestResult& WithLocation(const Location& value) { SetLocation(value); return *this;} /** *

The location of the change where you posted your comment.

*/ inline PostCommentForPullRequestResult& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;} /** *

The content of the comment you posted.

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

The content of the comment you posted.

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

The content of the comment you posted.

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

The content of the comment you posted.

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

The content of the comment you posted.

*/ inline PostCommentForPullRequestResult& 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 PostCommentForPullRequestResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PostCommentForPullRequestResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PostCommentForPullRequestResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_repositoryName; Aws::String m_pullRequestId; Aws::String m_beforeCommitId; Aws::String m_afterCommitId; Aws::String m_beforeBlobId; Aws::String m_afterBlobId; Location m_location; Comment m_comment; Aws::String m_requestId; }; } // namespace Model } // namespace CodeCommit } // namespace Aws