Class CfnRepositoryAssociationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codegurureviewer.CfnRepositoryAssociationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepositoryAssociationMixinProps>
- Enclosing interface:
CfnRepositoryAssociationMixinProps
@Stability(Stable)
public static final class CfnRepositoryAssociationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRepositoryAssociationMixinProps>
A builder for
CfnRepositoryAssociationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketName(String bucketName) Sets the value ofCfnRepositoryAssociationMixinProps.getBucketName()build()Builds the configured instance.connectionArn(String connectionArn) Sets the value ofCfnRepositoryAssociationMixinProps.getConnectionArn()Sets the value ofCfnRepositoryAssociationMixinProps.getName()Sets the value ofCfnRepositoryAssociationMixinProps.getOwner()Sets the value ofCfnRepositoryAssociationMixinProps.getTags()Sets the value ofCfnRepositoryAssociationMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketName
Sets the value ofCfnRepositoryAssociationMixinProps.getBucketName()- Parameters:
bucketName- The name of the bucket. This is required for your S3Bucket repository. The name must start with the prefixcodeguru-reviewer-*.- Returns:
this
-
connectionArn
@Stability(Stable) public CfnRepositoryAssociationMixinProps.Builder connectionArn(String connectionArn) Sets the value ofCfnRepositoryAssociationMixinProps.getConnectionArn()- Parameters:
connectionArn- The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection. Its format isarn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more information, see Connection in the AWS CodeStar Connections API Reference .ConnectionArnmust be specified for Bitbucket and GitHub Enterprise Server repositories. It has no effect if it is specified for an AWS CodeCommit repository.- Returns:
this
-
name
Sets the value ofCfnRepositoryAssociationMixinProps.getName()- Parameters:
name- The name of the repository.- Returns:
this
-
owner
Sets the value ofCfnRepositoryAssociationMixinProps.getOwner()- Parameters:
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.Ownermust be specified for Bitbucket and GitHub Enterprise Server repositories. It has no effect if it is specified for an AWS CodeCommit repository.- Returns:
this
-
tags
@Stability(Stable) public CfnRepositoryAssociationMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnRepositoryAssociationMixinProps.getTags()- Parameters:
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, orSecret). 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.
- A tag key (for example,
- Returns:
this
-
type
Sets the value ofCfnRepositoryAssociationMixinProps.getType()- Parameters:
type- The type of repository that contains the source code to be reviewed. The valid values are:.CodeCommitBitbucketGitHubEnterpriseServerS3Bucket
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRepositoryAssociationMixinProps>- Returns:
- a new instance of
CfnRepositoryAssociationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-