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 package group origin restriction setting. This parameter is required. When the value isINHERIT, the value is set to the value of the first parent package group which does not have a value ofINHERIT.- Returns:
this
-
repositories
@Stability(Stable) public CfnPackageGroup.RestrictionTypeProperty.Builder repositories(List<String> repositories) Sets the value ofCfnPackageGroup.RestrictionTypeProperty.getRepositories()- Parameters:
repositories- The repositories to add to the allowed repositories list. The allowed repositories list is used when theRestrictionModeis set toALLOW_SPECIFIC_REPOSITORIES.- 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
-