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