Class LayerVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.LayerVersionProps.Builder
- All Implemented Interfaces:
 software.amazon.jsii.Builder<LayerVersionProps>
- Enclosing interface:
 - LayerVersionProps
 
@Stability(Stable)
public static final class LayerVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<LayerVersionProps>
A builder for 
LayerVersionProps- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofLayerVersionProps.getCode()compatibleArchitectures(List<? extends Architecture> compatibleArchitectures) Sets the value ofLayerVersionProps.getCompatibleArchitectures()compatibleRuntimes(List<? extends Runtime> compatibleRuntimes) Sets the value ofLayerVersionProps.getCompatibleRuntimes()description(String description) Sets the value ofLayerVersionOptions.getDescription()layerVersionName(String layerVersionName) Sets the value ofLayerVersionOptions.getLayerVersionName()Sets the value ofLayerVersionOptions.getLicense()removalPolicy(RemovalPolicy removalPolicy) Sets the value ofLayerVersionOptions.getRemovalPolicy() 
- 
Constructor Details
- 
Builder
public Builder() 
 - 
 - 
Method Details
- 
code
Sets the value ofLayerVersionProps.getCode()- Parameters:
 code- The content of this Layer. This parameter is required. UsingCode.fromInlineis not supported.- Returns:
 this
 - 
compatibleArchitectures
@Stability(Stable) public LayerVersionProps.Builder compatibleArchitectures(List<? extends Architecture> compatibleArchitectures) Sets the value ofLayerVersionProps.getCompatibleArchitectures()- Parameters:
 compatibleArchitectures- The system architectures compatible with this layer.- Returns:
 this
 - 
compatibleRuntimes
@Stability(Stable) public LayerVersionProps.Builder compatibleRuntimes(List<? extends Runtime> compatibleRuntimes) Sets the value ofLayerVersionProps.getCompatibleRuntimes()- Parameters:
 compatibleRuntimes- The runtimes compatible with this Layer.- Returns:
 this
 - 
description
Sets the value ofLayerVersionOptions.getDescription()- Parameters:
 description- The description the this Lambda Layer.- Returns:
 this
 - 
layerVersionName
Sets the value ofLayerVersionOptions.getLayerVersionName()- Parameters:
 layerVersionName- The name of the layer.- Returns:
 this
 - 
license
Sets the value ofLayerVersionOptions.getLicense()- Parameters:
 license- The SPDX licence identifier or URL to the license file for this layer.- Returns:
 this
 - 
removalPolicy
Sets the value ofLayerVersionOptions.getRemovalPolicy()- Parameters:
 removalPolicy- Whether to retain this version of the layer when a new version is added or when the stack is deleted.- Returns:
 this
 - 
build
Builds the configured instance.- Specified by:
 buildin interfacesoftware.amazon.jsii.Builder<LayerVersionProps>- Returns:
 - a new instance of 
LayerVersionProps - Throws:
 NullPointerException- if any required attribute was not provided
 
 -