Class CfnPackagePropsMixin.RestrictionsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codeartifact.CfnPackagePropsMixin.RestrictionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPackagePropsMixin.RestrictionsProperty>
- Enclosing interface:
CfnPackagePropsMixin.RestrictionsProperty
@Stability(Stable)
public static final class CfnPackagePropsMixin.RestrictionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPackagePropsMixin.RestrictionsProperty>
A builder for
CfnPackagePropsMixin.RestrictionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPackagePropsMixin.RestrictionsProperty.getPublish()Sets the value ofCfnPackagePropsMixin.RestrictionsProperty.getUpstream()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
publish
Sets the value ofCfnPackagePropsMixin.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
@Stability(Stable) public CfnPackagePropsMixin.RestrictionsProperty.Builder upstream(String upstream) Sets the value ofCfnPackagePropsMixin.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<CfnPackagePropsMixin.RestrictionsProperty>- Returns:
- a new instance of
CfnPackagePropsMixin.RestrictionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-