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