AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListPullRequestsRequest.h
1
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 <aws/codecommit/model/PullRequestStatusEnum.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeCommit
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CODECOMMIT_API ListPullRequestsRequest();
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_CODECOMMIT_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
43 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
44 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
45 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
46 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
47 inline ListPullRequestsRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
48 inline ListPullRequestsRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
49 inline ListPullRequestsRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
51
53
58 inline const Aws::String& GetAuthorArn() const{ return m_authorArn; }
59 inline bool AuthorArnHasBeenSet() const { return m_authorArnHasBeenSet; }
60 inline void SetAuthorArn(const Aws::String& value) { m_authorArnHasBeenSet = true; m_authorArn = value; }
61 inline void SetAuthorArn(Aws::String&& value) { m_authorArnHasBeenSet = true; m_authorArn = std::move(value); }
62 inline void SetAuthorArn(const char* value) { m_authorArnHasBeenSet = true; m_authorArn.assign(value); }
63 inline ListPullRequestsRequest& WithAuthorArn(const Aws::String& value) { SetAuthorArn(value); return *this;}
64 inline ListPullRequestsRequest& WithAuthorArn(Aws::String&& value) { SetAuthorArn(std::move(value)); return *this;}
65 inline ListPullRequestsRequest& WithAuthorArn(const char* value) { SetAuthorArn(value); return *this;}
67
69
73 inline const PullRequestStatusEnum& GetPullRequestStatus() const{ return m_pullRequestStatus; }
74 inline bool PullRequestStatusHasBeenSet() const { return m_pullRequestStatusHasBeenSet; }
75 inline void SetPullRequestStatus(const PullRequestStatusEnum& value) { m_pullRequestStatusHasBeenSet = true; m_pullRequestStatus = value; }
76 inline void SetPullRequestStatus(PullRequestStatusEnum&& value) { m_pullRequestStatusHasBeenSet = true; m_pullRequestStatus = std::move(value); }
80
82
86 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
87 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
88 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
89 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
90 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
91 inline ListPullRequestsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
92 inline ListPullRequestsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
93 inline ListPullRequestsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
95
97
101 inline int GetMaxResults() const{ return m_maxResults; }
102 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
103 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
104 inline ListPullRequestsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
106 private:
107
108 Aws::String m_repositoryName;
109 bool m_repositoryNameHasBeenSet = false;
110
111 Aws::String m_authorArn;
112 bool m_authorArnHasBeenSet = false;
113
114 PullRequestStatusEnum m_pullRequestStatus;
115 bool m_pullRequestStatusHasBeenSet = false;
116
117 Aws::String m_nextToken;
118 bool m_nextTokenHasBeenSet = false;
119
120 int m_maxResults;
121 bool m_maxResultsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace CodeCommit
126} // namespace Aws
ListPullRequestsRequest & WithMaxResults(int value)
ListPullRequestsRequest & WithAuthorArn(const char *value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ListPullRequestsRequest & WithRepositoryName(const Aws::String &value)
ListPullRequestsRequest & WithAuthorArn(Aws::String &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListPullRequestsRequest & WithRepositoryName(Aws::String &&value)
ListPullRequestsRequest & WithAuthorArn(const Aws::String &value)
ListPullRequestsRequest & WithPullRequestStatus(const PullRequestStatusEnum &value)
ListPullRequestsRequest & WithPullRequestStatus(PullRequestStatusEnum &&value)
const PullRequestStatusEnum & GetPullRequestStatus() const
ListPullRequestsRequest & WithNextToken(Aws::String &&value)
ListPullRequestsRequest & WithNextToken(const char *value)
void SetPullRequestStatus(const PullRequestStatusEnum &value)
ListPullRequestsRequest & WithNextToken(const Aws::String &value)
void SetPullRequestStatus(PullRequestStatusEnum &&value)
ListPullRequestsRequest & WithRepositoryName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String