/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace CodeGuruReviewer { namespace Model { /** */ class ListRepositoryAssociationsRequest : public CodeGuruReviewerRequest { public: AWS_CODEGURUREVIEWER_API ListRepositoryAssociationsRequest(); // 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 "ListRepositoryAssociations"; } AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override; AWS_CODEGURUREVIEWER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

List of provider types to use as a filter.

*/ inline const Aws::Vector& GetProviderTypes() const{ return m_providerTypes; } /** *

List of provider types to use as a filter.

*/ inline bool ProviderTypesHasBeenSet() const { return m_providerTypesHasBeenSet; } /** *

List of provider types to use as a filter.

*/ inline void SetProviderTypes(const Aws::Vector& value) { m_providerTypesHasBeenSet = true; m_providerTypes = value; } /** *

List of provider types to use as a filter.

*/ inline void SetProviderTypes(Aws::Vector&& value) { m_providerTypesHasBeenSet = true; m_providerTypes = std::move(value); } /** *

List of provider types to use as a filter.

*/ inline ListRepositoryAssociationsRequest& WithProviderTypes(const Aws::Vector& value) { SetProviderTypes(value); return *this;} /** *

List of provider types to use as a filter.

*/ inline ListRepositoryAssociationsRequest& WithProviderTypes(Aws::Vector&& value) { SetProviderTypes(std::move(value)); return *this;} /** *

List of provider types to use as a filter.

*/ inline ListRepositoryAssociationsRequest& AddProviderTypes(const ProviderType& value) { m_providerTypesHasBeenSet = true; m_providerTypes.push_back(value); return *this; } /** *

List of provider types to use as a filter.

*/ inline ListRepositoryAssociationsRequest& AddProviderTypes(ProviderType&& value) { m_providerTypesHasBeenSet = true; m_providerTypes.push_back(std::move(value)); return *this; } /** *

List of repository association states to use as a filter.

The valid * repository association states are:

  • Associated: The * repository association is complete.

  • Associating: * CodeGuru Reviewer is:

    • Setting up pull request notifications. * This is required for pull requests to trigger a CodeGuru Reviewer review.

      *

      If your repository ProviderType is GitHub, * GitHub Enterprise Server, or Bitbucket, CodeGuru * Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer * reviews. If you delete these webhooks, reviews of code in your repository cannot * be triggered.

    • Setting up source code access. This is * required for CodeGuru Reviewer to securely clone code in your repository.

      *
  • Failed: The repository failed to associate or * disassociate.

  • Disassociating: CodeGuru Reviewer is * removing the repository's pull request notifications and source code access.

    *
  • Disassociated: CodeGuru Reviewer successfully * disassociated the repository. You can create a new association with this * repository if you want to review source code in it later. You can control access * to code reviews created in anassociated repository with tags after it has been * disassociated. For more information, see Using * tags to control access to associated repositories in the Amazon CodeGuru * Reviewer User Guide.

*/ inline const Aws::Vector& GetStates() const{ return m_states; } /** *

List of repository association states to use as a filter.

The valid * repository association states are:

  • Associated: The * repository association is complete.

  • Associating: * CodeGuru Reviewer is:

    • Setting up pull request notifications. * This is required for pull requests to trigger a CodeGuru Reviewer review.

      *

      If your repository ProviderType is GitHub, * GitHub Enterprise Server, or Bitbucket, CodeGuru * Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer * reviews. If you delete these webhooks, reviews of code in your repository cannot * be triggered.

    • Setting up source code access. This is * required for CodeGuru Reviewer to securely clone code in your repository.

      *
  • Failed: The repository failed to associate or * disassociate.

  • Disassociating: CodeGuru Reviewer is * removing the repository's pull request notifications and source code access.

    *
  • Disassociated: CodeGuru Reviewer successfully * disassociated the repository. You can create a new association with this * repository if you want to review source code in it later. You can control access * to code reviews created in anassociated repository with tags after it has been * disassociated. For more information, see Using * tags to control access to associated repositories in the Amazon CodeGuru * Reviewer User Guide.

*/ inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; } /** *

List of repository association states to use as a filter.

The valid * repository association states are:

  • Associated: The * repository association is complete.

  • Associating: * CodeGuru Reviewer is:

    • Setting up pull request notifications. * This is required for pull requests to trigger a CodeGuru Reviewer review.

      *

      If your repository ProviderType is GitHub, * GitHub Enterprise Server, or Bitbucket, CodeGuru * Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer * reviews. If you delete these webhooks, reviews of code in your repository cannot * be triggered.

    • Setting up source code access. This is * required for CodeGuru Reviewer to securely clone code in your repository.

      *
  • Failed: The repository failed to associate or * disassociate.

  • Disassociating: CodeGuru Reviewer is * removing the repository's pull request notifications and source code access.

    *
  • Disassociated: CodeGuru Reviewer successfully * disassociated the repository. You can create a new association with this * repository if you want to review source code in it later. You can control access * to code reviews created in anassociated repository with tags after it has been * disassociated. For more information, see Using * tags to control access to associated repositories in the Amazon CodeGuru * Reviewer User Guide.

*/ inline void SetStates(const Aws::Vector& value) { m_statesHasBeenSet = true; m_states = value; } /** *

List of repository association states to use as a filter.

The valid * repository association states are:

  • Associated: The * repository association is complete.

  • Associating: * CodeGuru Reviewer is:

    • Setting up pull request notifications. * This is required for pull requests to trigger a CodeGuru Reviewer review.

      *

      If your repository ProviderType is GitHub, * GitHub Enterprise Server, or Bitbucket, CodeGuru * Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer * reviews. If you delete these webhooks, reviews of code in your repository cannot * be triggered.

    • Setting up source code access. This is * required for CodeGuru Reviewer to securely clone code in your repository.

      *
  • Failed: The repository failed to associate or * disassociate.

  • Disassociating: CodeGuru Reviewer is * removing the repository's pull request notifications and source code access.

    *
  • Disassociated: CodeGuru Reviewer successfully * disassociated the repository. You can create a new association with this * repository if you want to review source code in it later. You can control access * to code reviews created in anassociated repository with tags after it has been * disassociated. For more information, see Using * tags to control access to associated repositories in the Amazon CodeGuru * Reviewer User Guide.

*/ inline void SetStates(Aws::Vector&& value) { m_statesHasBeenSet = true; m_states = std::move(value); } /** *

List of repository association states to use as a filter.

The valid * repository association states are:

  • Associated: The * repository association is complete.

  • Associating: * CodeGuru Reviewer is:

    • Setting up pull request notifications. * This is required for pull requests to trigger a CodeGuru Reviewer review.

      *

      If your repository ProviderType is GitHub, * GitHub Enterprise Server, or Bitbucket, CodeGuru * Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer * reviews. If you delete these webhooks, reviews of code in your repository cannot * be triggered.

    • Setting up source code access. This is * required for CodeGuru Reviewer to securely clone code in your repository.

      *
  • Failed: The repository failed to associate or * disassociate.

  • Disassociating: CodeGuru Reviewer is * removing the repository's pull request notifications and source code access.

    *
  • Disassociated: CodeGuru Reviewer successfully * disassociated the repository. You can create a new association with this * repository if you want to review source code in it later. You can control access * to code reviews created in anassociated repository with tags after it has been * disassociated. For more information, see Using * tags to control access to associated repositories in the Amazon CodeGuru * Reviewer User Guide.

*/ inline ListRepositoryAssociationsRequest& WithStates(const Aws::Vector& value) { SetStates(value); return *this;} /** *

List of repository association states to use as a filter.

The valid * repository association states are:

  • Associated: The * repository association is complete.

  • Associating: * CodeGuru Reviewer is:

    • Setting up pull request notifications. * This is required for pull requests to trigger a CodeGuru Reviewer review.

      *

      If your repository ProviderType is GitHub, * GitHub Enterprise Server, or Bitbucket, CodeGuru * Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer * reviews. If you delete these webhooks, reviews of code in your repository cannot * be triggered.

    • Setting up source code access. This is * required for CodeGuru Reviewer to securely clone code in your repository.

      *
  • Failed: The repository failed to associate or * disassociate.

  • Disassociating: CodeGuru Reviewer is * removing the repository's pull request notifications and source code access.

    *
  • Disassociated: CodeGuru Reviewer successfully * disassociated the repository. You can create a new association with this * repository if you want to review source code in it later. You can control access * to code reviews created in anassociated repository with tags after it has been * disassociated. For more information, see Using * tags to control access to associated repositories in the Amazon CodeGuru * Reviewer User Guide.

*/ inline ListRepositoryAssociationsRequest& WithStates(Aws::Vector&& value) { SetStates(std::move(value)); return *this;} /** *

List of repository association states to use as a filter.

The valid * repository association states are:

  • Associated: The * repository association is complete.

  • Associating: * CodeGuru Reviewer is:

    • Setting up pull request notifications. * This is required for pull requests to trigger a CodeGuru Reviewer review.

      *

      If your repository ProviderType is GitHub, * GitHub Enterprise Server, or Bitbucket, CodeGuru * Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer * reviews. If you delete these webhooks, reviews of code in your repository cannot * be triggered.

    • Setting up source code access. This is * required for CodeGuru Reviewer to securely clone code in your repository.

      *
  • Failed: The repository failed to associate or * disassociate.

  • Disassociating: CodeGuru Reviewer is * removing the repository's pull request notifications and source code access.

    *
  • Disassociated: CodeGuru Reviewer successfully * disassociated the repository. You can create a new association with this * repository if you want to review source code in it later. You can control access * to code reviews created in anassociated repository with tags after it has been * disassociated. For more information, see Using * tags to control access to associated repositories in the Amazon CodeGuru * Reviewer User Guide.

*/ inline ListRepositoryAssociationsRequest& AddStates(const RepositoryAssociationState& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; } /** *

List of repository association states to use as a filter.

The valid * repository association states are:

  • Associated: The * repository association is complete.

  • Associating: * CodeGuru Reviewer is:

    • Setting up pull request notifications. * This is required for pull requests to trigger a CodeGuru Reviewer review.

      *

      If your repository ProviderType is GitHub, * GitHub Enterprise Server, or Bitbucket, CodeGuru * Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer * reviews. If you delete these webhooks, reviews of code in your repository cannot * be triggered.

    • Setting up source code access. This is * required for CodeGuru Reviewer to securely clone code in your repository.

      *
  • Failed: The repository failed to associate or * disassociate.

  • Disassociating: CodeGuru Reviewer is * removing the repository's pull request notifications and source code access.

    *
  • Disassociated: CodeGuru Reviewer successfully * disassociated the repository. You can create a new association with this * repository if you want to review source code in it later. You can control access * to code reviews created in anassociated repository with tags after it has been * disassociated. For more information, see Using * tags to control access to associated repositories in the Amazon CodeGuru * Reviewer User Guide.

*/ inline ListRepositoryAssociationsRequest& AddStates(RepositoryAssociationState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; } /** *

List of repository names to use as a filter.

*/ inline const Aws::Vector& GetNames() const{ return m_names; } /** *

List of repository names to use as a filter.

*/ inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; } /** *

List of repository names to use as a filter.

*/ inline void SetNames(const Aws::Vector& value) { m_namesHasBeenSet = true; m_names = value; } /** *

List of repository names to use as a filter.

*/ inline void SetNames(Aws::Vector&& value) { m_namesHasBeenSet = true; m_names = std::move(value); } /** *

List of repository names to use as a filter.

*/ inline ListRepositoryAssociationsRequest& WithNames(const Aws::Vector& value) { SetNames(value); return *this;} /** *

List of repository names to use as a filter.

*/ inline ListRepositoryAssociationsRequest& WithNames(Aws::Vector&& value) { SetNames(std::move(value)); return *this;} /** *

List of repository names to use as a filter.

*/ inline ListRepositoryAssociationsRequest& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; } /** *

List of repository names to use as a filter.

*/ inline ListRepositoryAssociationsRequest& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; } /** *

List of repository names to use as a filter.

*/ inline ListRepositoryAssociationsRequest& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; } /** *

List of owners to use as a filter. For Amazon Web Services CodeCommit, it is * the name of the CodeCommit account that was used to associate the repository. * For other repository source providers, such as Bitbucket and GitHub Enterprise * Server, this is name of the account that was used to associate the repository. *

*/ inline const Aws::Vector& GetOwners() const{ return m_owners; } /** *

List of owners to use as a filter. For Amazon Web Services CodeCommit, it is * the name of the CodeCommit account that was used to associate the repository. * For other repository source providers, such as Bitbucket and GitHub Enterprise * Server, this is name of the account that was used to associate the repository. *

*/ inline bool OwnersHasBeenSet() const { return m_ownersHasBeenSet; } /** *

List of owners to use as a filter. For Amazon Web Services CodeCommit, it is * the name of the CodeCommit account that was used to associate the repository. * For other repository source providers, such as Bitbucket and GitHub Enterprise * Server, this is name of the account that was used to associate the repository. *

*/ inline void SetOwners(const Aws::Vector& value) { m_ownersHasBeenSet = true; m_owners = value; } /** *

List of owners to use as a filter. For Amazon Web Services CodeCommit, it is * the name of the CodeCommit account that was used to associate the repository. * For other repository source providers, such as Bitbucket and GitHub Enterprise * Server, this is name of the account that was used to associate the repository. *

*/ inline void SetOwners(Aws::Vector&& value) { m_ownersHasBeenSet = true; m_owners = std::move(value); } /** *

List of owners to use as a filter. For Amazon Web Services CodeCommit, it is * the name of the CodeCommit account that was used to associate the repository. * For other repository source providers, such as Bitbucket and GitHub Enterprise * Server, this is name of the account that was used to associate the repository. *

*/ inline ListRepositoryAssociationsRequest& WithOwners(const Aws::Vector& value) { SetOwners(value); return *this;} /** *

List of owners to use as a filter. For Amazon Web Services CodeCommit, it is * the name of the CodeCommit account that was used to associate the repository. * For other repository source providers, such as Bitbucket and GitHub Enterprise * Server, this is name of the account that was used to associate the repository. *

*/ inline ListRepositoryAssociationsRequest& WithOwners(Aws::Vector&& value) { SetOwners(std::move(value)); return *this;} /** *

List of owners to use as a filter. For Amazon Web Services CodeCommit, it is * the name of the CodeCommit account that was used to associate the repository. * For other repository source providers, such as Bitbucket and GitHub Enterprise * Server, this is name of the account that was used to associate the repository. *

*/ inline ListRepositoryAssociationsRequest& AddOwners(const Aws::String& value) { m_ownersHasBeenSet = true; m_owners.push_back(value); return *this; } /** *

List of owners to use as a filter. For Amazon Web Services CodeCommit, it is * the name of the CodeCommit account that was used to associate the repository. * For other repository source providers, such as Bitbucket and GitHub Enterprise * Server, this is name of the account that was used to associate the repository. *

*/ inline ListRepositoryAssociationsRequest& AddOwners(Aws::String&& value) { m_ownersHasBeenSet = true; m_owners.push_back(std::move(value)); return *this; } /** *

List of owners to use as a filter. For Amazon Web Services CodeCommit, it is * the name of the CodeCommit account that was used to associate the repository. * For other repository source providers, such as Bitbucket and GitHub Enterprise * Server, this is name of the account that was used to associate the repository. *

*/ inline ListRepositoryAssociationsRequest& AddOwners(const char* value) { m_ownersHasBeenSet = true; m_owners.push_back(value); return *this; } /** *

The maximum number of repository association results returned by * ListRepositoryAssociations in paginated output. When this parameter * is used, ListRepositoryAssociations only returns * maxResults results in a single page with a nextToken * response element. The remaining results of the initial request can be seen by * sending another ListRepositoryAssociations request with the * returned nextToken value. This value can be between 1 and 100. If * this parameter is not used, ListRepositoryAssociations returns up * to 100 results and a nextToken value if applicable.

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

The maximum number of repository association results returned by * ListRepositoryAssociations in paginated output. When this parameter * is used, ListRepositoryAssociations only returns * maxResults results in a single page with a nextToken * response element. The remaining results of the initial request can be seen by * sending another ListRepositoryAssociations request with the * returned nextToken value. This value can be between 1 and 100. If * this parameter is not used, ListRepositoryAssociations returns up * to 100 results and a nextToken value if applicable.

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

The maximum number of repository association results returned by * ListRepositoryAssociations in paginated output. When this parameter * is used, ListRepositoryAssociations only returns * maxResults results in a single page with a nextToken * response element. The remaining results of the initial request can be seen by * sending another ListRepositoryAssociations request with the * returned nextToken value. This value can be between 1 and 100. If * this parameter is not used, ListRepositoryAssociations returns up * to 100 results and a nextToken value if applicable.

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

The maximum number of repository association results returned by * ListRepositoryAssociations in paginated output. When this parameter * is used, ListRepositoryAssociations only returns * maxResults results in a single page with a nextToken * response element. The remaining results of the initial request can be seen by * sending another ListRepositoryAssociations request with the * returned nextToken value. This value can be between 1 and 100. If * this parameter is not used, ListRepositoryAssociations returns up * to 100 results and a nextToken value if applicable.

*/ inline ListRepositoryAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The nextToken value returned from a previous paginated * ListRepositoryAssociations request where maxResults * was used and the results exceeded the value of that parameter. Pagination * continues from the end of the previous results that returned the * nextToken value.

Treat this token as an opaque * identifier that is only used to retrieve the next items in a list and not for * other programmatic purposes.

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

The nextToken value returned from a previous paginated * ListRepositoryAssociations request where maxResults * was used and the results exceeded the value of that parameter. Pagination * continues from the end of the previous results that returned the * nextToken value.

Treat this token as an opaque * identifier that is only used to retrieve the next items in a list and not for * other programmatic purposes.

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

The nextToken value returned from a previous paginated * ListRepositoryAssociations request where maxResults * was used and the results exceeded the value of that parameter. Pagination * continues from the end of the previous results that returned the * nextToken value.

Treat this token as an opaque * identifier that is only used to retrieve the next items in a list and not for * other programmatic purposes.

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

The nextToken value returned from a previous paginated * ListRepositoryAssociations request where maxResults * was used and the results exceeded the value of that parameter. Pagination * continues from the end of the previous results that returned the * nextToken value.

Treat this token as an opaque * identifier that is only used to retrieve the next items in a list and not for * other programmatic purposes.

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

The nextToken value returned from a previous paginated * ListRepositoryAssociations request where maxResults * was used and the results exceeded the value of that parameter. Pagination * continues from the end of the previous results that returned the * nextToken value.

Treat this token as an opaque * identifier that is only used to retrieve the next items in a list and not for * other programmatic purposes.

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

The nextToken value returned from a previous paginated * ListRepositoryAssociations request where maxResults * was used and the results exceeded the value of that parameter. Pagination * continues from the end of the previous results that returned the * nextToken value.

Treat this token as an opaque * identifier that is only used to retrieve the next items in a list and not for * other programmatic purposes.

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

The nextToken value returned from a previous paginated * ListRepositoryAssociations request where maxResults * was used and the results exceeded the value of that parameter. Pagination * continues from the end of the previous results that returned the * nextToken value.

Treat this token as an opaque * identifier that is only used to retrieve the next items in a list and not for * other programmatic purposes.

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

The nextToken value returned from a previous paginated * ListRepositoryAssociations request where maxResults * was used and the results exceeded the value of that parameter. Pagination * continues from the end of the previous results that returned the * nextToken value.

Treat this token as an opaque * identifier that is only used to retrieve the next items in a list and not for * other programmatic purposes.

*/ inline ListRepositoryAssociationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_providerTypes; bool m_providerTypesHasBeenSet = false; Aws::Vector m_states; bool m_statesHasBeenSet = false; Aws::Vector m_names; bool m_namesHasBeenSet = false; Aws::Vector m_owners; bool m_ownersHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws