/** * 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 CodeCommit { namespace Model { /** */ class UpdatePullRequestDescriptionRequest : public CodeCommitRequest { public: AWS_CODECOMMIT_API UpdatePullRequestDescriptionRequest(); // 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 "UpdatePullRequestDescription"; } AWS_CODECOMMIT_API Aws::String SerializePayload() const override; AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

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

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

*/ inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; } /** *

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

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

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

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

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

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

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

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

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

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

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

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

The updated content of the description for the pull request. This content * replaces the existing description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The updated content of the description for the pull request. This content * replaces the existing description.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The updated content of the description for the pull request. This content * replaces the existing description.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The updated content of the description for the pull request. This content * replaces the existing description.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The updated content of the description for the pull request. This content * replaces the existing description.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The updated content of the description for the pull request. This content * replaces the existing description.

*/ inline UpdatePullRequestDescriptionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The updated content of the description for the pull request. This content * replaces the existing description.

*/ inline UpdatePullRequestDescriptionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The updated content of the description for the pull request. This content * replaces the existing description.

*/ inline UpdatePullRequestDescriptionRequest& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_pullRequestId; bool m_pullRequestIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws