1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/codecommit/CodeCommit_EXPORTS.h> 8 #include <aws/codecommit/CodeCommitRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace CodeCommit 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_CODECOMMIT_API UpdatePullRequestDescriptionRequest : public CodeCommitRequest 22 { 23 public: 24 UpdatePullRequestDescriptionRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "UpdatePullRequestDescription"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The system-generated ID of the pull request. To get this ID, use 39 * <a>ListPullRequests</a>.</p> 40 */ GetPullRequestId()41 inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; } 42 43 /** 44 * <p>The system-generated ID of the pull request. To get this ID, use 45 * <a>ListPullRequests</a>.</p> 46 */ PullRequestIdHasBeenSet()47 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; } 48 49 /** 50 * <p>The system-generated ID of the pull request. To get this ID, use 51 * <a>ListPullRequests</a>.</p> 52 */ SetPullRequestId(const Aws::String & value)53 inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; } 54 55 /** 56 * <p>The system-generated ID of the pull request. To get this ID, use 57 * <a>ListPullRequests</a>.</p> 58 */ SetPullRequestId(Aws::String && value)59 inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); } 60 61 /** 62 * <p>The system-generated ID of the pull request. To get this ID, use 63 * <a>ListPullRequests</a>.</p> 64 */ SetPullRequestId(const char * value)65 inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); } 66 67 /** 68 * <p>The system-generated ID of the pull request. To get this ID, use 69 * <a>ListPullRequests</a>.</p> 70 */ WithPullRequestId(const Aws::String & value)71 inline UpdatePullRequestDescriptionRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;} 72 73 /** 74 * <p>The system-generated ID of the pull request. To get this ID, use 75 * <a>ListPullRequests</a>.</p> 76 */ WithPullRequestId(Aws::String && value)77 inline UpdatePullRequestDescriptionRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;} 78 79 /** 80 * <p>The system-generated ID of the pull request. To get this ID, use 81 * <a>ListPullRequests</a>.</p> 82 */ WithPullRequestId(const char * value)83 inline UpdatePullRequestDescriptionRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;} 84 85 86 /** 87 * <p>The updated content of the description for the pull request. This content 88 * replaces the existing description.</p> 89 */ GetDescription()90 inline const Aws::String& GetDescription() const{ return m_description; } 91 92 /** 93 * <p>The updated content of the description for the pull request. This content 94 * replaces the existing description.</p> 95 */ DescriptionHasBeenSet()96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } 97 98 /** 99 * <p>The updated content of the description for the pull request. This content 100 * replaces the existing description.</p> 101 */ SetDescription(const Aws::String & value)102 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } 103 104 /** 105 * <p>The updated content of the description for the pull request. This content 106 * replaces the existing description.</p> 107 */ SetDescription(Aws::String && value)108 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } 109 110 /** 111 * <p>The updated content of the description for the pull request. This content 112 * replaces the existing description.</p> 113 */ SetDescription(const char * value)114 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } 115 116 /** 117 * <p>The updated content of the description for the pull request. This content 118 * replaces the existing description.</p> 119 */ WithDescription(const Aws::String & value)120 inline UpdatePullRequestDescriptionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} 121 122 /** 123 * <p>The updated content of the description for the pull request. This content 124 * replaces the existing description.</p> 125 */ WithDescription(Aws::String && value)126 inline UpdatePullRequestDescriptionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} 127 128 /** 129 * <p>The updated content of the description for the pull request. This content 130 * replaces the existing description.</p> 131 */ WithDescription(const char * value)132 inline UpdatePullRequestDescriptionRequest& WithDescription(const char* value) { SetDescription(value); return *this;} 133 134 private: 135 136 Aws::String m_pullRequestId; 137 bool m_pullRequestIdHasBeenSet; 138 139 Aws::String m_description; 140 bool m_descriptionHasBeenSet; 141 }; 142 143 } // namespace Model 144 } // namespace CodeCommit 145 } // namespace Aws 146