/** * 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 ListPullRequestsRequest : public CodeCommitRequest { public: AWS_CODECOMMIT_API ListPullRequestsRequest(); // 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 "ListPullRequests"; } AWS_CODECOMMIT_API Aws::String SerializePayload() const override; AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the repository for which you want to list pull requests.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The name of the repository for which you want to list pull requests.

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

The name of the repository for which you want to list pull requests.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

The name of the repository for which you want to list pull requests.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

The name of the repository for which you want to list pull requests.

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

The name of the repository for which you want to list pull requests.

*/ inline ListPullRequestsRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The name of the repository for which you want to list pull requests.

*/ inline ListPullRequestsRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The name of the repository for which you want to list pull requests.

*/ inline ListPullRequestsRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

Optional. The Amazon Resource Name (ARN) of the user who created the pull * request. If used, this filters the results to pull requests created by that * user.

*/ inline const Aws::String& GetAuthorArn() const{ return m_authorArn; } /** *

Optional. The Amazon Resource Name (ARN) of the user who created the pull * request. If used, this filters the results to pull requests created by that * user.

*/ inline bool AuthorArnHasBeenSet() const { return m_authorArnHasBeenSet; } /** *

Optional. The Amazon Resource Name (ARN) of the user who created the pull * request. If used, this filters the results to pull requests created by that * user.

*/ inline void SetAuthorArn(const Aws::String& value) { m_authorArnHasBeenSet = true; m_authorArn = value; } /** *

Optional. The Amazon Resource Name (ARN) of the user who created the pull * request. If used, this filters the results to pull requests created by that * user.

*/ inline void SetAuthorArn(Aws::String&& value) { m_authorArnHasBeenSet = true; m_authorArn = std::move(value); } /** *

Optional. The Amazon Resource Name (ARN) of the user who created the pull * request. If used, this filters the results to pull requests created by that * user.

*/ inline void SetAuthorArn(const char* value) { m_authorArnHasBeenSet = true; m_authorArn.assign(value); } /** *

Optional. The Amazon Resource Name (ARN) of the user who created the pull * request. If used, this filters the results to pull requests created by that * user.

*/ inline ListPullRequestsRequest& WithAuthorArn(const Aws::String& value) { SetAuthorArn(value); return *this;} /** *

Optional. The Amazon Resource Name (ARN) of the user who created the pull * request. If used, this filters the results to pull requests created by that * user.

*/ inline ListPullRequestsRequest& WithAuthorArn(Aws::String&& value) { SetAuthorArn(std::move(value)); return *this;} /** *

Optional. The Amazon Resource Name (ARN) of the user who created the pull * request. If used, this filters the results to pull requests created by that * user.

*/ inline ListPullRequestsRequest& WithAuthorArn(const char* value) { SetAuthorArn(value); return *this;} /** *

Optional. The status of the pull request. If used, this refines the results * to the pull requests that match the specified status.

*/ inline const PullRequestStatusEnum& GetPullRequestStatus() const{ return m_pullRequestStatus; } /** *

Optional. The status of the pull request. If used, this refines the results * to the pull requests that match the specified status.

*/ inline bool PullRequestStatusHasBeenSet() const { return m_pullRequestStatusHasBeenSet; } /** *

Optional. The status of the pull request. If used, this refines the results * to the pull requests that match the specified status.

*/ inline void SetPullRequestStatus(const PullRequestStatusEnum& value) { m_pullRequestStatusHasBeenSet = true; m_pullRequestStatus = value; } /** *

Optional. The status of the pull request. If used, this refines the results * to the pull requests that match the specified status.

*/ inline void SetPullRequestStatus(PullRequestStatusEnum&& value) { m_pullRequestStatusHasBeenSet = true; m_pullRequestStatus = std::move(value); } /** *

Optional. The status of the pull request. If used, this refines the results * to the pull requests that match the specified status.

*/ inline ListPullRequestsRequest& WithPullRequestStatus(const PullRequestStatusEnum& value) { SetPullRequestStatus(value); return *this;} /** *

Optional. The status of the pull request. If used, this refines the results * to the pull requests that match the specified status.

*/ inline ListPullRequestsRequest& WithPullRequestStatus(PullRequestStatusEnum&& value) { SetPullRequestStatus(std::move(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 ListPullRequestsRequest& 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 ListPullRequestsRequest& 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 ListPullRequestsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

A non-zero, non-negative integer used to limit the number of returned * results.

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

A non-zero, non-negative integer used to limit the number of returned * results.

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

A non-zero, non-negative integer used to limit the number of returned * results.

*/ 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.

*/ inline ListPullRequestsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_authorArn; bool m_authorArnHasBeenSet = false; PullRequestStatusEnum m_pullRequestStatus; bool m_pullRequestStatusHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws