AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PullRequestEvent.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/PullRequestEventType.h>
11#include <aws/codecommit/model/PullRequestCreatedEventMetadata.h>
12#include <aws/codecommit/model/PullRequestStatusChangedEventMetadata.h>
13#include <aws/codecommit/model/PullRequestSourceReferenceUpdatedEventMetadata.h>
14#include <aws/codecommit/model/PullRequestMergedStateChangedEventMetadata.h>
15#include <aws/codecommit/model/ApprovalRuleEventMetadata.h>
16#include <aws/codecommit/model/ApprovalStateChangedEventMetadata.h>
17#include <aws/codecommit/model/ApprovalRuleOverriddenEventMetadata.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace CodeCommit
31{
32namespace Model
33{
34
41 {
42 public:
43 AWS_CODECOMMIT_API PullRequestEvent();
44 AWS_CODECOMMIT_API PullRequestEvent(Aws::Utils::Json::JsonView jsonValue);
46 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
54 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
55 inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
56 inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
57 inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
58 inline PullRequestEvent& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
59 inline PullRequestEvent& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
60 inline PullRequestEvent& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
62
64
67 inline const Aws::Utils::DateTime& GetEventDate() const{ return m_eventDate; }
68 inline bool EventDateHasBeenSet() const { return m_eventDateHasBeenSet; }
69 inline void SetEventDate(const Aws::Utils::DateTime& value) { m_eventDateHasBeenSet = true; m_eventDate = value; }
70 inline void SetEventDate(Aws::Utils::DateTime&& value) { m_eventDateHasBeenSet = true; m_eventDate = std::move(value); }
71 inline PullRequestEvent& WithEventDate(const Aws::Utils::DateTime& value) { SetEventDate(value); return *this;}
72 inline PullRequestEvent& WithEventDate(Aws::Utils::DateTime&& value) { SetEventDate(std::move(value)); return *this;}
74
76
81 inline const PullRequestEventType& GetPullRequestEventType() const{ return m_pullRequestEventType; }
82 inline bool PullRequestEventTypeHasBeenSet() const { return m_pullRequestEventTypeHasBeenSet; }
83 inline void SetPullRequestEventType(const PullRequestEventType& value) { m_pullRequestEventTypeHasBeenSet = true; m_pullRequestEventType = value; }
84 inline void SetPullRequestEventType(PullRequestEventType&& value) { m_pullRequestEventTypeHasBeenSet = true; m_pullRequestEventType = std::move(value); }
88
90
95 inline const Aws::String& GetActorArn() const{ return m_actorArn; }
96 inline bool ActorArnHasBeenSet() const { return m_actorArnHasBeenSet; }
97 inline void SetActorArn(const Aws::String& value) { m_actorArnHasBeenSet = true; m_actorArn = value; }
98 inline void SetActorArn(Aws::String&& value) { m_actorArnHasBeenSet = true; m_actorArn = std::move(value); }
99 inline void SetActorArn(const char* value) { m_actorArnHasBeenSet = true; m_actorArn.assign(value); }
100 inline PullRequestEvent& WithActorArn(const Aws::String& value) { SetActorArn(value); return *this;}
101 inline PullRequestEvent& WithActorArn(Aws::String&& value) { SetActorArn(std::move(value)); return *this;}
102 inline PullRequestEvent& WithActorArn(const char* value) { SetActorArn(value); return *this;}
104
106
110 inline const PullRequestCreatedEventMetadata& GetPullRequestCreatedEventMetadata() const{ return m_pullRequestCreatedEventMetadata; }
111 inline bool PullRequestCreatedEventMetadataHasBeenSet() const { return m_pullRequestCreatedEventMetadataHasBeenSet; }
112 inline void SetPullRequestCreatedEventMetadata(const PullRequestCreatedEventMetadata& value) { m_pullRequestCreatedEventMetadataHasBeenSet = true; m_pullRequestCreatedEventMetadata = value; }
113 inline void SetPullRequestCreatedEventMetadata(PullRequestCreatedEventMetadata&& value) { m_pullRequestCreatedEventMetadataHasBeenSet = true; m_pullRequestCreatedEventMetadata = std::move(value); }
117
119
122 inline const PullRequestStatusChangedEventMetadata& GetPullRequestStatusChangedEventMetadata() const{ return m_pullRequestStatusChangedEventMetadata; }
123 inline bool PullRequestStatusChangedEventMetadataHasBeenSet() const { return m_pullRequestStatusChangedEventMetadataHasBeenSet; }
124 inline void SetPullRequestStatusChangedEventMetadata(const PullRequestStatusChangedEventMetadata& value) { m_pullRequestStatusChangedEventMetadataHasBeenSet = true; m_pullRequestStatusChangedEventMetadata = value; }
125 inline void SetPullRequestStatusChangedEventMetadata(PullRequestStatusChangedEventMetadata&& value) { m_pullRequestStatusChangedEventMetadataHasBeenSet = true; m_pullRequestStatusChangedEventMetadata = std::move(value); }
129
131
134 inline const PullRequestSourceReferenceUpdatedEventMetadata& GetPullRequestSourceReferenceUpdatedEventMetadata() const{ return m_pullRequestSourceReferenceUpdatedEventMetadata; }
135 inline bool PullRequestSourceReferenceUpdatedEventMetadataHasBeenSet() const { return m_pullRequestSourceReferenceUpdatedEventMetadataHasBeenSet; }
136 inline void SetPullRequestSourceReferenceUpdatedEventMetadata(const PullRequestSourceReferenceUpdatedEventMetadata& value) { m_pullRequestSourceReferenceUpdatedEventMetadataHasBeenSet = true; m_pullRequestSourceReferenceUpdatedEventMetadata = value; }
137 inline void SetPullRequestSourceReferenceUpdatedEventMetadata(PullRequestSourceReferenceUpdatedEventMetadata&& value) { m_pullRequestSourceReferenceUpdatedEventMetadataHasBeenSet = true; m_pullRequestSourceReferenceUpdatedEventMetadata = std::move(value); }
141
143
147 inline const PullRequestMergedStateChangedEventMetadata& GetPullRequestMergedStateChangedEventMetadata() const{ return m_pullRequestMergedStateChangedEventMetadata; }
148 inline bool PullRequestMergedStateChangedEventMetadataHasBeenSet() const { return m_pullRequestMergedStateChangedEventMetadataHasBeenSet; }
149 inline void SetPullRequestMergedStateChangedEventMetadata(const PullRequestMergedStateChangedEventMetadata& value) { m_pullRequestMergedStateChangedEventMetadataHasBeenSet = true; m_pullRequestMergedStateChangedEventMetadata = value; }
150 inline void SetPullRequestMergedStateChangedEventMetadata(PullRequestMergedStateChangedEventMetadata&& value) { m_pullRequestMergedStateChangedEventMetadataHasBeenSet = true; m_pullRequestMergedStateChangedEventMetadata = std::move(value); }
154
156
159 inline const ApprovalRuleEventMetadata& GetApprovalRuleEventMetadata() const{ return m_approvalRuleEventMetadata; }
160 inline bool ApprovalRuleEventMetadataHasBeenSet() const { return m_approvalRuleEventMetadataHasBeenSet; }
161 inline void SetApprovalRuleEventMetadata(const ApprovalRuleEventMetadata& value) { m_approvalRuleEventMetadataHasBeenSet = true; m_approvalRuleEventMetadata = value; }
162 inline void SetApprovalRuleEventMetadata(ApprovalRuleEventMetadata&& value) { m_approvalRuleEventMetadataHasBeenSet = true; m_approvalRuleEventMetadata = std::move(value); }
166
168
171 inline const ApprovalStateChangedEventMetadata& GetApprovalStateChangedEventMetadata() const{ return m_approvalStateChangedEventMetadata; }
172 inline bool ApprovalStateChangedEventMetadataHasBeenSet() const { return m_approvalStateChangedEventMetadataHasBeenSet; }
173 inline void SetApprovalStateChangedEventMetadata(const ApprovalStateChangedEventMetadata& value) { m_approvalStateChangedEventMetadataHasBeenSet = true; m_approvalStateChangedEventMetadata = value; }
174 inline void SetApprovalStateChangedEventMetadata(ApprovalStateChangedEventMetadata&& value) { m_approvalStateChangedEventMetadataHasBeenSet = true; m_approvalStateChangedEventMetadata = std::move(value); }
178
180
183 inline const ApprovalRuleOverriddenEventMetadata& GetApprovalRuleOverriddenEventMetadata() const{ return m_approvalRuleOverriddenEventMetadata; }
184 inline bool ApprovalRuleOverriddenEventMetadataHasBeenSet() const { return m_approvalRuleOverriddenEventMetadataHasBeenSet; }
185 inline void SetApprovalRuleOverriddenEventMetadata(const ApprovalRuleOverriddenEventMetadata& value) { m_approvalRuleOverriddenEventMetadataHasBeenSet = true; m_approvalRuleOverriddenEventMetadata = value; }
186 inline void SetApprovalRuleOverriddenEventMetadata(ApprovalRuleOverriddenEventMetadata&& value) { m_approvalRuleOverriddenEventMetadataHasBeenSet = true; m_approvalRuleOverriddenEventMetadata = std::move(value); }
190 private:
191
192 Aws::String m_pullRequestId;
193 bool m_pullRequestIdHasBeenSet = false;
194
195 Aws::Utils::DateTime m_eventDate;
196 bool m_eventDateHasBeenSet = false;
197
198 PullRequestEventType m_pullRequestEventType;
199 bool m_pullRequestEventTypeHasBeenSet = false;
200
201 Aws::String m_actorArn;
202 bool m_actorArnHasBeenSet = false;
203
204 PullRequestCreatedEventMetadata m_pullRequestCreatedEventMetadata;
205 bool m_pullRequestCreatedEventMetadataHasBeenSet = false;
206
207 PullRequestStatusChangedEventMetadata m_pullRequestStatusChangedEventMetadata;
208 bool m_pullRequestStatusChangedEventMetadataHasBeenSet = false;
209
210 PullRequestSourceReferenceUpdatedEventMetadata m_pullRequestSourceReferenceUpdatedEventMetadata;
211 bool m_pullRequestSourceReferenceUpdatedEventMetadataHasBeenSet = false;
212
213 PullRequestMergedStateChangedEventMetadata m_pullRequestMergedStateChangedEventMetadata;
214 bool m_pullRequestMergedStateChangedEventMetadataHasBeenSet = false;
215
216 ApprovalRuleEventMetadata m_approvalRuleEventMetadata;
217 bool m_approvalRuleEventMetadataHasBeenSet = false;
218
219 ApprovalStateChangedEventMetadata m_approvalStateChangedEventMetadata;
220 bool m_approvalStateChangedEventMetadataHasBeenSet = false;
221
222 ApprovalRuleOverriddenEventMetadata m_approvalRuleOverriddenEventMetadata;
223 bool m_approvalRuleOverriddenEventMetadataHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace CodeCommit
228} // namespace Aws
void SetPullRequestId(Aws::String &&value)
PullRequestEvent & WithApprovalStateChangedEventMetadata(const ApprovalStateChangedEventMetadata &value)
void SetPullRequestSourceReferenceUpdatedEventMetadata(PullRequestSourceReferenceUpdatedEventMetadata &&value)
PullRequestEvent & WithApprovalRuleOverriddenEventMetadata(ApprovalRuleOverriddenEventMetadata &&value)
const Aws::String & GetActorArn() const
PullRequestEvent & WithPullRequestMergedStateChangedEventMetadata(const PullRequestMergedStateChangedEventMetadata &value)
PullRequestEvent & WithPullRequestCreatedEventMetadata(const PullRequestCreatedEventMetadata &value)
void SetPullRequestCreatedEventMetadata(PullRequestCreatedEventMetadata &&value)
bool PullRequestSourceReferenceUpdatedEventMetadataHasBeenSet() const
void SetApprovalRuleEventMetadata(ApprovalRuleEventMetadata &&value)
PullRequestEvent & WithPullRequestMergedStateChangedEventMetadata(PullRequestMergedStateChangedEventMetadata &&value)
void SetApprovalRuleEventMetadata(const ApprovalRuleEventMetadata &value)
void SetPullRequestId(const Aws::String &value)
void SetActorArn(const Aws::String &value)
PullRequestEvent & WithApprovalStateChangedEventMetadata(ApprovalStateChangedEventMetadata &&value)
PullRequestEvent & WithPullRequestCreatedEventMetadata(PullRequestCreatedEventMetadata &&value)
const ApprovalRuleOverriddenEventMetadata & GetApprovalRuleOverriddenEventMetadata() const
PullRequestEvent & WithEventDate(Aws::Utils::DateTime &&value)
PullRequestEvent & WithPullRequestSourceReferenceUpdatedEventMetadata(PullRequestSourceReferenceUpdatedEventMetadata &&value)
PullRequestEvent & WithPullRequestSourceReferenceUpdatedEventMetadata(const PullRequestSourceReferenceUpdatedEventMetadata &value)
PullRequestEvent & WithPullRequestEventType(const PullRequestEventType &value)
const PullRequestCreatedEventMetadata & GetPullRequestCreatedEventMetadata() const
PullRequestEvent & WithEventDate(const Aws::Utils::DateTime &value)
const PullRequestEventType & GetPullRequestEventType() const
PullRequestEvent & WithPullRequestEventType(PullRequestEventType &&value)
PullRequestEvent & WithPullRequestStatusChangedEventMetadata(const PullRequestStatusChangedEventMetadata &value)
PullRequestEvent & WithPullRequestId(const char *value)
PullRequestEvent & WithActorArn(const Aws::String &value)
PullRequestEvent & WithApprovalRuleEventMetadata(const ApprovalRuleEventMetadata &value)
const PullRequestMergedStateChangedEventMetadata & GetPullRequestMergedStateChangedEventMetadata() const
PullRequestEvent & WithPullRequestId(Aws::String &&value)
void SetApprovalStateChangedEventMetadata(const ApprovalStateChangedEventMetadata &value)
const PullRequestStatusChangedEventMetadata & GetPullRequestStatusChangedEventMetadata() const
PullRequestEvent & WithActorArn(const char *value)
void SetApprovalRuleOverriddenEventMetadata(ApprovalRuleOverriddenEventMetadata &&value)
PullRequestEvent & WithApprovalRuleOverriddenEventMetadata(const ApprovalRuleOverriddenEventMetadata &value)
void SetPullRequestMergedStateChangedEventMetadata(const PullRequestMergedStateChangedEventMetadata &value)
const Aws::Utils::DateTime & GetEventDate() const
AWS_CODECOMMIT_API PullRequestEvent(Aws::Utils::Json::JsonView jsonValue)
void SetPullRequestStatusChangedEventMetadata(PullRequestStatusChangedEventMetadata &&value)
void SetApprovalStateChangedEventMetadata(ApprovalStateChangedEventMetadata &&value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPullRequestEventType(PullRequestEventType &&value)
void SetPullRequestEventType(const PullRequestEventType &value)
PullRequestEvent & WithApprovalRuleEventMetadata(ApprovalRuleEventMetadata &&value)
void SetPullRequestMergedStateChangedEventMetadata(PullRequestMergedStateChangedEventMetadata &&value)
PullRequestEvent & WithPullRequestId(const Aws::String &value)
PullRequestEvent & WithPullRequestStatusChangedEventMetadata(PullRequestStatusChangedEventMetadata &&value)
PullRequestEvent & WithActorArn(Aws::String &&value)
const ApprovalRuleEventMetadata & GetApprovalRuleEventMetadata() const
void SetEventDate(const Aws::Utils::DateTime &value)
const PullRequestSourceReferenceUpdatedEventMetadata & GetPullRequestSourceReferenceUpdatedEventMetadata() const
void SetEventDate(Aws::Utils::DateTime &&value)
const Aws::String & GetPullRequestId() const
const ApprovalStateChangedEventMetadata & GetApprovalStateChangedEventMetadata() const
void SetPullRequestCreatedEventMetadata(const PullRequestCreatedEventMetadata &value)
void SetApprovalRuleOverriddenEventMetadata(const ApprovalRuleOverriddenEventMetadata &value)
void SetPullRequestSourceReferenceUpdatedEventMetadata(const PullRequestSourceReferenceUpdatedEventMetadata &value)
AWS_CODECOMMIT_API PullRequestEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPullRequestStatusChangedEventMetadata(const PullRequestStatusChangedEventMetadata &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue