public static final class LayerVersionProps.Builder
extends java.lang.Object
LayerVersionProps
Constructor and Description |
---|
Builder() |
public LayerVersionProps.Builder code(Code code)
LayerVersionProps.getCode()
code
- The content of this Layer. This parameter is required.
Using Code.fromInline
is not supported.this
public LayerVersionProps.Builder compatibleArchitectures(java.util.List<? extends Architecture> compatibleArchitectures)
LayerVersionProps.getCompatibleArchitectures()
compatibleArchitectures
- The system architectures compatible with this layer.this
public LayerVersionProps.Builder compatibleRuntimes(java.util.List<? extends Runtime> compatibleRuntimes)
LayerVersionProps.getCompatibleRuntimes()
compatibleRuntimes
- The runtimes compatible with this Layer.this
public LayerVersionProps.Builder description(java.lang.String description)
LayerVersionOptions.getDescription()
description
- The description the this Lambda Layer.this
public LayerVersionProps.Builder layerVersionName(java.lang.String layerVersionName)
LayerVersionOptions.getLayerVersionName()
layerVersionName
- The name of the layer.this
public LayerVersionProps.Builder license(java.lang.String license)
LayerVersionOptions.getLicense()
license
- The SPDX licence identifier or URL to the license file for this layer.this
public LayerVersionProps.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
public LayerVersionProps build()
LayerVersionProps
java.lang.NullPointerException
- if any required attribute was not provided