/** * 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 CodeCommit { namespace Model { /** */ class PostCommentReplyRequest : public CodeCommitRequest { public: AWS_CODECOMMIT_API PostCommentReplyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PostCommentReply"; } AWS_CODECOMMIT_API Aws::String SerializePayload() const override; AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The system-generated ID of the comment to which you want to reply. To get * this ID, use GetCommentsForComparedCommit or * GetCommentsForPullRequest.

*/ inline const Aws::String& GetInReplyTo() const{ return m_inReplyTo; } /** *

The system-generated ID of the comment to which you want to reply. To get * this ID, use GetCommentsForComparedCommit or * GetCommentsForPullRequest.

*/ inline bool InReplyToHasBeenSet() const { return m_inReplyToHasBeenSet; } /** *

The system-generated ID of the comment to which you want to reply. To get * this ID, use GetCommentsForComparedCommit or * GetCommentsForPullRequest.

*/ inline void SetInReplyTo(const Aws::String& value) { m_inReplyToHasBeenSet = true; m_inReplyTo = value; } /** *

The system-generated ID of the comment to which you want to reply. To get * this ID, use GetCommentsForComparedCommit or * GetCommentsForPullRequest.

*/ inline void SetInReplyTo(Aws::String&& value) { m_inReplyToHasBeenSet = true; m_inReplyTo = std::move(value); } /** *

The system-generated ID of the comment to which you want to reply. To get * this ID, use GetCommentsForComparedCommit or * GetCommentsForPullRequest.

*/ inline void SetInReplyTo(const char* value) { m_inReplyToHasBeenSet = true; m_inReplyTo.assign(value); } /** *

The system-generated ID of the comment to which you want to reply. To get * this ID, use GetCommentsForComparedCommit or * GetCommentsForPullRequest.

*/ inline PostCommentReplyRequest& WithInReplyTo(const Aws::String& value) { SetInReplyTo(value); return *this;} /** *

The system-generated ID of the comment to which you want to reply. To get * this ID, use GetCommentsForComparedCommit or * GetCommentsForPullRequest.

*/ inline PostCommentReplyRequest& WithInReplyTo(Aws::String&& value) { SetInReplyTo(std::move(value)); return *this;} /** *

The system-generated ID of the comment to which you want to reply. To get * this ID, use GetCommentsForComparedCommit or * GetCommentsForPullRequest.

*/ inline PostCommentReplyRequest& WithInReplyTo(const char* value) { SetInReplyTo(value); return *this;} /** *

A unique, client-generated idempotency token that, when provided in a * request, ensures the request cannot be repeated with a changed parameter. If a * request is received with the same parameters and a token is included, the * request returns information about the initial request that used that token.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

A unique, client-generated idempotency token that, when provided in a * request, ensures the request cannot be repeated with a changed parameter. If a * request is received with the same parameters and a token is included, the * request returns information about the initial request that used that token.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

A unique, client-generated idempotency token that, when provided in a * request, ensures the request cannot be repeated with a changed parameter. If a * request is received with the same parameters and a token is included, the * request returns information about the initial request that used that token.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

A unique, client-generated idempotency token that, when provided in a * request, ensures the request cannot be repeated with a changed parameter. If a * request is received with the same parameters and a token is included, the * request returns information about the initial request that used that token.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

A unique, client-generated idempotency token that, when provided in a * request, ensures the request cannot be repeated with a changed parameter. If a * request is received with the same parameters and a token is included, the * request returns information about the initial request that used that token.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

A unique, client-generated idempotency token that, when provided in a * request, ensures the request cannot be repeated with a changed parameter. If a * request is received with the same parameters and a token is included, the * request returns information about the initial request that used that token.

*/ inline PostCommentReplyRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

A unique, client-generated idempotency token that, when provided in a * request, ensures the request cannot be repeated with a changed parameter. If a * request is received with the same parameters and a token is included, the * request returns information about the initial request that used that token.

*/ inline PostCommentReplyRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

A unique, client-generated idempotency token that, when provided in a * request, ensures the request cannot be repeated with a changed parameter. If a * request is received with the same parameters and a token is included, the * request returns information about the initial request that used that token.

*/ inline PostCommentReplyRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The contents of your reply to a comment.

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

The contents of your reply to a comment.

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

The contents of your reply to a comment.

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

The contents of your reply to a comment.

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

The contents of your reply to a comment.

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

The contents of your reply to a comment.

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

The contents of your reply to a comment.

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

The contents of your reply to a comment.

*/ inline PostCommentReplyRequest& WithContent(const char* value) { SetContent(value); return *this;} private: Aws::String m_inReplyTo; bool m_inReplyToHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws