AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PullRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/codecommit/model/PullRequestStatusEnum.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codecommit/model/PullRequestTarget.h>
13#include <aws/codecommit/model/ApprovalRule.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodeCommit
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CODECOMMIT_API PullRequest();
40 AWS_CODECOMMIT_API PullRequest(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODECOMMIT_API PullRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
50 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
51 inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
52 inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
53 inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
54 inline PullRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
55 inline PullRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
56 inline PullRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
58
60
64 inline const Aws::String& GetTitle() const{ return m_title; }
65 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
66 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
67 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
68 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
69 inline PullRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
70 inline PullRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
71 inline PullRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
73
75
79 inline const Aws::String& GetDescription() const{ return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
82 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
83 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
84 inline PullRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
85 inline PullRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 inline PullRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
88
90
94 inline const Aws::Utils::DateTime& GetLastActivityDate() const{ return m_lastActivityDate; }
95 inline bool LastActivityDateHasBeenSet() const { return m_lastActivityDateHasBeenSet; }
96 inline void SetLastActivityDate(const Aws::Utils::DateTime& value) { m_lastActivityDateHasBeenSet = true; m_lastActivityDate = value; }
97 inline void SetLastActivityDate(Aws::Utils::DateTime&& value) { m_lastActivityDateHasBeenSet = true; m_lastActivityDate = std::move(value); }
98 inline PullRequest& WithLastActivityDate(const Aws::Utils::DateTime& value) { SetLastActivityDate(value); return *this;}
99 inline PullRequest& WithLastActivityDate(Aws::Utils::DateTime&& value) { SetLastActivityDate(std::move(value)); return *this;}
101
103
107 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
108 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
109 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
110 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
111 inline PullRequest& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
112 inline PullRequest& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
114
116
120 inline const PullRequestStatusEnum& GetPullRequestStatus() const{ return m_pullRequestStatus; }
121 inline bool PullRequestStatusHasBeenSet() const { return m_pullRequestStatusHasBeenSet; }
122 inline void SetPullRequestStatus(const PullRequestStatusEnum& value) { m_pullRequestStatusHasBeenSet = true; m_pullRequestStatus = value; }
123 inline void SetPullRequestStatus(PullRequestStatusEnum&& value) { m_pullRequestStatusHasBeenSet = true; m_pullRequestStatus = std::move(value); }
125 inline PullRequest& WithPullRequestStatus(PullRequestStatusEnum&& value) { SetPullRequestStatus(std::move(value)); return *this;}
127
129
132 inline const Aws::String& GetAuthorArn() const{ return m_authorArn; }
133 inline bool AuthorArnHasBeenSet() const { return m_authorArnHasBeenSet; }
134 inline void SetAuthorArn(const Aws::String& value) { m_authorArnHasBeenSet = true; m_authorArn = value; }
135 inline void SetAuthorArn(Aws::String&& value) { m_authorArnHasBeenSet = true; m_authorArn = std::move(value); }
136 inline void SetAuthorArn(const char* value) { m_authorArnHasBeenSet = true; m_authorArn.assign(value); }
137 inline PullRequest& WithAuthorArn(const Aws::String& value) { SetAuthorArn(value); return *this;}
138 inline PullRequest& WithAuthorArn(Aws::String&& value) { SetAuthorArn(std::move(value)); return *this;}
139 inline PullRequest& WithAuthorArn(const char* value) { SetAuthorArn(value); return *this;}
141
143
147 inline const Aws::Vector<PullRequestTarget>& GetPullRequestTargets() const{ return m_pullRequestTargets; }
148 inline bool PullRequestTargetsHasBeenSet() const { return m_pullRequestTargetsHasBeenSet; }
149 inline void SetPullRequestTargets(const Aws::Vector<PullRequestTarget>& value) { m_pullRequestTargetsHasBeenSet = true; m_pullRequestTargets = value; }
150 inline void SetPullRequestTargets(Aws::Vector<PullRequestTarget>&& value) { m_pullRequestTargetsHasBeenSet = true; m_pullRequestTargets = std::move(value); }
153 inline PullRequest& AddPullRequestTargets(const PullRequestTarget& value) { m_pullRequestTargetsHasBeenSet = true; m_pullRequestTargets.push_back(value); return *this; }
154 inline PullRequest& AddPullRequestTargets(PullRequestTarget&& value) { m_pullRequestTargetsHasBeenSet = true; m_pullRequestTargets.push_back(std::move(value)); return *this; }
156
158
164 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
165 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
166 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
167 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
168 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
169 inline PullRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
170 inline PullRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
171 inline PullRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
173
175
178 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
179 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
180 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
181 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
182 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
183 inline PullRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
184 inline PullRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
185 inline PullRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
187
189
192 inline const Aws::Vector<ApprovalRule>& GetApprovalRules() const{ return m_approvalRules; }
193 inline bool ApprovalRulesHasBeenSet() const { return m_approvalRulesHasBeenSet; }
194 inline void SetApprovalRules(const Aws::Vector<ApprovalRule>& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = value; }
195 inline void SetApprovalRules(Aws::Vector<ApprovalRule>&& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = std::move(value); }
196 inline PullRequest& WithApprovalRules(const Aws::Vector<ApprovalRule>& value) { SetApprovalRules(value); return *this;}
197 inline PullRequest& WithApprovalRules(Aws::Vector<ApprovalRule>&& value) { SetApprovalRules(std::move(value)); return *this;}
198 inline PullRequest& AddApprovalRules(const ApprovalRule& value) { m_approvalRulesHasBeenSet = true; m_approvalRules.push_back(value); return *this; }
199 inline PullRequest& AddApprovalRules(ApprovalRule&& value) { m_approvalRulesHasBeenSet = true; m_approvalRules.push_back(std::move(value)); return *this; }
201 private:
202
203 Aws::String m_pullRequestId;
204 bool m_pullRequestIdHasBeenSet = false;
205
206 Aws::String m_title;
207 bool m_titleHasBeenSet = false;
208
209 Aws::String m_description;
210 bool m_descriptionHasBeenSet = false;
211
212 Aws::Utils::DateTime m_lastActivityDate;
213 bool m_lastActivityDateHasBeenSet = false;
214
215 Aws::Utils::DateTime m_creationDate;
216 bool m_creationDateHasBeenSet = false;
217
218 PullRequestStatusEnum m_pullRequestStatus;
219 bool m_pullRequestStatusHasBeenSet = false;
220
221 Aws::String m_authorArn;
222 bool m_authorArnHasBeenSet = false;
223
224 Aws::Vector<PullRequestTarget> m_pullRequestTargets;
225 bool m_pullRequestTargetsHasBeenSet = false;
226
227 Aws::String m_clientRequestToken;
228 bool m_clientRequestTokenHasBeenSet = false;
229
230 Aws::String m_revisionId;
231 bool m_revisionIdHasBeenSet = false;
232
233 Aws::Vector<ApprovalRule> m_approvalRules;
234 bool m_approvalRulesHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace CodeCommit
239} // namespace Aws
PullRequest & WithLastActivityDate(Aws::Utils::DateTime &&value)
Definition PullRequest.h:99
void SetCreationDate(Aws::Utils::DateTime &&value)
void SetDescription(Aws::String &&value)
Definition PullRequest.h:82
void SetRevisionId(const Aws::String &value)
const Aws::Vector< PullRequestTarget > & GetPullRequestTargets() const
void SetClientRequestToken(Aws::String &&value)
void SetRevisionId(Aws::String &&value)
void SetTitle(Aws::String &&value)
Definition PullRequest.h:67
PullRequest & AddApprovalRules(ApprovalRule &&value)
PullRequest & WithLastActivityDate(const Aws::Utils::DateTime &value)
Definition PullRequest.h:98
PullRequest & AddPullRequestTargets(const PullRequestTarget &value)
const Aws::Vector< ApprovalRule > & GetApprovalRules() const
void SetApprovalRules(Aws::Vector< ApprovalRule > &&value)
PullRequest & WithAuthorArn(Aws::String &&value)
PullRequest & WithClientRequestToken(const char *value)
PullRequest & WithPullRequestTargets(Aws::Vector< PullRequestTarget > &&value)
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetRevisionId(const char *value)
PullRequest & WithPullRequestId(const char *value)
Definition PullRequest.h:56
void SetPullRequestId(Aws::String &&value)
Definition PullRequest.h:52
PullRequest & AddPullRequestTargets(PullRequestTarget &&value)
PullRequest & WithAuthorArn(const Aws::String &value)
PullRequest & WithCreationDate(Aws::Utils::DateTime &&value)
PullRequest & WithDescription(const char *value)
Definition PullRequest.h:86
void SetClientRequestToken(const Aws::String &value)
const Aws::String & GetClientRequestToken() const
AWS_CODECOMMIT_API PullRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
PullRequest & WithApprovalRules(Aws::Vector< ApprovalRule > &&value)
const Aws::String & GetRevisionId() const
void SetPullRequestId(const Aws::String &value)
Definition PullRequest.h:51
void SetTitle(const char *value)
Definition PullRequest.h:68
void SetApprovalRules(const Aws::Vector< ApprovalRule > &value)
PullRequest & WithApprovalRules(const Aws::Vector< ApprovalRule > &value)
PullRequest & AddApprovalRules(const ApprovalRule &value)
const Aws::String & GetDescription() const
Definition PullRequest.h:79
PullRequest & WithCreationDate(const Aws::Utils::DateTime &value)
void SetPullRequestId(const char *value)
Definition PullRequest.h:53
PullRequest & WithRevisionId(const char *value)
PullRequest & WithRevisionId(const Aws::String &value)
const PullRequestStatusEnum & GetPullRequestStatus() const
PullRequest & WithTitle(Aws::String &&value)
Definition PullRequest.h:70
const Aws::Utils::DateTime & GetLastActivityDate() const
Definition PullRequest.h:94
PullRequest & WithDescription(const Aws::String &value)
Definition PullRequest.h:84
PullRequest & WithDescription(Aws::String &&value)
Definition PullRequest.h:85
void SetClientRequestToken(const char *value)
void SetLastActivityDate(const Aws::Utils::DateTime &value)
Definition PullRequest.h:96
PullRequest & WithClientRequestToken(const Aws::String &value)
const Aws::String & GetTitle() const
Definition PullRequest.h:64
PullRequest & WithPullRequestId(Aws::String &&value)
Definition PullRequest.h:55
PullRequest & WithTitle(const char *value)
Definition PullRequest.h:71
const Aws::String & GetAuthorArn() const
PullRequest & WithTitle(const Aws::String &value)
Definition PullRequest.h:69
void SetDescription(const char *value)
Definition PullRequest.h:83
AWS_CODECOMMIT_API PullRequest()
void SetPullRequestStatus(PullRequestStatusEnum &&value)
void SetTitle(const Aws::String &value)
Definition PullRequest.h:66
void SetLastActivityDate(Aws::Utils::DateTime &&value)
Definition PullRequest.h:97
PullRequest & WithPullRequestStatus(PullRequestStatusEnum &&value)
PullRequest & WithAuthorArn(const char *value)
void SetAuthorArn(Aws::String &&value)
void SetPullRequestStatus(const PullRequestStatusEnum &value)
void SetPullRequestTargets(const Aws::Vector< PullRequestTarget > &value)
void SetAuthorArn(const Aws::String &value)
PullRequest & WithPullRequestId(const Aws::String &value)
Definition PullRequest.h:54
void SetAuthorArn(const char *value)
AWS_CODECOMMIT_API PullRequest(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(const Aws::String &value)
Definition PullRequest.h:81
PullRequest & WithPullRequestTargets(const Aws::Vector< PullRequestTarget > &value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetPullRequestTargets(Aws::Vector< PullRequestTarget > &&value)
PullRequest & WithClientRequestToken(Aws::String &&value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
PullRequest & WithRevisionId(Aws::String &&value)
const Aws::String & GetPullRequestId() const
Definition PullRequest.h:49
PullRequest & WithPullRequestStatus(const PullRequestStatusEnum &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue