AWS SDK for C++  1.9.126
AWS SDK for C++
GetCommentsForPullRequestRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CodeCommit
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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.
30  inline virtual const char* GetServiceRequestName() const override { return "GetCommentsForPullRequest"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
42 
47  inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
48 
53  inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
54 
59  inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
60 
65  inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
66 
71  inline GetCommentsForPullRequestRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
72 
77  inline GetCommentsForPullRequestRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
78 
83  inline GetCommentsForPullRequestRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
84 
85 
89  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
90 
94  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
95 
99  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
100 
104  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
105 
109  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
110 
114  inline GetCommentsForPullRequestRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
115 
119  inline GetCommentsForPullRequestRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
120 
124  inline GetCommentsForPullRequestRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
125 
126 
131  inline const Aws::String& GetBeforeCommitId() const{ return m_beforeCommitId; }
132 
137  inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; }
138 
143  inline void SetBeforeCommitId(const Aws::String& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = value; }
144 
149  inline void SetBeforeCommitId(Aws::String&& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = std::move(value); }
150 
155  inline void SetBeforeCommitId(const char* value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId.assign(value); }
156 
161  inline GetCommentsForPullRequestRequest& WithBeforeCommitId(const Aws::String& value) { SetBeforeCommitId(value); return *this;}
162 
167  inline GetCommentsForPullRequestRequest& WithBeforeCommitId(Aws::String&& value) { SetBeforeCommitId(std::move(value)); return *this;}
168 
173  inline GetCommentsForPullRequestRequest& WithBeforeCommitId(const char* value) { SetBeforeCommitId(value); return *this;}
174 
175 
180  inline const Aws::String& GetAfterCommitId() const{ return m_afterCommitId; }
181 
186  inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; }
187 
192  inline void SetAfterCommitId(const Aws::String& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = value; }
193 
198  inline void SetAfterCommitId(Aws::String&& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = std::move(value); }
199 
204  inline void SetAfterCommitId(const char* value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId.assign(value); }
205 
210  inline GetCommentsForPullRequestRequest& WithAfterCommitId(const Aws::String& value) { SetAfterCommitId(value); return *this;}
211 
216  inline GetCommentsForPullRequestRequest& WithAfterCommitId(Aws::String&& value) { SetAfterCommitId(std::move(value)); return *this;}
217 
222  inline GetCommentsForPullRequestRequest& WithAfterCommitId(const char* value) { SetAfterCommitId(value); return *this;}
223 
224 
229  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
230 
235  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
236 
241  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
242 
247  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
248 
253  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
254 
259  inline GetCommentsForPullRequestRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
260 
265  inline GetCommentsForPullRequestRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
266 
271  inline GetCommentsForPullRequestRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
272 
273 
279  inline int GetMaxResults() const{ return m_maxResults; }
280 
286  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
287 
293  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
294 
300  inline GetCommentsForPullRequestRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
301 
302  private:
303 
304  Aws::String m_pullRequestId;
305  bool m_pullRequestIdHasBeenSet;
306 
307  Aws::String m_repositoryName;
308  bool m_repositoryNameHasBeenSet;
309 
310  Aws::String m_beforeCommitId;
311  bool m_beforeCommitIdHasBeenSet;
312 
313  Aws::String m_afterCommitId;
314  bool m_afterCommitIdHasBeenSet;
315 
316  Aws::String m_nextToken;
317  bool m_nextTokenHasBeenSet;
318 
319  int m_maxResults;
320  bool m_maxResultsHasBeenSet;
321  };
322 
323 } // namespace Model
324 } // namespace CodeCommit
325 } // namespace Aws
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetCommentsForPullRequestRequest.h:293
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest
Definition: GetCommentsForPullRequestRequest.h:22
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: GetCommentsForPullRequestRequest.h:99
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetPullRequestId
void SetPullRequestId(const Aws::String &value)
Definition: GetCommentsForPullRequestRequest.h:53
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::GetCommentsForPullRequestRequest
GetCommentsForPullRequestRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithBeforeCommitId
GetCommentsForPullRequestRequest & WithBeforeCommitId(const char *value)
Definition: GetCommentsForPullRequestRequest.h:173
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::GetPullRequestId
const Aws::String & GetPullRequestId() const
Definition: GetCommentsForPullRequestRequest.h:41
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithPullRequestId
GetCommentsForPullRequestRequest & WithPullRequestId(const char *value)
Definition: GetCommentsForPullRequestRequest.h:83
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::PullRequestIdHasBeenSet
bool PullRequestIdHasBeenSet() const
Definition: GetCommentsForPullRequestRequest.h:47
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetPullRequestId
void SetPullRequestId(Aws::String &&value)
Definition: GetCommentsForPullRequestRequest.h:59
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithRepositoryName
GetCommentsForPullRequestRequest & WithRepositoryName(const char *value)
Definition: GetCommentsForPullRequestRequest.h:124
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::GetMaxResults
int GetMaxResults() const
Definition: GetCommentsForPullRequestRequest.h:279
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetAfterCommitId
void SetAfterCommitId(Aws::String &&value)
Definition: GetCommentsForPullRequestRequest.h:198
CodeCommitRequest.h
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithRepositoryName
GetCommentsForPullRequestRequest & WithRepositoryName(const Aws::String &value)
Definition: GetCommentsForPullRequestRequest.h:114
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::AfterCommitIdHasBeenSet
bool AfterCommitIdHasBeenSet() const
Definition: GetCommentsForPullRequestRequest.h:186
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::BeforeCommitIdHasBeenSet
bool BeforeCommitIdHasBeenSet() const
Definition: GetCommentsForPullRequestRequest.h:137
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetCommentsForPullRequestRequest.h:241
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithPullRequestId
GetCommentsForPullRequestRequest & WithPullRequestId(Aws::String &&value)
Definition: GetCommentsForPullRequestRequest.h:77
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithBeforeCommitId
GetCommentsForPullRequestRequest & WithBeforeCommitId(const Aws::String &value)
Definition: GetCommentsForPullRequestRequest.h:161
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetAfterCommitId
void SetAfterCommitId(const char *value)
Definition: GetCommentsForPullRequestRequest.h:204
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithMaxResults
GetCommentsForPullRequestRequest & WithMaxResults(int value)
Definition: GetCommentsForPullRequestRequest.h:300
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::GetBeforeCommitId
const Aws::String & GetBeforeCommitId() const
Definition: GetCommentsForPullRequestRequest.h:131
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithAfterCommitId
GetCommentsForPullRequestRequest & WithAfterCommitId(Aws::String &&value)
Definition: GetCommentsForPullRequestRequest.h:216
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetCommentsForPullRequestRequest.h:247
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetCommentsForPullRequestRequest.h:235
AWSString.h
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithNextToken
GetCommentsForPullRequestRequest & WithNextToken(const Aws::String &value)
Definition: GetCommentsForPullRequestRequest.h:259
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithBeforeCommitId
GetCommentsForPullRequestRequest & WithBeforeCommitId(Aws::String &&value)
Definition: GetCommentsForPullRequestRequest.h:167
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetCommentsForPullRequestRequest.h:253
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetBeforeCommitId
void SetBeforeCommitId(Aws::String &&value)
Definition: GetCommentsForPullRequestRequest.h:149
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: GetCommentsForPullRequestRequest.h:109
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithNextToken
GetCommentsForPullRequestRequest & WithNextToken(Aws::String &&value)
Definition: GetCommentsForPullRequestRequest.h:265
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetCommentsForPullRequestRequest.h:286
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetCommentsForPullRequestRequest.h:229
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetAfterCommitId
void SetAfterCommitId(const Aws::String &value)
Definition: GetCommentsForPullRequestRequest.h:192
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithRepositoryName
GetCommentsForPullRequestRequest & WithRepositoryName(Aws::String &&value)
Definition: GetCommentsForPullRequestRequest.h:119
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: GetCommentsForPullRequestRequest.h:104
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetCommentsForPullRequestRequest.h:30
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetBeforeCommitId
void SetBeforeCommitId(const char *value)
Definition: GetCommentsForPullRequestRequest.h:155
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithNextToken
GetCommentsForPullRequestRequest & WithNextToken(const char *value)
Definition: GetCommentsForPullRequestRequest.h:271
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: GetCommentsForPullRequestRequest.h:89
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithPullRequestId
GetCommentsForPullRequestRequest & WithPullRequestId(const Aws::String &value)
Definition: GetCommentsForPullRequestRequest.h:71
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetPullRequestId
void SetPullRequestId(const char *value)
Definition: GetCommentsForPullRequestRequest.h:65
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: GetCommentsForPullRequestRequest.h:94
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::GetAfterCommitId
const Aws::String & GetAfterCommitId() const
Definition: GetCommentsForPullRequestRequest.h:180
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithAfterCommitId
GetCommentsForPullRequestRequest & WithAfterCommitId(const Aws::String &value)
Definition: GetCommentsForPullRequestRequest.h:210
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::WithAfterCommitId
GetCommentsForPullRequestRequest & WithAfterCommitId(const char *value)
Definition: GetCommentsForPullRequestRequest.h:222
Aws::CodeCommit::Model::GetCommentsForPullRequestRequest::SetBeforeCommitId
void SetBeforeCommitId(const Aws::String &value)
Definition: GetCommentsForPullRequestRequest.h:143