/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.codegurureviewer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about a repository association. The DescribeRepositoryAssociation operation returns a RepositoryAssociation
object.
*
* The ID of the repository association. *
*/ private String associationId; /** ** The Amazon Resource Name (ARN) identifying the repository association. *
*/ private String associationArn; /** *
* 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.
*
* The name of the repository. *
*/ private String name; /** ** 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. *
*/ private String owner; /** ** The provider type of the repository association. *
*/ private String providerType; /** ** 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. *
** A description of why the repository association is in the current state. *
*/ private String stateReason; /** ** The time, in milliseconds since the epoch, when the repository association was last updated. *
*/ private java.util.Date lastUpdatedTimeStamp; /** ** The time, in milliseconds since the epoch, when the repository association was created. *
*/ private java.util.Date createdTimeStamp; /** *
* 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. *
** The ID of the repository association. *
* * @param associationId * The ID of the repository association. */ public void setAssociationId(String associationId) { this.associationId = associationId; } /** ** The ID of the repository association. *
* * @return The ID of the repository association. */ public String getAssociationId() { return this.associationId; } /** ** The ID of the repository association. *
* * @param associationId * The ID of the repository association. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryAssociation withAssociationId(String associationId) { setAssociationId(associationId); return this; } /** ** The Amazon Resource Name (ARN) identifying the repository association. *
* * @param associationArn * The Amazon Resource Name (ARN) identifying the repository association. */ public void setAssociationArn(String associationArn) { this.associationArn = associationArn; } /** ** The Amazon Resource Name (ARN) identifying the repository association. *
* * @return The Amazon Resource Name (ARN) identifying the repository association. */ public String getAssociationArn() { return this.associationArn; } /** ** The Amazon Resource Name (ARN) identifying the repository association. *
* * @param associationArn * The Amazon Resource Name (ARN) identifying the repository association. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryAssociation withAssociationArn(String associationArn) { setAssociationArn(associationArn); 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.
*
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.
*/
public void setConnectionArn(String connectionArn) {
this.connectionArn = 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.
*
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.
*/
public String getConnectionArn() {
return this.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.
*
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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RepositoryAssociation withConnectionArn(String connectionArn) {
setConnectionArn(connectionArn);
return this;
}
/**
* * The name of the repository. *
* * @param name * The name of the repository. */ public void setName(String name) { this.name = name; } /** ** The name of the repository. *
* * @return The name of the repository. */ public String getName() { return this.name; } /** ** The name of the repository. *
* * @param name * The name of the repository. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryAssociation withName(String name) { setName(name); 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. *
* * @param 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. */ public void setOwner(String owner) { this.owner = 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. *
* * @return 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. */ public String getOwner() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryAssociation withOwner(String owner) { setOwner(owner); return this; } /** ** The provider type of the repository association. *
* * @param providerType * The provider type of the repository association. * @see ProviderType */ public void setProviderType(String providerType) { this.providerType = providerType; } /** ** The provider type of the repository association. *
* * @return The provider type of the repository association. * @see ProviderType */ public String getProviderType() { return this.providerType; } /** ** The provider type of the repository association. *
* * @param providerType * The provider type of the repository association. * @return Returns a reference to this object so that method calls can be chained together. * @see ProviderType */ public RepositoryAssociation withProviderType(String providerType) { setProviderType(providerType); return this; } /** ** The provider type of the repository association. *
* * @param providerType * The provider type of the repository association. * @return Returns a reference to this object so that method calls can be chained together. * @see ProviderType */ public RepositoryAssociation withProviderType(ProviderType providerType) { this.providerType = providerType.toString(); 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** A description of why the repository association is in the current state. *
* * @param stateReason * A description of why the repository association is in the current state. */ public void setStateReason(String stateReason) { this.stateReason = stateReason; } /** ** A description of why the repository association is in the current state. *
* * @return A description of why the repository association is in the current state. */ public String getStateReason() { return this.stateReason; } /** ** A description of why the repository association is in the current state. *
* * @param stateReason * A description of why the repository association is in the current state. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryAssociation withStateReason(String stateReason) { setStateReason(stateReason); return this; } /** ** The time, in milliseconds since the epoch, when the repository association was last updated. *
* * @param lastUpdatedTimeStamp * The time, in milliseconds since the epoch, when the repository association was last updated. */ public void setLastUpdatedTimeStamp(java.util.Date lastUpdatedTimeStamp) { this.lastUpdatedTimeStamp = lastUpdatedTimeStamp; } /** ** The time, in milliseconds since the epoch, when the repository association was last updated. *
* * @return The time, in milliseconds since the epoch, when the repository association was last updated. */ public java.util.Date getLastUpdatedTimeStamp() { return this.lastUpdatedTimeStamp; } /** ** The time, in milliseconds since the epoch, when the repository association was last updated. *
* * @param lastUpdatedTimeStamp * The time, in milliseconds since the epoch, when the repository association was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryAssociation withLastUpdatedTimeStamp(java.util.Date lastUpdatedTimeStamp) { setLastUpdatedTimeStamp(lastUpdatedTimeStamp); return this; } /** ** The time, in milliseconds since the epoch, when the repository association was created. *
* * @param createdTimeStamp * The time, in milliseconds since the epoch, when the repository association was created. */ public void setCreatedTimeStamp(java.util.Date createdTimeStamp) { this.createdTimeStamp = createdTimeStamp; } /** ** The time, in milliseconds since the epoch, when the repository association was created. *
* * @return The time, in milliseconds since the epoch, when the repository association was created. */ public java.util.Date getCreatedTimeStamp() { return this.createdTimeStamp; } /** ** The time, in milliseconds since the epoch, when the repository association was created. *
* * @param createdTimeStamp * The time, in milliseconds since the epoch, when the repository association was created. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryAssociation withCreatedTimeStamp(java.util.Date createdTimeStamp) { setCreatedTimeStamp(createdTimeStamp); 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. *
*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. *
*
* 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. *
*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. *
*
* 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. *
*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. *
*