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 GetCommentReactionsRequest : public CodeCommitRequest
22   {
23   public:
24     GetCommentReactionsRequest();
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 "GetCommentReactions"; }
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 for which you want to get reactions information.</p>
39      */
GetCommentId()40     inline const Aws::String& GetCommentId() const{ return m_commentId; }
41 
42     /**
43      * <p>The ID of the comment for which you want to get reactions information.</p>
44      */
CommentIdHasBeenSet()45     inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
46 
47     /**
48      * <p>The ID of the comment for which you want to get reactions information.</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 for which you want to get reactions information.</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 for which you want to get reactions information.</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 for which you want to get reactions information.</p>
64      */
WithCommentId(const Aws::String & value)65     inline GetCommentReactionsRequest& WithCommentId(const Aws::String& value) { SetCommentId(value); return *this;}
66 
67     /**
68      * <p>The ID of the comment for which you want to get reactions information.</p>
69      */
WithCommentId(Aws::String && value)70     inline GetCommentReactionsRequest& WithCommentId(Aws::String&& value) { SetCommentId(std::move(value)); return *this;}
71 
72     /**
73      * <p>The ID of the comment for which you want to get reactions information.</p>
74      */
WithCommentId(const char * value)75     inline GetCommentReactionsRequest& WithCommentId(const char* value) { SetCommentId(value); return *this;}
76 
77 
78     /**
79      * <p>Optional. The Amazon Resource Name (ARN) of the user or identity for which
80      * you want to get reaction information.</p>
81      */
GetReactionUserArn()82     inline const Aws::String& GetReactionUserArn() const{ return m_reactionUserArn; }
83 
84     /**
85      * <p>Optional. The Amazon Resource Name (ARN) of the user or identity for which
86      * you want to get reaction information.</p>
87      */
ReactionUserArnHasBeenSet()88     inline bool ReactionUserArnHasBeenSet() const { return m_reactionUserArnHasBeenSet; }
89 
90     /**
91      * <p>Optional. The Amazon Resource Name (ARN) of the user or identity for which
92      * you want to get reaction information.</p>
93      */
SetReactionUserArn(const Aws::String & value)94     inline void SetReactionUserArn(const Aws::String& value) { m_reactionUserArnHasBeenSet = true; m_reactionUserArn = value; }
95 
96     /**
97      * <p>Optional. The Amazon Resource Name (ARN) of the user or identity for which
98      * you want to get reaction information.</p>
99      */
SetReactionUserArn(Aws::String && value)100     inline void SetReactionUserArn(Aws::String&& value) { m_reactionUserArnHasBeenSet = true; m_reactionUserArn = std::move(value); }
101 
102     /**
103      * <p>Optional. The Amazon Resource Name (ARN) of the user or identity for which
104      * you want to get reaction information.</p>
105      */
SetReactionUserArn(const char * value)106     inline void SetReactionUserArn(const char* value) { m_reactionUserArnHasBeenSet = true; m_reactionUserArn.assign(value); }
107 
108     /**
109      * <p>Optional. The Amazon Resource Name (ARN) of the user or identity for which
110      * you want to get reaction information.</p>
111      */
WithReactionUserArn(const Aws::String & value)112     inline GetCommentReactionsRequest& WithReactionUserArn(const Aws::String& value) { SetReactionUserArn(value); return *this;}
113 
114     /**
115      * <p>Optional. The Amazon Resource Name (ARN) of the user or identity for which
116      * you want to get reaction information.</p>
117      */
WithReactionUserArn(Aws::String && value)118     inline GetCommentReactionsRequest& WithReactionUserArn(Aws::String&& value) { SetReactionUserArn(std::move(value)); return *this;}
119 
120     /**
121      * <p>Optional. The Amazon Resource Name (ARN) of the user or identity for which
122      * you want to get reaction information.</p>
123      */
WithReactionUserArn(const char * value)124     inline GetCommentReactionsRequest& WithReactionUserArn(const char* value) { SetReactionUserArn(value); return *this;}
125 
126 
127     /**
128      * <p>An enumeration token that, when provided in a request, returns the next batch
129      * of the results. </p>
130      */
GetNextToken()131     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
132 
133     /**
134      * <p>An enumeration token that, when provided in a request, returns the next batch
135      * of the results. </p>
136      */
NextTokenHasBeenSet()137     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
138 
139     /**
140      * <p>An enumeration token that, when provided in a request, returns the next batch
141      * of the results. </p>
142      */
SetNextToken(const Aws::String & value)143     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
144 
145     /**
146      * <p>An enumeration token that, when provided in a request, returns the next batch
147      * of the results. </p>
148      */
SetNextToken(Aws::String && value)149     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
150 
151     /**
152      * <p>An enumeration token that, when provided in a request, returns the next batch
153      * of the results. </p>
154      */
SetNextToken(const char * value)155     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
156 
157     /**
158      * <p>An enumeration token that, when provided in a request, returns the next batch
159      * of the results. </p>
160      */
WithNextToken(const Aws::String & value)161     inline GetCommentReactionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
162 
163     /**
164      * <p>An enumeration token that, when provided in a request, returns the next batch
165      * of the results. </p>
166      */
WithNextToken(Aws::String && value)167     inline GetCommentReactionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
168 
169     /**
170      * <p>An enumeration token that, when provided in a request, returns the next batch
171      * of the results. </p>
172      */
WithNextToken(const char * value)173     inline GetCommentReactionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
174 
175 
176     /**
177      * <p>A non-zero, non-negative integer used to limit the number of returned
178      * results. The default is the same as the allowed maximum, 1,000.</p>
179      */
GetMaxResults()180     inline int GetMaxResults() const{ return m_maxResults; }
181 
182     /**
183      * <p>A non-zero, non-negative integer used to limit the number of returned
184      * results. The default is the same as the allowed maximum, 1,000.</p>
185      */
MaxResultsHasBeenSet()186     inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
187 
188     /**
189      * <p>A non-zero, non-negative integer used to limit the number of returned
190      * results. The default is the same as the allowed maximum, 1,000.</p>
191      */
SetMaxResults(int value)192     inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
193 
194     /**
195      * <p>A non-zero, non-negative integer used to limit the number of returned
196      * results. The default is the same as the allowed maximum, 1,000.</p>
197      */
WithMaxResults(int value)198     inline GetCommentReactionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
199 
200   private:
201 
202     Aws::String m_commentId;
203     bool m_commentIdHasBeenSet;
204 
205     Aws::String m_reactionUserArn;
206     bool m_reactionUserArnHasBeenSet;
207 
208     Aws::String m_nextToken;
209     bool m_nextTokenHasBeenSet;
210 
211     int m_maxResults;
212     bool m_maxResultsHasBeenSet;
213   };
214 
215 } // namespace Model
216 } // namespace CodeCommit
217 } // namespace Aws
218