Class CfnLayerVersionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnLayerVersionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLayerVersionMixinProps>
- Enclosing interface:
CfnLayerVersionMixinProps
@Stability(Stable)
public static final class CfnLayerVersionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLayerVersionMixinProps>
A builder for
CfnLayerVersionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.compatibleArchitectures(List<String> compatibleArchitectures) Sets the value ofCfnLayerVersionMixinProps.getCompatibleArchitectures()compatibleRuntimes(List<String> compatibleRuntimes) Sets the value ofCfnLayerVersionMixinProps.getCompatibleRuntimes()Sets the value ofCfnLayerVersionMixinProps.getContent()content(IResolvable content) Sets the value ofCfnLayerVersionMixinProps.getContent()description(String description) Sets the value ofCfnLayerVersionMixinProps.getDescription()Sets the value ofCfnLayerVersionMixinProps.getLayerName()licenseInfo(String licenseInfo) Sets the value ofCfnLayerVersionMixinProps.getLicenseInfo()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
compatibleArchitectures
@Stability(Stable) public CfnLayerVersionMixinProps.Builder compatibleArchitectures(List<String> compatibleArchitectures) Sets the value ofCfnLayerVersionMixinProps.getCompatibleArchitectures()- Parameters:
compatibleArchitectures- A list of compatible instruction set architectures .- Returns:
this
-
compatibleRuntimes
@Stability(Stable) public CfnLayerVersionMixinProps.Builder compatibleRuntimes(List<String> compatibleRuntimes) Sets the value ofCfnLayerVersionMixinProps.getCompatibleRuntimes()- Parameters:
compatibleRuntimes- A list of compatible function runtimes . Used for filtering with ListLayers and ListLayerVersions .- Returns:
this
-
content
Sets the value ofCfnLayerVersionMixinProps.getContent()- Parameters:
content- The function layer archive.- Returns:
this
-
content
@Stability(Stable) public CfnLayerVersionMixinProps.Builder content(CfnLayerVersionPropsMixin.ContentProperty content) Sets the value ofCfnLayerVersionMixinProps.getContent()- Parameters:
content- The function layer archive.- Returns:
this
-
description
Sets the value ofCfnLayerVersionMixinProps.getDescription()- Parameters:
description- The description of the version.- Returns:
this
-
layerName
Sets the value ofCfnLayerVersionMixinProps.getLayerName()- Parameters:
layerName- The name or Amazon Resource Name (ARN) of the layer.- Returns:
this
-
licenseInfo
Sets the value ofCfnLayerVersionMixinProps.getLicenseInfo()- Parameters:
licenseInfo- The layer's software license. It can be any of the following:.- An SPDX license identifier . For example,
MIT. - The URL of a license hosted on the internet. For example,
https://opensource.org/licenses/MIT. - The full text of the license.
- An SPDX license identifier . For example,
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLayerVersionMixinProps>- Returns:
- a new instance of
CfnLayerVersionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-