/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeGuruReviewer { namespace Model { /** *

Summary information about a repository association. The ListRepositoryAssociations * operation returns a list of RepositoryAssociationSummary * objects.

See Also:

AWS * API Reference

*/ class RepositoryAssociationSummary { public: AWS_CODEGURUREVIEWER_API RepositoryAssociationSummary(); AWS_CODEGURUREVIEWER_API RepositoryAssociationSummary(Aws::Utils::Json::JsonView jsonValue); AWS_CODEGURUREVIEWER_API RepositoryAssociationSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*/ inline const Aws::String& GetAssociationArn() const{ return m_associationArn; } /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*/ inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*/ inline void SetAssociationArn(const Aws::String& value) { m_associationArnHasBeenSet = true; m_associationArn = value; } /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*/ inline void SetAssociationArn(Aws::String&& value) { m_associationArnHasBeenSet = true; m_associationArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*/ inline void SetAssociationArn(const char* value) { m_associationArnHasBeenSet = true; m_associationArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*/ inline RepositoryAssociationSummary& WithAssociationArn(const Aws::String& value) { SetAssociationArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*/ inline RepositoryAssociationSummary& WithAssociationArn(Aws::String&& value) { SetAssociationArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*/ inline RepositoryAssociationSummary& WithAssociationArn(const char* value) { SetAssociationArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; } /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; } /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline RepositoryAssociationSummary& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline RepositoryAssociationSummary& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline RepositoryAssociationSummary& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;} /** *

The time, in milliseconds since the epoch, since the repository association * was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const{ return m_lastUpdatedTimeStamp; } /** *

The time, in milliseconds since the epoch, since the repository association * was last updated.

*/ inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; } /** *

The time, in milliseconds since the epoch, since the repository association * was last updated.

*/ inline void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = value; } /** *

The time, in milliseconds since the epoch, since the repository association * was last updated.

*/ inline void SetLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::move(value); } /** *

The time, in milliseconds since the epoch, since the repository association * was last updated.

*/ inline RepositoryAssociationSummary& WithLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimeStamp(value); return *this;} /** *

The time, in milliseconds since the epoch, since the repository association * was last updated.

*/ inline RepositoryAssociationSummary& WithLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimeStamp(std::move(value)); return *this;} /** *

The repository association ID.

*/ inline const Aws::String& GetAssociationId() const{ return m_associationId; } /** *

The repository association ID.

*/ inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } /** *

The repository association ID.

*/ inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } /** *

The repository association ID.

*/ inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } /** *

The repository association ID.

*/ inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } /** *

The repository association ID.

*/ inline RepositoryAssociationSummary& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} /** *

The repository association ID.

*/ inline RepositoryAssociationSummary& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} /** *

The repository association ID.

*/ inline RepositoryAssociationSummary& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} /** *

The name of the repository association.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the repository association.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the repository association.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the repository association.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the repository association.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the repository association.

*/ inline RepositoryAssociationSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the repository association.

*/ inline RepositoryAssociationSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the repository association.

*/ inline RepositoryAssociationSummary& WithName(const char* value) { SetName(value); return *this;} /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline const Aws::String& GetOwner() const{ return m_owner; } /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); } /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline RepositoryAssociationSummary& WithOwner(const Aws::String& value) { SetOwner(value); return *this;} /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline RepositoryAssociationSummary& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;} /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline RepositoryAssociationSummary& WithOwner(const char* value) { SetOwner(value); return *this;} /** *

The provider type of the repository association.

*/ inline const ProviderType& GetProviderType() const{ return m_providerType; } /** *

The provider type of the repository association.

*/ inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; } /** *

The provider type of the repository association.

*/ inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; } /** *

The provider type of the repository association.

*/ inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); } /** *

The provider type of the repository association.

*/ inline RepositoryAssociationSummary& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;} /** *

The provider type of the repository association.

*/ inline RepositoryAssociationSummary& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;} /** *

The state of the repository association.

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 RepositoryAssociationState& GetState() const{ return m_state; } /** *

The state of the repository association.

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 StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the repository association.

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 SetState(const RepositoryAssociationState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the repository association.

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 SetState(RepositoryAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the repository association.

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 RepositoryAssociationSummary& WithState(const RepositoryAssociationState& value) { SetState(value); return *this;} /** *

The state of the repository association.

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 RepositoryAssociationSummary& WithState(RepositoryAssociationState&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_associationArn; bool m_associationArnHasBeenSet = false; Aws::String m_connectionArn; bool m_connectionArnHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTimeStamp; bool m_lastUpdatedTimeStampHasBeenSet = false; Aws::String m_associationId; bool m_associationIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_owner; bool m_ownerHasBeenSet = false; ProviderType m_providerType; bool m_providerTypeHasBeenSet = false; RepositoryAssociationState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws