Class CfnPackageGroup.RestrictionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codeartifact.CfnPackageGroup.RestrictionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPackageGroup.RestrictionsProperty>
- Enclosing interface:
CfnPackageGroup.RestrictionsProperty
@Stability(Stable)
public static final class CfnPackageGroup.RestrictionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPackageGroup.RestrictionsProperty>
A builder for
CfnPackageGroup.RestrictionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.externalUpstream(IResolvable externalUpstream) Sets the value ofCfnPackageGroup.RestrictionsProperty.getExternalUpstream()externalUpstream(CfnPackageGroup.RestrictionTypeProperty externalUpstream) Sets the value ofCfnPackageGroup.RestrictionsProperty.getExternalUpstream()internalUpstream(IResolvable internalUpstream) Sets the value ofCfnPackageGroup.RestrictionsProperty.getInternalUpstream()internalUpstream(CfnPackageGroup.RestrictionTypeProperty internalUpstream) Sets the value ofCfnPackageGroup.RestrictionsProperty.getInternalUpstream()publish(IResolvable publish) Sets the value ofCfnPackageGroup.RestrictionsProperty.getPublish()Sets the value ofCfnPackageGroup.RestrictionsProperty.getPublish()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
externalUpstream
@Stability(Stable) public CfnPackageGroup.RestrictionsProperty.Builder externalUpstream(IResolvable externalUpstream) Sets the value ofCfnPackageGroup.RestrictionsProperty.getExternalUpstream()- Parameters:
externalUpstream- the value to be set.- Returns:
this
-
externalUpstream
@Stability(Stable) public CfnPackageGroup.RestrictionsProperty.Builder externalUpstream(CfnPackageGroup.RestrictionTypeProperty externalUpstream) Sets the value ofCfnPackageGroup.RestrictionsProperty.getExternalUpstream()- Parameters:
externalUpstream- the value to be set.- Returns:
this
-
internalUpstream
@Stability(Stable) public CfnPackageGroup.RestrictionsProperty.Builder internalUpstream(IResolvable internalUpstream) Sets the value ofCfnPackageGroup.RestrictionsProperty.getInternalUpstream()- Parameters:
internalUpstream- the value to be set.- Returns:
this
-
internalUpstream
@Stability(Stable) public CfnPackageGroup.RestrictionsProperty.Builder internalUpstream(CfnPackageGroup.RestrictionTypeProperty internalUpstream) Sets the value ofCfnPackageGroup.RestrictionsProperty.getInternalUpstream()- Parameters:
internalUpstream- the value to be set.- Returns:
this
-
publish
Sets the value ofCfnPackageGroup.RestrictionsProperty.getPublish()- Parameters:
publish- the value to be set.- Returns:
this
-
publish
@Stability(Stable) public CfnPackageGroup.RestrictionsProperty.Builder publish(CfnPackageGroup.RestrictionTypeProperty publish) Sets the value ofCfnPackageGroup.RestrictionsProperty.getPublish()- Parameters:
publish- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPackageGroup.RestrictionsProperty>- Returns:
- a new instance of
CfnPackageGroup.RestrictionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-