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 GetCommentsForComparedCommitRequest : public CodeCommitRequest
22   {
23   public:
24     GetCommentsForComparedCommitRequest();
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 "GetCommentsForComparedCommit"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>The name of the repository where you want to compare commits.</p>
39      */
GetRepositoryName()40     inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
41 
42     /**
43      * <p>The name of the repository where you want to compare commits.</p>
44      */
RepositoryNameHasBeenSet()45     inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
46 
47     /**
48      * <p>The name of the repository where you want to compare commits.</p>
49      */
SetRepositoryName(const Aws::String & value)50     inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
51 
52     /**
53      * <p>The name of the repository where you want to compare commits.</p>
54      */
SetRepositoryName(Aws::String && value)55     inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
56 
57     /**
58      * <p>The name of the repository where you want to compare commits.</p>
59      */
SetRepositoryName(const char * value)60     inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
61 
62     /**
63      * <p>The name of the repository where you want to compare commits.</p>
64      */
WithRepositoryName(const Aws::String & value)65     inline GetCommentsForComparedCommitRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
66 
67     /**
68      * <p>The name of the repository where you want to compare commits.</p>
69      */
WithRepositoryName(Aws::String && value)70     inline GetCommentsForComparedCommitRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
71 
72     /**
73      * <p>The name of the repository where you want to compare commits.</p>
74      */
WithRepositoryName(const char * value)75     inline GetCommentsForComparedCommitRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
76 
77 
78     /**
79      * <p>To establish the directionality of the comparison, the full commit ID of the
80      * before commit.</p>
81      */
GetBeforeCommitId()82     inline const Aws::String& GetBeforeCommitId() const{ return m_beforeCommitId; }
83 
84     /**
85      * <p>To establish the directionality of the comparison, the full commit ID of the
86      * before commit.</p>
87      */
BeforeCommitIdHasBeenSet()88     inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; }
89 
90     /**
91      * <p>To establish the directionality of the comparison, the full commit ID of the
92      * before commit.</p>
93      */
SetBeforeCommitId(const Aws::String & value)94     inline void SetBeforeCommitId(const Aws::String& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = value; }
95 
96     /**
97      * <p>To establish the directionality of the comparison, the full commit ID of the
98      * before commit.</p>
99      */
SetBeforeCommitId(Aws::String && value)100     inline void SetBeforeCommitId(Aws::String&& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = std::move(value); }
101 
102     /**
103      * <p>To establish the directionality of the comparison, the full commit ID of the
104      * before commit.</p>
105      */
SetBeforeCommitId(const char * value)106     inline void SetBeforeCommitId(const char* value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId.assign(value); }
107 
108     /**
109      * <p>To establish the directionality of the comparison, the full commit ID of the
110      * before commit.</p>
111      */
WithBeforeCommitId(const Aws::String & value)112     inline GetCommentsForComparedCommitRequest& WithBeforeCommitId(const Aws::String& value) { SetBeforeCommitId(value); return *this;}
113 
114     /**
115      * <p>To establish the directionality of the comparison, the full commit ID of the
116      * before commit.</p>
117      */
WithBeforeCommitId(Aws::String && value)118     inline GetCommentsForComparedCommitRequest& WithBeforeCommitId(Aws::String&& value) { SetBeforeCommitId(std::move(value)); return *this;}
119 
120     /**
121      * <p>To establish the directionality of the comparison, the full commit ID of the
122      * before commit.</p>
123      */
WithBeforeCommitId(const char * value)124     inline GetCommentsForComparedCommitRequest& WithBeforeCommitId(const char* value) { SetBeforeCommitId(value); return *this;}
125 
126 
127     /**
128      * <p>To establish the directionality of the comparison, the full commit ID of the
129      * after commit.</p>
130      */
GetAfterCommitId()131     inline const Aws::String& GetAfterCommitId() const{ return m_afterCommitId; }
132 
133     /**
134      * <p>To establish the directionality of the comparison, the full commit ID of the
135      * after commit.</p>
136      */
AfterCommitIdHasBeenSet()137     inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; }
138 
139     /**
140      * <p>To establish the directionality of the comparison, the full commit ID of the
141      * after commit.</p>
142      */
SetAfterCommitId(const Aws::String & value)143     inline void SetAfterCommitId(const Aws::String& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = value; }
144 
145     /**
146      * <p>To establish the directionality of the comparison, the full commit ID of the
147      * after commit.</p>
148      */
SetAfterCommitId(Aws::String && value)149     inline void SetAfterCommitId(Aws::String&& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = std::move(value); }
150 
151     /**
152      * <p>To establish the directionality of the comparison, the full commit ID of the
153      * after commit.</p>
154      */
SetAfterCommitId(const char * value)155     inline void SetAfterCommitId(const char* value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId.assign(value); }
156 
157     /**
158      * <p>To establish the directionality of the comparison, the full commit ID of the
159      * after commit.</p>
160      */
WithAfterCommitId(const Aws::String & value)161     inline GetCommentsForComparedCommitRequest& WithAfterCommitId(const Aws::String& value) { SetAfterCommitId(value); return *this;}
162 
163     /**
164      * <p>To establish the directionality of the comparison, the full commit ID of the
165      * after commit.</p>
166      */
WithAfterCommitId(Aws::String && value)167     inline GetCommentsForComparedCommitRequest& WithAfterCommitId(Aws::String&& value) { SetAfterCommitId(std::move(value)); return *this;}
168 
169     /**
170      * <p>To establish the directionality of the comparison, the full commit ID of the
171      * after commit.</p>
172      */
WithAfterCommitId(const char * value)173     inline GetCommentsForComparedCommitRequest& WithAfterCommitId(const char* value) { SetAfterCommitId(value); return *this;}
174 
175 
176     /**
177      * <p>An enumeration token that when provided in a request, returns the next batch
178      * of the results. </p>
179      */
GetNextToken()180     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
181 
182     /**
183      * <p>An enumeration token that when provided in a request, returns the next batch
184      * of the results. </p>
185      */
NextTokenHasBeenSet()186     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
187 
188     /**
189      * <p>An enumeration token that when provided in a request, returns the next batch
190      * of the results. </p>
191      */
SetNextToken(const Aws::String & value)192     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
193 
194     /**
195      * <p>An enumeration token that when provided in a request, returns the next batch
196      * of the results. </p>
197      */
SetNextToken(Aws::String && value)198     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
199 
200     /**
201      * <p>An enumeration token that when provided in a request, returns the next batch
202      * of the results. </p>
203      */
SetNextToken(const char * value)204     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
205 
206     /**
207      * <p>An enumeration token that when provided in a request, returns the next batch
208      * of the results. </p>
209      */
WithNextToken(const Aws::String & value)210     inline GetCommentsForComparedCommitRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
211 
212     /**
213      * <p>An enumeration token that when provided in a request, returns the next batch
214      * of the results. </p>
215      */
WithNextToken(Aws::String && value)216     inline GetCommentsForComparedCommitRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
217 
218     /**
219      * <p>An enumeration token that when provided in a request, returns the next batch
220      * of the results. </p>
221      */
WithNextToken(const char * value)222     inline GetCommentsForComparedCommitRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
223 
224 
225     /**
226      * <p>A non-zero, non-negative integer used to limit the number of returned
227      * results. The default is 100 comments, but you can configure up to 500.</p>
228      */
GetMaxResults()229     inline int GetMaxResults() const{ return m_maxResults; }
230 
231     /**
232      * <p>A non-zero, non-negative integer used to limit the number of returned
233      * results. The default is 100 comments, but you can configure up to 500.</p>
234      */
MaxResultsHasBeenSet()235     inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
236 
237     /**
238      * <p>A non-zero, non-negative integer used to limit the number of returned
239      * results. The default is 100 comments, but you can configure up to 500.</p>
240      */
SetMaxResults(int value)241     inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
242 
243     /**
244      * <p>A non-zero, non-negative integer used to limit the number of returned
245      * results. The default is 100 comments, but you can configure up to 500.</p>
246      */
WithMaxResults(int value)247     inline GetCommentsForComparedCommitRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
248 
249   private:
250 
251     Aws::String m_repositoryName;
252     bool m_repositoryNameHasBeenSet;
253 
254     Aws::String m_beforeCommitId;
255     bool m_beforeCommitIdHasBeenSet;
256 
257     Aws::String m_afterCommitId;
258     bool m_afterCommitIdHasBeenSet;
259 
260     Aws::String m_nextToken;
261     bool m_nextTokenHasBeenSet;
262 
263     int m_maxResults;
264     bool m_maxResultsHasBeenSet;
265   };
266 
267 } // namespace Model
268 } // namespace CodeCommit
269 } // namespace Aws
270