@Stability(value=Experimental) public static final class LayerVersionOptions.Builder extends Object implements software.amazon.jsii.Builder<LayerVersionOptions>
LayerVersionOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LayerVersionOptions |
build()
Builds the configured instance.
|
LayerVersionOptions.Builder |
description(String description)
Sets the value of
LayerVersionOptions.getDescription() |
LayerVersionOptions.Builder |
layerVersionName(String layerVersionName)
Sets the value of
LayerVersionOptions.getLayerVersionName() |
LayerVersionOptions.Builder |
license(String license)
Sets the value of
LayerVersionOptions.getLicense() |
LayerVersionOptions.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Sets the value of
LayerVersionOptions.getRemovalPolicy() |
@Stability(value=Experimental) public LayerVersionOptions.Builder description(String description)
LayerVersionOptions.getDescription()
description
- The description the this Lambda Layer.this
@Stability(value=Experimental) public LayerVersionOptions.Builder layerVersionName(String layerVersionName)
LayerVersionOptions.getLayerVersionName()
layerVersionName
- The name of the layer.this
@Stability(value=Experimental) public LayerVersionOptions.Builder license(String license)
LayerVersionOptions.getLicense()
license
- The SPDX licence identifier or URL to the license file for this layer.this
@Stability(value=Experimental) public LayerVersionOptions.Builder removalPolicy(RemovalPolicy removalPolicy)
LayerVersionOptions.getRemovalPolicy()
removalPolicy
- Whether to retain this version of the layer when a new version is added or when the stack is deleted.this
@Stability(value=Experimental) public LayerVersionOptions build()
build
in interface software.amazon.jsii.Builder<LayerVersionOptions>
LayerVersionOptions
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.