/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Returns information about a pull request event.See Also:
AWS
* API Reference
The system-generated ID of the pull request.
*/ inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; } /** *The system-generated ID of the pull request.
*/ inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; } /** *The system-generated ID of the pull request.
*/ inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; } /** *The system-generated ID of the pull request.
*/ inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); } /** *The system-generated ID of the pull request.
*/ inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); } /** *The system-generated ID of the pull request.
*/ inline PullRequestEvent& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;} /** *The system-generated ID of the pull request.
*/ inline PullRequestEvent& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;} /** *The system-generated ID of the pull request.
*/ inline PullRequestEvent& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;} /** *The day and time of the pull request event, in timestamp format.
*/ inline const Aws::Utils::DateTime& GetEventDate() const{ return m_eventDate; } /** *The day and time of the pull request event, in timestamp format.
*/ inline bool EventDateHasBeenSet() const { return m_eventDateHasBeenSet; } /** *The day and time of the pull request event, in timestamp format.
*/ inline void SetEventDate(const Aws::Utils::DateTime& value) { m_eventDateHasBeenSet = true; m_eventDate = value; } /** *The day and time of the pull request event, in timestamp format.
*/ inline void SetEventDate(Aws::Utils::DateTime&& value) { m_eventDateHasBeenSet = true; m_eventDate = std::move(value); } /** *The day and time of the pull request event, in timestamp format.
*/ inline PullRequestEvent& WithEventDate(const Aws::Utils::DateTime& value) { SetEventDate(value); return *this;} /** *The day and time of the pull request event, in timestamp format.
*/ inline PullRequestEvent& WithEventDate(Aws::Utils::DateTime&& value) { SetEventDate(std::move(value)); return *this;} /** *The type of the pull request event (for example, a status change event * (PULL_REQUEST_STATUS_CHANGED) or update event * (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).
*/ inline const PullRequestEventType& GetPullRequestEventType() const{ return m_pullRequestEventType; } /** *The type of the pull request event (for example, a status change event * (PULL_REQUEST_STATUS_CHANGED) or update event * (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).
*/ inline bool PullRequestEventTypeHasBeenSet() const { return m_pullRequestEventTypeHasBeenSet; } /** *The type of the pull request event (for example, a status change event * (PULL_REQUEST_STATUS_CHANGED) or update event * (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).
*/ inline void SetPullRequestEventType(const PullRequestEventType& value) { m_pullRequestEventTypeHasBeenSet = true; m_pullRequestEventType = value; } /** *The type of the pull request event (for example, a status change event * (PULL_REQUEST_STATUS_CHANGED) or update event * (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).
*/ inline void SetPullRequestEventType(PullRequestEventType&& value) { m_pullRequestEventTypeHasBeenSet = true; m_pullRequestEventType = std::move(value); } /** *The type of the pull request event (for example, a status change event * (PULL_REQUEST_STATUS_CHANGED) or update event * (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).
*/ inline PullRequestEvent& WithPullRequestEventType(const PullRequestEventType& value) { SetPullRequestEventType(value); return *this;} /** *The type of the pull request event (for example, a status change event * (PULL_REQUEST_STATUS_CHANGED) or update event * (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).
*/ inline PullRequestEvent& WithPullRequestEventType(PullRequestEventType&& value) { SetPullRequestEventType(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the user whose actions resulted in the * event. Examples include updating the pull request with more commits or changing * the status of a pull request.
*/ inline const Aws::String& GetActorArn() const{ return m_actorArn; } /** *The Amazon Resource Name (ARN) of the user whose actions resulted in the * event. Examples include updating the pull request with more commits or changing * the status of a pull request.
*/ inline bool ActorArnHasBeenSet() const { return m_actorArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the user whose actions resulted in the * event. Examples include updating the pull request with more commits or changing * the status of a pull request.
*/ inline void SetActorArn(const Aws::String& value) { m_actorArnHasBeenSet = true; m_actorArn = value; } /** *The Amazon Resource Name (ARN) of the user whose actions resulted in the * event. Examples include updating the pull request with more commits or changing * the status of a pull request.
*/ inline void SetActorArn(Aws::String&& value) { m_actorArnHasBeenSet = true; m_actorArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the user whose actions resulted in the * event. Examples include updating the pull request with more commits or changing * the status of a pull request.
*/ inline void SetActorArn(const char* value) { m_actorArnHasBeenSet = true; m_actorArn.assign(value); } /** *The Amazon Resource Name (ARN) of the user whose actions resulted in the * event. Examples include updating the pull request with more commits or changing * the status of a pull request.
*/ inline PullRequestEvent& WithActorArn(const Aws::String& value) { SetActorArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the user whose actions resulted in the * event. Examples include updating the pull request with more commits or changing * the status of a pull request.
*/ inline PullRequestEvent& WithActorArn(Aws::String&& value) { SetActorArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the user whose actions resulted in the * event. Examples include updating the pull request with more commits or changing * the status of a pull request.
*/ inline PullRequestEvent& WithActorArn(const char* value) { SetActorArn(value); return *this;} /** *Information about the source and destination branches for the pull * request.
*/ inline const PullRequestCreatedEventMetadata& GetPullRequestCreatedEventMetadata() const{ return m_pullRequestCreatedEventMetadata; } /** *Information about the source and destination branches for the pull * request.
*/ inline bool PullRequestCreatedEventMetadataHasBeenSet() const { return m_pullRequestCreatedEventMetadataHasBeenSet; } /** *Information about the source and destination branches for the pull * request.
*/ inline void SetPullRequestCreatedEventMetadata(const PullRequestCreatedEventMetadata& value) { m_pullRequestCreatedEventMetadataHasBeenSet = true; m_pullRequestCreatedEventMetadata = value; } /** *Information about the source and destination branches for the pull * request.
*/ inline void SetPullRequestCreatedEventMetadata(PullRequestCreatedEventMetadata&& value) { m_pullRequestCreatedEventMetadataHasBeenSet = true; m_pullRequestCreatedEventMetadata = std::move(value); } /** *Information about the source and destination branches for the pull * request.
*/ inline PullRequestEvent& WithPullRequestCreatedEventMetadata(const PullRequestCreatedEventMetadata& value) { SetPullRequestCreatedEventMetadata(value); return *this;} /** *Information about the source and destination branches for the pull * request.
*/ inline PullRequestEvent& WithPullRequestCreatedEventMetadata(PullRequestCreatedEventMetadata&& value) { SetPullRequestCreatedEventMetadata(std::move(value)); return *this;} /** *Information about the change in status for the pull request event.
*/ inline const PullRequestStatusChangedEventMetadata& GetPullRequestStatusChangedEventMetadata() const{ return m_pullRequestStatusChangedEventMetadata; } /** *Information about the change in status for the pull request event.
*/ inline bool PullRequestStatusChangedEventMetadataHasBeenSet() const { return m_pullRequestStatusChangedEventMetadataHasBeenSet; } /** *Information about the change in status for the pull request event.
*/ inline void SetPullRequestStatusChangedEventMetadata(const PullRequestStatusChangedEventMetadata& value) { m_pullRequestStatusChangedEventMetadataHasBeenSet = true; m_pullRequestStatusChangedEventMetadata = value; } /** *Information about the change in status for the pull request event.
*/ inline void SetPullRequestStatusChangedEventMetadata(PullRequestStatusChangedEventMetadata&& value) { m_pullRequestStatusChangedEventMetadataHasBeenSet = true; m_pullRequestStatusChangedEventMetadata = std::move(value); } /** *Information about the change in status for the pull request event.
*/ inline PullRequestEvent& WithPullRequestStatusChangedEventMetadata(const PullRequestStatusChangedEventMetadata& value) { SetPullRequestStatusChangedEventMetadata(value); return *this;} /** *Information about the change in status for the pull request event.
*/ inline PullRequestEvent& WithPullRequestStatusChangedEventMetadata(PullRequestStatusChangedEventMetadata&& value) { SetPullRequestStatusChangedEventMetadata(std::move(value)); return *this;} /** *Information about the updated source branch for the pull request event.
*/ inline const PullRequestSourceReferenceUpdatedEventMetadata& GetPullRequestSourceReferenceUpdatedEventMetadata() const{ return m_pullRequestSourceReferenceUpdatedEventMetadata; } /** *Information about the updated source branch for the pull request event.
*/ inline bool PullRequestSourceReferenceUpdatedEventMetadataHasBeenSet() const { return m_pullRequestSourceReferenceUpdatedEventMetadataHasBeenSet; } /** *Information about the updated source branch for the pull request event.
*/ inline void SetPullRequestSourceReferenceUpdatedEventMetadata(const PullRequestSourceReferenceUpdatedEventMetadata& value) { m_pullRequestSourceReferenceUpdatedEventMetadataHasBeenSet = true; m_pullRequestSourceReferenceUpdatedEventMetadata = value; } /** *Information about the updated source branch for the pull request event.
*/ inline void SetPullRequestSourceReferenceUpdatedEventMetadata(PullRequestSourceReferenceUpdatedEventMetadata&& value) { m_pullRequestSourceReferenceUpdatedEventMetadataHasBeenSet = true; m_pullRequestSourceReferenceUpdatedEventMetadata = std::move(value); } /** *Information about the updated source branch for the pull request event.
*/ inline PullRequestEvent& WithPullRequestSourceReferenceUpdatedEventMetadata(const PullRequestSourceReferenceUpdatedEventMetadata& value) { SetPullRequestSourceReferenceUpdatedEventMetadata(value); return *this;} /** *Information about the updated source branch for the pull request event.
*/ inline PullRequestEvent& WithPullRequestSourceReferenceUpdatedEventMetadata(PullRequestSourceReferenceUpdatedEventMetadata&& value) { SetPullRequestSourceReferenceUpdatedEventMetadata(std::move(value)); return *this;} /** *Information about the change in mergability state for the pull request * event.
*/ inline const PullRequestMergedStateChangedEventMetadata& GetPullRequestMergedStateChangedEventMetadata() const{ return m_pullRequestMergedStateChangedEventMetadata; } /** *Information about the change in mergability state for the pull request * event.
*/ inline bool PullRequestMergedStateChangedEventMetadataHasBeenSet() const { return m_pullRequestMergedStateChangedEventMetadataHasBeenSet; } /** *Information about the change in mergability state for the pull request * event.
*/ inline void SetPullRequestMergedStateChangedEventMetadata(const PullRequestMergedStateChangedEventMetadata& value) { m_pullRequestMergedStateChangedEventMetadataHasBeenSet = true; m_pullRequestMergedStateChangedEventMetadata = value; } /** *Information about the change in mergability state for the pull request * event.
*/ inline void SetPullRequestMergedStateChangedEventMetadata(PullRequestMergedStateChangedEventMetadata&& value) { m_pullRequestMergedStateChangedEventMetadataHasBeenSet = true; m_pullRequestMergedStateChangedEventMetadata = std::move(value); } /** *Information about the change in mergability state for the pull request * event.
*/ inline PullRequestEvent& WithPullRequestMergedStateChangedEventMetadata(const PullRequestMergedStateChangedEventMetadata& value) { SetPullRequestMergedStateChangedEventMetadata(value); return *this;} /** *Information about the change in mergability state for the pull request * event.
*/ inline PullRequestEvent& WithPullRequestMergedStateChangedEventMetadata(PullRequestMergedStateChangedEventMetadata&& value) { SetPullRequestMergedStateChangedEventMetadata(std::move(value)); return *this;} /** *Information about a pull request event.
*/ inline const ApprovalRuleEventMetadata& GetApprovalRuleEventMetadata() const{ return m_approvalRuleEventMetadata; } /** *Information about a pull request event.
*/ inline bool ApprovalRuleEventMetadataHasBeenSet() const { return m_approvalRuleEventMetadataHasBeenSet; } /** *Information about a pull request event.
*/ inline void SetApprovalRuleEventMetadata(const ApprovalRuleEventMetadata& value) { m_approvalRuleEventMetadataHasBeenSet = true; m_approvalRuleEventMetadata = value; } /** *Information about a pull request event.
*/ inline void SetApprovalRuleEventMetadata(ApprovalRuleEventMetadata&& value) { m_approvalRuleEventMetadataHasBeenSet = true; m_approvalRuleEventMetadata = std::move(value); } /** *Information about a pull request event.
*/ inline PullRequestEvent& WithApprovalRuleEventMetadata(const ApprovalRuleEventMetadata& value) { SetApprovalRuleEventMetadata(value); return *this;} /** *Information about a pull request event.
*/ inline PullRequestEvent& WithApprovalRuleEventMetadata(ApprovalRuleEventMetadata&& value) { SetApprovalRuleEventMetadata(std::move(value)); return *this;} /** *Information about an approval state change for a pull request.
*/ inline const ApprovalStateChangedEventMetadata& GetApprovalStateChangedEventMetadata() const{ return m_approvalStateChangedEventMetadata; } /** *Information about an approval state change for a pull request.
*/ inline bool ApprovalStateChangedEventMetadataHasBeenSet() const { return m_approvalStateChangedEventMetadataHasBeenSet; } /** *Information about an approval state change for a pull request.
*/ inline void SetApprovalStateChangedEventMetadata(const ApprovalStateChangedEventMetadata& value) { m_approvalStateChangedEventMetadataHasBeenSet = true; m_approvalStateChangedEventMetadata = value; } /** *Information about an approval state change for a pull request.
*/ inline void SetApprovalStateChangedEventMetadata(ApprovalStateChangedEventMetadata&& value) { m_approvalStateChangedEventMetadataHasBeenSet = true; m_approvalStateChangedEventMetadata = std::move(value); } /** *Information about an approval state change for a pull request.
*/ inline PullRequestEvent& WithApprovalStateChangedEventMetadata(const ApprovalStateChangedEventMetadata& value) { SetApprovalStateChangedEventMetadata(value); return *this;} /** *Information about an approval state change for a pull request.
*/ inline PullRequestEvent& WithApprovalStateChangedEventMetadata(ApprovalStateChangedEventMetadata&& value) { SetApprovalStateChangedEventMetadata(std::move(value)); return *this;} /** *Information about an approval rule override event for a pull request.
*/ inline const ApprovalRuleOverriddenEventMetadata& GetApprovalRuleOverriddenEventMetadata() const{ return m_approvalRuleOverriddenEventMetadata; } /** *Information about an approval rule override event for a pull request.
*/ inline bool ApprovalRuleOverriddenEventMetadataHasBeenSet() const { return m_approvalRuleOverriddenEventMetadataHasBeenSet; } /** *Information about an approval rule override event for a pull request.
*/ inline void SetApprovalRuleOverriddenEventMetadata(const ApprovalRuleOverriddenEventMetadata& value) { m_approvalRuleOverriddenEventMetadataHasBeenSet = true; m_approvalRuleOverriddenEventMetadata = value; } /** *Information about an approval rule override event for a pull request.
*/ inline void SetApprovalRuleOverriddenEventMetadata(ApprovalRuleOverriddenEventMetadata&& value) { m_approvalRuleOverriddenEventMetadataHasBeenSet = true; m_approvalRuleOverriddenEventMetadata = std::move(value); } /** *Information about an approval rule override event for a pull request.
*/ inline PullRequestEvent& WithApprovalRuleOverriddenEventMetadata(const ApprovalRuleOverriddenEventMetadata& value) { SetApprovalRuleOverriddenEventMetadata(value); return *this;} /** *Information about an approval rule override event for a pull request.
*/ inline PullRequestEvent& WithApprovalRuleOverriddenEventMetadata(ApprovalRuleOverriddenEventMetadata&& value) { SetApprovalRuleOverriddenEventMetadata(std::move(value)); return *this;} private: Aws::String m_pullRequestId; bool m_pullRequestIdHasBeenSet = false; Aws::Utils::DateTime m_eventDate; bool m_eventDateHasBeenSet = false; PullRequestEventType m_pullRequestEventType; bool m_pullRequestEventTypeHasBeenSet = false; Aws::String m_actorArn; bool m_actorArnHasBeenSet = false; PullRequestCreatedEventMetadata m_pullRequestCreatedEventMetadata; bool m_pullRequestCreatedEventMetadataHasBeenSet = false; PullRequestStatusChangedEventMetadata m_pullRequestStatusChangedEventMetadata; bool m_pullRequestStatusChangedEventMetadataHasBeenSet = false; PullRequestSourceReferenceUpdatedEventMetadata m_pullRequestSourceReferenceUpdatedEventMetadata; bool m_pullRequestSourceReferenceUpdatedEventMetadataHasBeenSet = false; PullRequestMergedStateChangedEventMetadata m_pullRequestMergedStateChangedEventMetadata; bool m_pullRequestMergedStateChangedEventMetadataHasBeenSet = false; ApprovalRuleEventMetadata m_approvalRuleEventMetadata; bool m_approvalRuleEventMetadataHasBeenSet = false; ApprovalStateChangedEventMetadata m_approvalStateChangedEventMetadata; bool m_approvalStateChangedEventMetadataHasBeenSet = false; ApprovalRuleOverriddenEventMetadata m_approvalRuleOverriddenEventMetadata; bool m_approvalRuleOverriddenEventMetadataHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws