Class CfnLayerVersionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.sam.mixins.CfnLayerVersionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLayerVersionMixinProps>
- Enclosing interface:
CfnLayerVersionMixinProps
@Stability(Stable)
public static final class CfnLayerVersionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLayerVersionMixinProps>
A builder for
CfnLayerVersionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.compatibleRuntimes(List<String> compatibleRuntimes) Sets the value ofCfnLayerVersionMixinProps.getCompatibleRuntimes()contentUri(String contentUri) Sets the value ofCfnLayerVersionMixinProps.getContentUri()contentUri(IResolvable contentUri) Sets the value ofCfnLayerVersionMixinProps.getContentUri()Sets the value ofCfnLayerVersionMixinProps.getContentUri()description(String description) Sets the value ofCfnLayerVersionMixinProps.getDescription()Sets the value ofCfnLayerVersionMixinProps.getLayerName()licenseInfo(String licenseInfo) Sets the value ofCfnLayerVersionMixinProps.getLicenseInfo()retentionPolicy(String retentionPolicy) Sets the value ofCfnLayerVersionMixinProps.getRetentionPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
compatibleRuntimes
@Stability(Stable) public CfnLayerVersionMixinProps.Builder compatibleRuntimes(List<String> compatibleRuntimes) Sets the value ofCfnLayerVersionMixinProps.getCompatibleRuntimes()- Parameters:
compatibleRuntimes- the value to be set.- Returns:
this
-
contentUri
Sets the value ofCfnLayerVersionMixinProps.getContentUri()- Parameters:
contentUri- the value to be set.- Returns:
this
-
contentUri
Sets the value ofCfnLayerVersionMixinProps.getContentUri()- Parameters:
contentUri- the value to be set.- Returns:
this
-
contentUri
@Stability(Stable) public CfnLayerVersionMixinProps.Builder contentUri(CfnLayerVersionPropsMixin.S3LocationProperty contentUri) Sets the value ofCfnLayerVersionMixinProps.getContentUri()- Parameters:
contentUri- the value to be set.- Returns:
this
-
description
Sets the value ofCfnLayerVersionMixinProps.getDescription()- Parameters:
description- the value to be set.- Returns:
this
-
layerName
Sets the value ofCfnLayerVersionMixinProps.getLayerName()- Parameters:
layerName- the value to be set.- Returns:
this
-
licenseInfo
Sets the value ofCfnLayerVersionMixinProps.getLicenseInfo()- Parameters:
licenseInfo- the value to be set.- Returns:
this
-
retentionPolicy
Sets the value ofCfnLayerVersionMixinProps.getRetentionPolicy()- Parameters:
retentionPolicy- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLayerVersionMixinProps>- Returns:
- a new instance of
CfnLayerVersionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-