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 PutCommentReactionRequest : public CodeCommitRequest
22   {
23   public:
24     PutCommentReactionRequest();
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 "PutCommentReaction"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>The ID of the comment to which you want to add or update a reaction.</p>
39      */
GetCommentId()40     inline const Aws::String& GetCommentId() const{ return m_commentId; }
41 
42     /**
43      * <p>The ID of the comment to which you want to add or update a reaction.</p>
44      */
CommentIdHasBeenSet()45     inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
46 
47     /**
48      * <p>The ID of the comment to which you want to add or update a reaction.</p>
49      */
SetCommentId(const Aws::String & value)50     inline void SetCommentId(const Aws::String& value) { m_commentIdHasBeenSet = true; m_commentId = value; }
51 
52     /**
53      * <p>The ID of the comment to which you want to add or update a reaction.</p>
54      */
SetCommentId(Aws::String && value)55     inline void SetCommentId(Aws::String&& value) { m_commentIdHasBeenSet = true; m_commentId = std::move(value); }
56 
57     /**
58      * <p>The ID of the comment to which you want to add or update a reaction.</p>
59      */
SetCommentId(const char * value)60     inline void SetCommentId(const char* value) { m_commentIdHasBeenSet = true; m_commentId.assign(value); }
61 
62     /**
63      * <p>The ID of the comment to which you want to add or update a reaction.</p>
64      */
WithCommentId(const Aws::String & value)65     inline PutCommentReactionRequest& WithCommentId(const Aws::String& value) { SetCommentId(value); return *this;}
66 
67     /**
68      * <p>The ID of the comment to which you want to add or update a reaction.</p>
69      */
WithCommentId(Aws::String && value)70     inline PutCommentReactionRequest& WithCommentId(Aws::String&& value) { SetCommentId(std::move(value)); return *this;}
71 
72     /**
73      * <p>The ID of the comment to which you want to add or update a reaction.</p>
74      */
WithCommentId(const char * value)75     inline PutCommentReactionRequest& WithCommentId(const char* value) { SetCommentId(value); return *this;}
76 
77 
78     /**
79      * <p>The emoji reaction you want to add or update. To remove a reaction, provide a
80      * value of blank or null. You can also provide the value of none. For information
81      * about emoji reaction values supported in AWS CodeCommit, see the <a
82      * href="https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table">AWS
83      * CodeCommit User Guide</a>.</p>
84      */
GetReactionValue()85     inline const Aws::String& GetReactionValue() const{ return m_reactionValue; }
86 
87     /**
88      * <p>The emoji reaction you want to add or update. To remove a reaction, provide a
89      * value of blank or null. You can also provide the value of none. For information
90      * about emoji reaction values supported in AWS CodeCommit, see the <a
91      * href="https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table">AWS
92      * CodeCommit User Guide</a>.</p>
93      */
ReactionValueHasBeenSet()94     inline bool ReactionValueHasBeenSet() const { return m_reactionValueHasBeenSet; }
95 
96     /**
97      * <p>The emoji reaction you want to add or update. To remove a reaction, provide a
98      * value of blank or null. You can also provide the value of none. For information
99      * about emoji reaction values supported in AWS CodeCommit, see the <a
100      * href="https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table">AWS
101      * CodeCommit User Guide</a>.</p>
102      */
SetReactionValue(const Aws::String & value)103     inline void SetReactionValue(const Aws::String& value) { m_reactionValueHasBeenSet = true; m_reactionValue = value; }
104 
105     /**
106      * <p>The emoji reaction you want to add or update. To remove a reaction, provide a
107      * value of blank or null. You can also provide the value of none. For information
108      * about emoji reaction values supported in AWS CodeCommit, see the <a
109      * href="https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table">AWS
110      * CodeCommit User Guide</a>.</p>
111      */
SetReactionValue(Aws::String && value)112     inline void SetReactionValue(Aws::String&& value) { m_reactionValueHasBeenSet = true; m_reactionValue = std::move(value); }
113 
114     /**
115      * <p>The emoji reaction you want to add or update. To remove a reaction, provide a
116      * value of blank or null. You can also provide the value of none. For information
117      * about emoji reaction values supported in AWS CodeCommit, see the <a
118      * href="https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table">AWS
119      * CodeCommit User Guide</a>.</p>
120      */
SetReactionValue(const char * value)121     inline void SetReactionValue(const char* value) { m_reactionValueHasBeenSet = true; m_reactionValue.assign(value); }
122 
123     /**
124      * <p>The emoji reaction you want to add or update. To remove a reaction, provide a
125      * value of blank or null. You can also provide the value of none. For information
126      * about emoji reaction values supported in AWS CodeCommit, see the <a
127      * href="https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table">AWS
128      * CodeCommit User Guide</a>.</p>
129      */
WithReactionValue(const Aws::String & value)130     inline PutCommentReactionRequest& WithReactionValue(const Aws::String& value) { SetReactionValue(value); return *this;}
131 
132     /**
133      * <p>The emoji reaction you want to add or update. To remove a reaction, provide a
134      * value of blank or null. You can also provide the value of none. For information
135      * about emoji reaction values supported in AWS CodeCommit, see the <a
136      * href="https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table">AWS
137      * CodeCommit User Guide</a>.</p>
138      */
WithReactionValue(Aws::String && value)139     inline PutCommentReactionRequest& WithReactionValue(Aws::String&& value) { SetReactionValue(std::move(value)); return *this;}
140 
141     /**
142      * <p>The emoji reaction you want to add or update. To remove a reaction, provide a
143      * value of blank or null. You can also provide the value of none. For information
144      * about emoji reaction values supported in AWS CodeCommit, see the <a
145      * href="https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table">AWS
146      * CodeCommit User Guide</a>.</p>
147      */
WithReactionValue(const char * value)148     inline PutCommentReactionRequest& WithReactionValue(const char* value) { SetReactionValue(value); return *this;}
149 
150   private:
151 
152     Aws::String m_commentId;
153     bool m_commentIdHasBeenSet;
154 
155     Aws::String m_reactionValue;
156     bool m_reactionValueHasBeenSet;
157   };
158 
159 } // namespace Model
160 } // namespace CodeCommit
161 } // namespace Aws
162