Class LayerVersionAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.LayerVersionAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LayerVersionAttributes>
- Enclosing interface:
LayerVersionAttributes
@Stability(Stable)
public static final class LayerVersionAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<LayerVersionAttributes>
A builder for
LayerVersionAttributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.compatibleRuntimes
(List<? extends Runtime> compatibleRuntimes) Sets the value ofLayerVersionAttributes.getCompatibleRuntimes()
layerVersionArn
(String layerVersionArn) Sets the value ofLayerVersionAttributes.getLayerVersionArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
layerVersionArn
Sets the value ofLayerVersionAttributes.getLayerVersionArn()
- Parameters:
layerVersionArn
- The ARN of the LayerVersion. This parameter is required.- Returns:
this
-
compatibleRuntimes
@Stability(Stable) public LayerVersionAttributes.Builder compatibleRuntimes(List<? extends Runtime> compatibleRuntimes) Sets the value ofLayerVersionAttributes.getCompatibleRuntimes()
- Parameters:
compatibleRuntimes
- The list of compatible runtimes with this Layer.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LayerVersionAttributes>
- Returns:
- a new instance of
LayerVersionAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-