@Generated(value="software.amazon.awssdk:codegen") public final class RepositoryAssociation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RepositoryAssociation.Builder,RepositoryAssociation>
Information about a repository association. The
DescribeRepositoryAssociation operation returns a RepositoryAssociation object.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RepositoryAssociation.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
associationArn()
The Amazon Resource Name (ARN) identifying the repository association.
|
String |
associationId()
The ID of the repository association.
|
static RepositoryAssociation.Builder |
builder() |
String |
connectionArn()
The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
|
Instant |
createdTimeStamp()
The time, in milliseconds since the epoch, when the repository association was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastUpdatedTimeStamp()
The time, in milliseconds since the epoch, when the repository association was last updated.
|
String |
name()
The name of the repository.
|
String |
owner()
The owner of the repository.
|
ProviderType |
providerType()
The provider type of the repository association.
|
String |
providerTypeAsString()
The provider type of the repository association.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RepositoryAssociation.Builder> |
serializableBuilderClass() |
RepositoryAssociationState |
state()
The state of the repository association.
|
String |
stateAsString()
The state of the repository association.
|
String |
stateReason()
A description of why the repository association is in the current state.
|
RepositoryAssociation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String associationId()
The ID of the repository association.
public final String associationArn()
The Amazon Resource Name (ARN) identifying the repository association.
public final String connectionArn()
The Amazon Resource Name (ARN) of an AWS 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 AWS CodeStar Connections API Reference.
arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more
information, see
Connection in the AWS CodeStar Connections API Reference.public final String name()
The name of the repository.
public final String owner()
The owner of the repository. For an AWS CodeCommit repository, this is the AWS 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.
public final ProviderType providerType()
The provider type of the repository association.
If the service returns an enum value that is not available in the current SDK version, providerType will
return ProviderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
providerTypeAsString().
ProviderTypepublic final String providerTypeAsString()
The provider type of the repository association.
If the service returns an enum value that is not available in the current SDK version, providerType will
return ProviderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
providerTypeAsString().
ProviderTypepublic final RepositoryAssociationState 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 an associated 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.
If the service returns an enum value that is not available in the current SDK version, state will return
RepositoryAssociationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from stateAsString().
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 an associated 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.
RepositoryAssociationStatepublic final String stateAsString()
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 an associated 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.
If the service returns an enum value that is not available in the current SDK version, state will return
RepositoryAssociationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from stateAsString().
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 an associated 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.
RepositoryAssociationStatepublic final String stateReason()
A description of why the repository association is in the current state.
public final Instant lastUpdatedTimeStamp()
The time, in milliseconds since the epoch, when the repository association was last updated.
public final Instant createdTimeStamp()
The time, in milliseconds since the epoch, when the repository association was created.
public RepositoryAssociation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RepositoryAssociation.Builder,RepositoryAssociation>public static RepositoryAssociation.Builder builder()
public static Class<? extends RepositoryAssociation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.