AWS SDK for C++  1.9.15
AWS SDK for C++
ListPullRequestsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CodeCommit
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ListPullRequests"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
42 
46  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
47 
51  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
52 
56  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
57 
61  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
62 
66  inline ListPullRequestsRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
67 
71  inline ListPullRequestsRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
72 
76  inline ListPullRequestsRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
77 
78 
84  inline const Aws::String& GetAuthorArn() const{ return m_authorArn; }
85 
91  inline bool AuthorArnHasBeenSet() const { return m_authorArnHasBeenSet; }
92 
98  inline void SetAuthorArn(const Aws::String& value) { m_authorArnHasBeenSet = true; m_authorArn = value; }
99 
105  inline void SetAuthorArn(Aws::String&& value) { m_authorArnHasBeenSet = true; m_authorArn = std::move(value); }
106 
112  inline void SetAuthorArn(const char* value) { m_authorArnHasBeenSet = true; m_authorArn.assign(value); }
113 
119  inline ListPullRequestsRequest& WithAuthorArn(const Aws::String& value) { SetAuthorArn(value); return *this;}
120 
126  inline ListPullRequestsRequest& WithAuthorArn(Aws::String&& value) { SetAuthorArn(std::move(value)); return *this;}
127 
133  inline ListPullRequestsRequest& WithAuthorArn(const char* value) { SetAuthorArn(value); return *this;}
134 
135 
140  inline const PullRequestStatusEnum& GetPullRequestStatus() const{ return m_pullRequestStatus; }
141 
146  inline bool PullRequestStatusHasBeenSet() const { return m_pullRequestStatusHasBeenSet; }
147 
152  inline void SetPullRequestStatus(const PullRequestStatusEnum& value) { m_pullRequestStatusHasBeenSet = true; m_pullRequestStatus = value; }
153 
158  inline void SetPullRequestStatus(PullRequestStatusEnum&& value) { m_pullRequestStatusHasBeenSet = true; m_pullRequestStatus = std::move(value); }
159 
164  inline ListPullRequestsRequest& WithPullRequestStatus(const PullRequestStatusEnum& value) { SetPullRequestStatus(value); return *this;}
165 
170  inline ListPullRequestsRequest& WithPullRequestStatus(PullRequestStatusEnum&& value) { SetPullRequestStatus(std::move(value)); return *this;}
171 
172 
177  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
178 
183  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
184 
189  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
190 
195  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
196 
201  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
202 
207  inline ListPullRequestsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
208 
213  inline ListPullRequestsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
214 
219  inline ListPullRequestsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
220 
221 
226  inline int GetMaxResults() const{ return m_maxResults; }
227 
232  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
233 
238  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
239 
244  inline ListPullRequestsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
245 
246  private:
247 
248  Aws::String m_repositoryName;
249  bool m_repositoryNameHasBeenSet;
250 
251  Aws::String m_authorArn;
252  bool m_authorArnHasBeenSet;
253 
254  PullRequestStatusEnum m_pullRequestStatus;
255  bool m_pullRequestStatusHasBeenSet;
256 
257  Aws::String m_nextToken;
258  bool m_nextTokenHasBeenSet;
259 
260  int m_maxResults;
261  bool m_maxResultsHasBeenSet;
262  };
263 
264 } // namespace Model
265 } // namespace CodeCommit
266 } // namespace Aws
Aws::CodeCommit::Model::ListPullRequestsRequest::GetPullRequestStatus
const PullRequestStatusEnum & GetPullRequestStatus() const
Definition: ListPullRequestsRequest.h:140
Aws::CodeCommit::Model::ListPullRequestsRequest::SetPullRequestStatus
void SetPullRequestStatus(PullRequestStatusEnum &&value)
Definition: ListPullRequestsRequest.h:158
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::ListPullRequestsRequest::GetAuthorArn
const Aws::String & GetAuthorArn() const
Definition: ListPullRequestsRequest.h:84
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::ListPullRequestsRequest
Definition: ListPullRequestsRequest.h:23
Aws::CodeCommit::Model::ListPullRequestsRequest::SetAuthorArn
void SetAuthorArn(const Aws::String &value)
Definition: ListPullRequestsRequest.h:98
PullRequestStatusEnum.h
Aws::CodeCommit::Model::ListPullRequestsRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: ListPullRequestsRequest.h:61
Aws::CodeCommit::Model::ListPullRequestsRequest::WithRepositoryName
ListPullRequestsRequest & WithRepositoryName(const char *value)
Definition: ListPullRequestsRequest.h:76
Aws::CodeCommit::Model::ListPullRequestsRequest::WithAuthorArn
ListPullRequestsRequest & WithAuthorArn(const char *value)
Definition: ListPullRequestsRequest.h:133
Aws::CodeCommit::Model::ListPullRequestsRequest::WithAuthorArn
ListPullRequestsRequest & WithAuthorArn(const Aws::String &value)
Definition: ListPullRequestsRequest.h:119
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::ListPullRequestsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListPullRequestsRequest.h:183
CodeCommitRequest.h
Aws::CodeCommit::Model::ListPullRequestsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListPullRequestsRequest.h:232
Aws::CodeCommit::Model::ListPullRequestsRequest::SetPullRequestStatus
void SetPullRequestStatus(const PullRequestStatusEnum &value)
Definition: ListPullRequestsRequest.h:152
Aws::CodeCommit::Model::ListPullRequestsRequest::SetAuthorArn
void SetAuthorArn(Aws::String &&value)
Definition: ListPullRequestsRequest.h:105
Aws::CodeCommit::Model::ListPullRequestsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPullRequestsRequest.h:189
Aws::CodeCommit::Model::ListPullRequestsRequest::WithNextToken
ListPullRequestsRequest & WithNextToken(const char *value)
Definition: ListPullRequestsRequest.h:219
Aws::CodeCommit::Model::PullRequestStatusEnum
PullRequestStatusEnum
Definition: PullRequestStatusEnum.h:17
Aws::CodeCommit::Model::ListPullRequestsRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: ListPullRequestsRequest.h:56
Aws::CodeCommit::Model::ListPullRequestsRequest::WithNextToken
ListPullRequestsRequest & WithNextToken(Aws::String &&value)
Definition: ListPullRequestsRequest.h:213
Aws::CodeCommit::Model::ListPullRequestsRequest::WithRepositoryName
ListPullRequestsRequest & WithRepositoryName(Aws::String &&value)
Definition: ListPullRequestsRequest.h:71
Aws::CodeCommit::Model::ListPullRequestsRequest::WithPullRequestStatus
ListPullRequestsRequest & WithPullRequestStatus(PullRequestStatusEnum &&value)
Definition: ListPullRequestsRequest.h:170
Aws::CodeCommit::Model::ListPullRequestsRequest::ListPullRequestsRequest
ListPullRequestsRequest()
AWSString.h
Aws::CodeCommit::Model::ListPullRequestsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListPullRequestsRequest.h:226
Aws::CodeCommit::Model::ListPullRequestsRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: ListPullRequestsRequest.h:51
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::ListPullRequestsRequest::WithNextToken
ListPullRequestsRequest & WithNextToken(const Aws::String &value)
Definition: ListPullRequestsRequest.h:207
Aws::CodeCommit::Model::ListPullRequestsRequest::WithRepositoryName
ListPullRequestsRequest & WithRepositoryName(const Aws::String &value)
Definition: ListPullRequestsRequest.h:66
Aws::CodeCommit::Model::ListPullRequestsRequest::PullRequestStatusHasBeenSet
bool PullRequestStatusHasBeenSet() const
Definition: ListPullRequestsRequest.h:146
Aws::CodeCommit::Model::ListPullRequestsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPullRequestsRequest.h:31
Aws::CodeCommit::Model::ListPullRequestsRequest::SetAuthorArn
void SetAuthorArn(const char *value)
Definition: ListPullRequestsRequest.h:112
Aws::CodeCommit::Model::ListPullRequestsRequest::WithPullRequestStatus
ListPullRequestsRequest & WithPullRequestStatus(const PullRequestStatusEnum &value)
Definition: ListPullRequestsRequest.h:164
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::ListPullRequestsRequest::WithMaxResults
ListPullRequestsRequest & WithMaxResults(int value)
Definition: ListPullRequestsRequest.h:244
Aws::CodeCommit::Model::ListPullRequestsRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: ListPullRequestsRequest.h:46
Aws::CodeCommit::Model::ListPullRequestsRequest::WithAuthorArn
ListPullRequestsRequest & WithAuthorArn(Aws::String &&value)
Definition: ListPullRequestsRequest.h:126
Aws::CodeCommit::Model::ListPullRequestsRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: ListPullRequestsRequest.h:41
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::ListPullRequestsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListPullRequestsRequest.h:238
Aws::CodeCommit::Model::ListPullRequestsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::ListPullRequestsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::ListPullRequestsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPullRequestsRequest.h:177
Aws::CodeCommit::Model::ListPullRequestsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListPullRequestsRequest.h:201
Aws::CodeCommit::Model::ListPullRequestsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPullRequestsRequest.h:195
Aws::CodeCommit::Model::ListPullRequestsRequest::AuthorArnHasBeenSet
bool AuthorArnHasBeenSet() const
Definition: ListPullRequestsRequest.h:91