@Stability(value=Stable) public static final class CfnRepositoryAssociationProps.Builder extends Object implements software.amazon.jsii.Builder<CfnRepositoryAssociationProps>
CfnRepositoryAssociationProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnRepositoryAssociationProps.Builder |
bucketName(String bucketName)
Sets the value of
CfnRepositoryAssociationProps.getBucketName() |
CfnRepositoryAssociationProps |
build()
Builds the configured instance.
|
CfnRepositoryAssociationProps.Builder |
connectionArn(String connectionArn)
Sets the value of
CfnRepositoryAssociationProps.getConnectionArn() |
CfnRepositoryAssociationProps.Builder |
name(String name)
Sets the value of
CfnRepositoryAssociationProps.getName() |
CfnRepositoryAssociationProps.Builder |
owner(String owner)
Sets the value of
CfnRepositoryAssociationProps.getOwner() |
CfnRepositoryAssociationProps.Builder |
tags(List<? extends CfnTag> tags)
Sets the value of
CfnRepositoryAssociationProps.getTags() |
CfnRepositoryAssociationProps.Builder |
type(String type)
Sets the value of
CfnRepositoryAssociationProps.getType() |
@Stability(value=Stable) public CfnRepositoryAssociationProps.Builder name(String name)
CfnRepositoryAssociationProps.getName()
name
- The name of the repository. This parameter is required.this
@Stability(value=Stable) public CfnRepositoryAssociationProps.Builder type(String type)
CfnRepositoryAssociationProps.getType()
type
- The type of repository that contains the source code to be reviewed. The valid values are:. This parameter is required.
CodeCommit
Bitbucket
GitHubEnterpriseServer
S3Bucket
this
@Stability(value=Stable) public CfnRepositoryAssociationProps.Builder bucketName(String bucketName)
CfnRepositoryAssociationProps.getBucketName()
bucketName
- The name of the bucket.
This is required for your S3Bucket repository. The name must start with the prefix codeguru-reviewer-*
.this
@Stability(value=Stable) public CfnRepositoryAssociationProps.Builder connectionArn(String connectionArn)
CfnRepositoryAssociationProps.getConnectionArn()
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.
this
@Stability(value=Stable) public CfnRepositoryAssociationProps.Builder owner(String owner)
CfnRepositoryAssociationProps.getOwner()
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.
this
@Stability(value=Stable) public CfnRepositoryAssociationProps.Builder tags(List<? extends CfnTag> tags)
CfnRepositoryAssociationProps.getTags()
tags
- An array of key-value pairs used to tag an associated repository.
A tag is a custom attribute label with two parts:
CostCenter
, Environment
, Project
, or Secret
). Tag keys are case sensitive.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.this
@Stability(value=Stable) public CfnRepositoryAssociationProps build()
build
in interface software.amazon.jsii.Builder<CfnRepositoryAssociationProps>
CfnRepositoryAssociationProps
NullPointerException
- if any required attribute was not providedCopyright © 2023. All rights reserved.