Class CfnPackageProps.Builder
java.lang.Object
software.amazon.awscdk.services.codeartifact.CfnPackageProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPackageProps>
- Enclosing interface:
CfnPackageProps
@Stability(Stable)
public static final class CfnPackageProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPackageProps>
A builder for
CfnPackageProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.domainName(String domainName) Sets the value ofCfnPackageProps.getDomainName()Sets the value ofCfnPackageProps.getFormat()Sets the value ofCfnPackageProps.getName()Sets the value ofCfnPackageProps.getNamespace()repository(String repository) Sets the value ofCfnPackageProps.getRepository()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
Sets the value ofCfnPackageProps.getDomainName()- Parameters:
domainName- The name of the domain that contains the repository that contains the package. This parameter is required.- Returns:
this
-
format
Sets the value ofCfnPackageProps.getFormat()- Parameters:
format- The format of the package. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnPackageProps.getName()- Parameters:
name- The name of the package. This parameter is required.- Returns:
this
-
repository
Sets the value ofCfnPackageProps.getRepository()- Parameters:
repository- The name of the repository that contains the package. This parameter is required.- Returns:
this
-
namespace
Sets the value ofCfnPackageProps.getNamespace()- Parameters:
namespace- The namespace of the package.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPackageProps>- Returns:
- a new instance of
CfnPackageProps - Throws:
NullPointerException- if any required attribute was not provided
-