Class CfnPackage.RestrictionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codeartifact.CfnPackage.RestrictionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPackage.RestrictionsProperty>
- Enclosing interface:
CfnPackage.RestrictionsProperty
@Stability(Stable)
public static final class CfnPackage.RestrictionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPackage.RestrictionsProperty>
A builder for
CfnPackage.RestrictionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPackage.RestrictionsProperty.getPublish()Sets the value ofCfnPackage.RestrictionsProperty.getUpstream()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
publish
Sets the value ofCfnPackage.RestrictionsProperty.getPublish()- Parameters:
publish- The package origin configuration that determines if new versions of the package can be published directly to the repository.- Returns:
this
-
upstream
Sets the value ofCfnPackage.RestrictionsProperty.getUpstream()- Parameters:
upstream- The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPackage.RestrictionsProperty>- Returns:
- a new instance of
CfnPackage.RestrictionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-