/** * 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 #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeGuruReviewer { namespace Model { /** *

Information about a repository association. The DescribeRepositoryAssociation * operation returns a RepositoryAssociation object.

See * Also:

AWS * API Reference

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

The ID of the repository association.

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

The ID of the repository association.

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

The ID of the repository association.

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

The ID of the repository association.

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

The ID of the repository association.

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

The ID of the repository association.

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

The ID of the repository association.

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

The ID of the repository association.

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

The Amazon Resource Name (ARN) identifying the repository association.

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

The Amazon Resource Name (ARN) identifying the repository association.

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

The Amazon Resource Name (ARN) identifying the repository association.

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

The Amazon Resource Name (ARN) identifying the repository association.

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

The Amazon Resource Name (ARN) identifying the repository association.

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

The Amazon Resource Name (ARN) identifying the repository association.

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

The Amazon Resource Name (ARN) identifying the repository association.

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

The Amazon Resource Name (ARN) identifying the repository association.

*/ inline RepositoryAssociation& 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 RepositoryAssociation& 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 RepositoryAssociation& 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 RepositoryAssociation& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;} /** *

The name of the repository.

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

The name of the repository.

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

The name of the repository.

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

The name of the repository.

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

The name of the repository.

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

The name of the repository.

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

The name of the repository.

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

The name of the repository.

*/ inline RepositoryAssociation& 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 RepositoryAssociation& 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 RepositoryAssociation& 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 RepositoryAssociation& 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 RepositoryAssociation& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;} /** *

The provider type of the repository association.

*/ inline RepositoryAssociation& 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 RepositoryAssociation& 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 RepositoryAssociation& WithState(RepositoryAssociationState&& value) { SetState(std::move(value)); return *this;} /** *

A description of why the repository association is in the current state.

*/ inline const Aws::String& GetStateReason() const{ return m_stateReason; } /** *

A description of why the repository association is in the current state.

*/ inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; } /** *

A description of why the repository association is in the current state.

*/ inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; } /** *

A description of why the repository association is in the current state.

*/ inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); } /** *

A description of why the repository association is in the current state.

*/ inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); } /** *

A description of why the repository association is in the current state.

*/ inline RepositoryAssociation& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;} /** *

A description of why the repository association is in the current state.

*/ inline RepositoryAssociation& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;} /** *

A description of why the repository association is in the current state.

*/ inline RepositoryAssociation& WithStateReason(const char* value) { SetStateReason(value); return *this;} /** *

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

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

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

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

The time, in milliseconds since the epoch, when 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, when 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, when the repository association * was last updated.

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

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

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

The time, in milliseconds since the epoch, when the repository association * was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const{ return m_createdTimeStamp; } /** *

The time, in milliseconds since the epoch, when the repository association * was created.

*/ inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; } /** *

The time, in milliseconds since the epoch, when the repository association * was created.

*/ inline void SetCreatedTimeStamp(const Aws::Utils::DateTime& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = value; } /** *

The time, in milliseconds since the epoch, when the repository association * was created.

*/ inline void SetCreatedTimeStamp(Aws::Utils::DateTime&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::move(value); } /** *

The time, in milliseconds since the epoch, when the repository association * was created.

*/ inline RepositoryAssociation& WithCreatedTimeStamp(const Aws::Utils::DateTime& value) { SetCreatedTimeStamp(value); return *this;} /** *

The time, in milliseconds since the epoch, when the repository association * was created.

*/ inline RepositoryAssociation& WithCreatedTimeStamp(Aws::Utils::DateTime&& value) { SetCreatedTimeStamp(std::move(value)); return *this;} /** *

A KMSKeyDetails object that contains:

  • The * encryption option for this repository association. It is either owned by Amazon * Web Services Key Management Service (KMS) (AWS_OWNED_CMK) or * customer managed (CUSTOMER_MANAGED_CMK).

  • The ID * of the Amazon Web Services KMS key that is associated with this repository * association.

*/ inline const KMSKeyDetails& GetKMSKeyDetails() const{ return m_kMSKeyDetails; } /** *

A KMSKeyDetails object that contains:

  • The * encryption option for this repository association. It is either owned by Amazon * Web Services Key Management Service (KMS) (AWS_OWNED_CMK) or * customer managed (CUSTOMER_MANAGED_CMK).

  • The ID * of the Amazon Web Services KMS key that is associated with this repository * association.

*/ inline bool KMSKeyDetailsHasBeenSet() const { return m_kMSKeyDetailsHasBeenSet; } /** *

A KMSKeyDetails object that contains:

  • The * encryption option for this repository association. It is either owned by Amazon * Web Services Key Management Service (KMS) (AWS_OWNED_CMK) or * customer managed (CUSTOMER_MANAGED_CMK).

  • The ID * of the Amazon Web Services KMS key that is associated with this repository * association.

*/ inline void SetKMSKeyDetails(const KMSKeyDetails& value) { m_kMSKeyDetailsHasBeenSet = true; m_kMSKeyDetails = value; } /** *

A KMSKeyDetails object that contains:

  • The * encryption option for this repository association. It is either owned by Amazon * Web Services Key Management Service (KMS) (AWS_OWNED_CMK) or * customer managed (CUSTOMER_MANAGED_CMK).

  • The ID * of the Amazon Web Services KMS key that is associated with this repository * association.

*/ inline void SetKMSKeyDetails(KMSKeyDetails&& value) { m_kMSKeyDetailsHasBeenSet = true; m_kMSKeyDetails = std::move(value); } /** *

A KMSKeyDetails object that contains:

  • The * encryption option for this repository association. It is either owned by Amazon * Web Services Key Management Service (KMS) (AWS_OWNED_CMK) or * customer managed (CUSTOMER_MANAGED_CMK).

  • The ID * of the Amazon Web Services KMS key that is associated with this repository * association.

*/ inline RepositoryAssociation& WithKMSKeyDetails(const KMSKeyDetails& value) { SetKMSKeyDetails(value); return *this;} /** *

A KMSKeyDetails object that contains:

  • The * encryption option for this repository association. It is either owned by Amazon * Web Services Key Management Service (KMS) (AWS_OWNED_CMK) or * customer managed (CUSTOMER_MANAGED_CMK).

  • The ID * of the Amazon Web Services KMS key that is associated with this repository * association.

*/ inline RepositoryAssociation& WithKMSKeyDetails(KMSKeyDetails&& value) { SetKMSKeyDetails(std::move(value)); return *this;} inline const S3RepositoryDetails& GetS3RepositoryDetails() const{ return m_s3RepositoryDetails; } inline bool S3RepositoryDetailsHasBeenSet() const { return m_s3RepositoryDetailsHasBeenSet; } inline void SetS3RepositoryDetails(const S3RepositoryDetails& value) { m_s3RepositoryDetailsHasBeenSet = true; m_s3RepositoryDetails = value; } inline void SetS3RepositoryDetails(S3RepositoryDetails&& value) { m_s3RepositoryDetailsHasBeenSet = true; m_s3RepositoryDetails = std::move(value); } inline RepositoryAssociation& WithS3RepositoryDetails(const S3RepositoryDetails& value) { SetS3RepositoryDetails(value); return *this;} inline RepositoryAssociation& WithS3RepositoryDetails(S3RepositoryDetails&& value) { SetS3RepositoryDetails(std::move(value)); return *this;} private: Aws::String m_associationId; bool m_associationIdHasBeenSet = false; Aws::String m_associationArn; bool m_associationArnHasBeenSet = false; Aws::String m_connectionArn; bool m_connectionArnHasBeenSet = 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; Aws::String m_stateReason; bool m_stateReasonHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTimeStamp; bool m_lastUpdatedTimeStampHasBeenSet = false; Aws::Utils::DateTime m_createdTimeStamp; bool m_createdTimeStampHasBeenSet = false; KMSKeyDetails m_kMSKeyDetails; bool m_kMSKeyDetailsHasBeenSet = false; S3RepositoryDetails m_s3RepositoryDetails; bool m_s3RepositoryDetailsHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws