Class CfnRepositoryAssociation.Builder

java.lang.Object
software.amazon.awscdk.services.codegurureviewer.CfnRepositoryAssociation.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepositoryAssociation>
Enclosing class:
CfnRepositoryAssociation

@Stability(Stable) public static final class CfnRepositoryAssociation.Builder extends Object implements software.amazon.jsii.Builder<CfnRepositoryAssociation>
A fluent builder for CfnRepositoryAssociation.
  • Method Details

    • create

      @Stability(Stable) public static CfnRepositoryAssociation.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnRepositoryAssociation.Builder.
    • name

      @Stability(Stable) public CfnRepositoryAssociation.Builder name(String name)
      The name of the repository.

      Parameters:
      name - The name of the repository. This parameter is required.
      Returns:
      this
    • type

      @Stability(Stable) public CfnRepositoryAssociation.Builder type(String type)
      The type of repository that contains the source code to be reviewed. The valid values are:.

      • CodeCommit
      • Bitbucket
      • GitHubEnterpriseServer
      • S3Bucket

      Parameters:
      type - The type of repository that contains the source code to be reviewed. The valid values are:. This parameter is required.
      Returns:
      this
    • bucketName

      @Stability(Stable) public CfnRepositoryAssociation.Builder bucketName(String bucketName)
      The name of the bucket.

      This is required for your S3Bucket repository. The name must start with the prefix codeguru-reviewer-* .

      Parameters:
      bucketName - The name of the bucket. This parameter is required.
      Returns:
      this
    • connectionArn

      @Stability(Stable) public CfnRepositoryAssociation.Builder connectionArn(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 .

      ConnectionArn must be specified for Bitbucket and GitHub Enterprise Server repositories. It has no effect if it is specified for an AWS CodeCommit repository.

      Parameters:
      connectionArn - The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection. This parameter is required.
      Returns:
      this
    • owner

      @Stability(Stable) public CfnRepositoryAssociation.Builder owner(String owner)
      The owner of the repository.

      For a GitHub Enterprise Server or Bitbucket repository, this is the username for the account that owns the repository.

      Owner must be specified for Bitbucket and GitHub Enterprise Server repositories. It has no effect if it is specified for an AWS CodeCommit repository.

      Parameters:
      owner - The owner of the repository. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnRepositoryAssociation.Builder tags(List<? extends CfnTag> tags)
      An array of key-value pairs used to tag an associated repository.

      A tag is a custom attribute label with two parts:

      • A tag key (for example, CostCenter , Environment , Project , or Secret ). Tag keys are case sensitive.
      • An optional field known as a tag value (for example, 111122223333 , Production , or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.

      Parameters:
      tags - An array of key-value pairs used to tag an associated repository. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnRepositoryAssociation build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnRepositoryAssociation>
      Returns:
      a newly built instance of CfnRepositoryAssociation.