Class CfnPackagePropsMixin.OriginConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codeartifact.CfnPackagePropsMixin.OriginConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPackagePropsMixin.OriginConfigurationProperty>
- Enclosing interface:
CfnPackagePropsMixin.OriginConfigurationProperty
@Stability(Stable)
public static final class CfnPackagePropsMixin.OriginConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPackagePropsMixin.OriginConfigurationProperty>
A builder for
CfnPackagePropsMixin.OriginConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.restrictions(CfnPackagePropsMixin.RestrictionsProperty restrictions) Sets the value ofCfnPackagePropsMixin.OriginConfigurationProperty.getRestrictions()restrictions(IResolvable restrictions) Sets the value ofCfnPackagePropsMixin.OriginConfigurationProperty.getRestrictions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
restrictions
@Stability(Stable) public CfnPackagePropsMixin.OriginConfigurationProperty.Builder restrictions(IResolvable restrictions) Sets the value ofCfnPackagePropsMixin.OriginConfigurationProperty.getRestrictions()- Parameters:
restrictions- The origin restrictions for the package.- Returns:
this
-
restrictions
@Stability(Stable) public CfnPackagePropsMixin.OriginConfigurationProperty.Builder restrictions(CfnPackagePropsMixin.RestrictionsProperty restrictions) Sets the value ofCfnPackagePropsMixin.OriginConfigurationProperty.getRestrictions()- Parameters:
restrictions- The origin restrictions for the package.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPackagePropsMixin.OriginConfigurationProperty>- Returns:
- a new instance of
CfnPackagePropsMixin.OriginConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-