Class CfnLayerVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnLayerVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLayerVersionProps>
- Enclosing interface:
CfnLayerVersionProps
@Stability(Stable)
public static final class CfnLayerVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLayerVersionProps>
A builder for
CfnLayerVersionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.compatibleRuntimes
(List<String> compatibleRuntimes) Sets the value ofCfnLayerVersionProps.getCompatibleRuntimes()
contentUri
(String contentUri) Sets the value ofCfnLayerVersionProps.getContentUri()
contentUri
(IResolvable contentUri) Sets the value ofCfnLayerVersionProps.getContentUri()
contentUri
(CfnLayerVersion.S3LocationProperty contentUri) Sets the value ofCfnLayerVersionProps.getContentUri()
description
(String description) Sets the value ofCfnLayerVersionProps.getDescription()
Sets the value ofCfnLayerVersionProps.getLayerName()
licenseInfo
(String licenseInfo) Sets the value ofCfnLayerVersionProps.getLicenseInfo()
retentionPolicy
(String retentionPolicy) Sets the value ofCfnLayerVersionProps.getRetentionPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
compatibleRuntimes
@Stability(Stable) public CfnLayerVersionProps.Builder compatibleRuntimes(List<String> compatibleRuntimes) Sets the value ofCfnLayerVersionProps.getCompatibleRuntimes()
- Parameters:
compatibleRuntimes
- the value to be set.- Returns:
this
-
contentUri
Sets the value ofCfnLayerVersionProps.getContentUri()
- Parameters:
contentUri
- the value to be set.- Returns:
this
-
contentUri
Sets the value ofCfnLayerVersionProps.getContentUri()
- Parameters:
contentUri
- the value to be set.- Returns:
this
-
contentUri
@Stability(Stable) public CfnLayerVersionProps.Builder contentUri(CfnLayerVersion.S3LocationProperty contentUri) Sets the value ofCfnLayerVersionProps.getContentUri()
- Parameters:
contentUri
- the value to be set.- Returns:
this
-
description
Sets the value ofCfnLayerVersionProps.getDescription()
- Parameters:
description
- the value to be set.- Returns:
this
-
layerName
Sets the value ofCfnLayerVersionProps.getLayerName()
- Parameters:
layerName
- the value to be set.- Returns:
this
-
licenseInfo
Sets the value ofCfnLayerVersionProps.getLicenseInfo()
- Parameters:
licenseInfo
- the value to be set.- Returns:
this
-
retentionPolicy
Sets the value ofCfnLayerVersionProps.getRetentionPolicy()
- Parameters:
retentionPolicy
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLayerVersionProps>
- Returns:
- a new instance of
CfnLayerVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-