/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CodeCommit { namespace Model { /** */ class DescribePullRequestEventsRequest : public CodeCommitRequest { public: AWS_CODECOMMIT_API DescribePullRequestEventsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribePullRequestEvents"; } AWS_CODECOMMIT_API Aws::String SerializePayload() const override; AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

*/ inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; } /** *

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

*/ inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; } /** *

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

*/ inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; } /** *

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

*/ inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); } /** *

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

*/ inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); } /** *

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

*/ inline DescribePullRequestEventsRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;} /** *

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

*/ inline DescribePullRequestEventsRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;} /** *

The system-generated ID of the pull request. To get this ID, use * ListPullRequests.

*/ inline DescribePullRequestEventsRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;} /** *

Optional. The pull request event type about which you want to return * information.

*/ inline const PullRequestEventType& GetPullRequestEventType() const{ return m_pullRequestEventType; } /** *

Optional. The pull request event type about which you want to return * information.

*/ inline bool PullRequestEventTypeHasBeenSet() const { return m_pullRequestEventTypeHasBeenSet; } /** *

Optional. The pull request event type about which you want to return * information.

*/ inline void SetPullRequestEventType(const PullRequestEventType& value) { m_pullRequestEventTypeHasBeenSet = true; m_pullRequestEventType = value; } /** *

Optional. The pull request event type about which you want to return * information.

*/ inline void SetPullRequestEventType(PullRequestEventType&& value) { m_pullRequestEventTypeHasBeenSet = true; m_pullRequestEventType = std::move(value); } /** *

Optional. The pull request event type about which you want to return * information.

*/ inline DescribePullRequestEventsRequest& WithPullRequestEventType(const PullRequestEventType& value) { SetPullRequestEventType(value); return *this;} /** *

Optional. The pull request event type about which you want to return * information.

*/ inline DescribePullRequestEventsRequest& 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 DescribePullRequestEventsRequest& 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 DescribePullRequestEventsRequest& 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 DescribePullRequestEventsRequest& WithActorArn(const char* value) { SetActorArn(value); return *this;} /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline DescribePullRequestEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline DescribePullRequestEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline DescribePullRequestEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

A non-zero, non-negative integer used to limit the number of returned * results. The default is 100 events, which is also the maximum number of events * that can be returned in a result.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

A non-zero, non-negative integer used to limit the number of returned * results. The default is 100 events, which is also the maximum number of events * that can be returned in a result.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

A non-zero, non-negative integer used to limit the number of returned * results. The default is 100 events, which is also the maximum number of events * that can be returned in a result.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

A non-zero, non-negative integer used to limit the number of returned * results. The default is 100 events, which is also the maximum number of events * that can be returned in a result.

*/ inline DescribePullRequestEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_pullRequestId; bool m_pullRequestIdHasBeenSet = false; PullRequestEventType m_pullRequestEventType; bool m_pullRequestEventTypeHasBeenSet = false; Aws::String m_actorArn; bool m_actorArnHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws