Class CfnRepositoryMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codeartifact.CfnRepositoryMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepositoryMixinProps>
- Enclosing interface:
CfnRepositoryMixinProps
@Stability(Stable)
public static final class CfnRepositoryMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRepositoryMixinProps>
A builder for
CfnRepositoryMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnRepositoryMixinProps.getDescription()domainName(String domainName) Sets the value ofCfnRepositoryMixinProps.getDomainName()domainOwner(String domainOwner) Sets the value ofCfnRepositoryMixinProps.getDomainOwner()externalConnections(List<String> externalConnections) Sets the value ofCfnRepositoryMixinProps.getExternalConnections()permissionsPolicyDocument(Object permissionsPolicyDocument) Sets the value ofCfnRepositoryMixinProps.getPermissionsPolicyDocument()repositoryName(String repositoryName) Sets the value ofCfnRepositoryMixinProps.getRepositoryName()Sets the value ofCfnRepositoryMixinProps.getTags()Sets the value ofCfnRepositoryMixinProps.getUpstreams()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnRepositoryMixinProps.getDescription()- Parameters:
description- A text description of the repository.- Returns:
this
-
domainName
Sets the value ofCfnRepositoryMixinProps.getDomainName()- Parameters:
domainName- The name of the domain that contains the repository.- Returns:
this
-
domainOwner
Sets the value ofCfnRepositoryMixinProps.getDomainOwner()- Parameters:
domainOwner- The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.- Returns:
this
-
externalConnections
@Stability(Stable) public CfnRepositoryMixinProps.Builder externalConnections(List<String> externalConnections) Sets the value ofCfnRepositoryMixinProps.getExternalConnections()- Parameters:
externalConnections- An array of external connections associated with the repository. For more information, see Supported external connection repositories in the CodeArtifact user guide .- Returns:
this
-
permissionsPolicyDocument
@Stability(Stable) public CfnRepositoryMixinProps.Builder permissionsPolicyDocument(Object permissionsPolicyDocument) Sets the value ofCfnRepositoryMixinProps.getPermissionsPolicyDocument()- Parameters:
permissionsPolicyDocument- The document that defines the resource policy that is set on a repository.- Returns:
this
-
repositoryName
Sets the value ofCfnRepositoryMixinProps.getRepositoryName()- Parameters:
repositoryName- The name of an upstream repository.- Returns:
this
-
tags
Sets the value ofCfnRepositoryMixinProps.getTags()- Parameters:
tags- A list of tags to be applied to the repository.- Returns:
this
-
upstreams
Sets the value ofCfnRepositoryMixinProps.getUpstreams()- Parameters:
upstreams- A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRepositoryMixinProps>- Returns:
- a new instance of
CfnRepositoryMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-