public static final class LayerVersionOptions.Builder
extends java.lang.Object
LayerVersionOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LayerVersionOptions |
build()
Builds the configured instance.
|
LayerVersionOptions.Builder |
description(java.lang.String description)
Sets the value of
LayerVersionOptions.getDescription() |
LayerVersionOptions.Builder |
layerVersionName(java.lang.String layerVersionName)
Sets the value of
LayerVersionOptions.getLayerVersionName() |
LayerVersionOptions.Builder |
license(java.lang.String license)
Sets the value of
LayerVersionOptions.getLicense() |
LayerVersionOptions.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Sets the value of
LayerVersionOptions.getRemovalPolicy() |
public LayerVersionOptions.Builder description(java.lang.String description)
LayerVersionOptions.getDescription()
description
- The description the this Lambda Layer.this
public LayerVersionOptions.Builder layerVersionName(java.lang.String layerVersionName)
LayerVersionOptions.getLayerVersionName()
layerVersionName
- The name of the layer.this
public LayerVersionOptions.Builder license(java.lang.String license)
LayerVersionOptions.getLicense()
license
- The SPDX licence identifier or URL to the license file for this layer.this
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
public LayerVersionOptions build()
LayerVersionOptions
java.lang.NullPointerException
- if any required attribute was not provided