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 DeleteCommentContentRequest : public CodeCommitRequest 22 { 23 public: 24 DeleteCommentContentRequest(); 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 "DeleteCommentContent"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The unique, system-generated ID of the comment. To get this ID, use 39 * <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p> 40 */ GetCommentId()41 inline const Aws::String& GetCommentId() const{ return m_commentId; } 42 43 /** 44 * <p>The unique, system-generated ID of the comment. To get this ID, use 45 * <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p> 46 */ CommentIdHasBeenSet()47 inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; } 48 49 /** 50 * <p>The unique, system-generated ID of the comment. To get this ID, use 51 * <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p> 52 */ SetCommentId(const Aws::String & value)53 inline void SetCommentId(const Aws::String& value) { m_commentIdHasBeenSet = true; m_commentId = value; } 54 55 /** 56 * <p>The unique, system-generated ID of the comment. To get this ID, use 57 * <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p> 58 */ SetCommentId(Aws::String && value)59 inline void SetCommentId(Aws::String&& value) { m_commentIdHasBeenSet = true; m_commentId = std::move(value); } 60 61 /** 62 * <p>The unique, system-generated ID of the comment. To get this ID, use 63 * <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p> 64 */ SetCommentId(const char * value)65 inline void SetCommentId(const char* value) { m_commentIdHasBeenSet = true; m_commentId.assign(value); } 66 67 /** 68 * <p>The unique, system-generated ID of the comment. To get this ID, use 69 * <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p> 70 */ WithCommentId(const Aws::String & value)71 inline DeleteCommentContentRequest& WithCommentId(const Aws::String& value) { SetCommentId(value); return *this;} 72 73 /** 74 * <p>The unique, system-generated ID of the comment. To get this ID, use 75 * <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p> 76 */ WithCommentId(Aws::String && value)77 inline DeleteCommentContentRequest& WithCommentId(Aws::String&& value) { SetCommentId(std::move(value)); return *this;} 78 79 /** 80 * <p>The unique, system-generated ID of the comment. To get this ID, use 81 * <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p> 82 */ WithCommentId(const char * value)83 inline DeleteCommentContentRequest& WithCommentId(const char* value) { SetCommentId(value); return *this;} 84 85 private: 86 87 Aws::String m_commentId; 88 bool m_commentIdHasBeenSet; 89 }; 90 91 } // namespace Model 92 } // namespace CodeCommit 93 } // namespace Aws 94