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
-AWS::Serverless::LayerVersion.CompatibleRuntimes
.- Returns:
this
-
contentUri
Sets the value ofCfnLayerVersionProps.getContentUri()
- Parameters:
contentUri
-AWS::Serverless::LayerVersion.ContentUri
.- Returns:
this
-
contentUri
Sets the value ofCfnLayerVersionProps.getContentUri()
- Parameters:
contentUri
-AWS::Serverless::LayerVersion.ContentUri
.- Returns:
this
-
contentUri
@Stability(Stable) public CfnLayerVersionProps.Builder contentUri(CfnLayerVersion.S3LocationProperty contentUri) Sets the value ofCfnLayerVersionProps.getContentUri()
- Parameters:
contentUri
-AWS::Serverless::LayerVersion.ContentUri
.- Returns:
this
-
description
Sets the value ofCfnLayerVersionProps.getDescription()
- Parameters:
description
-AWS::Serverless::LayerVersion.Description
.- Returns:
this
-
layerName
Sets the value ofCfnLayerVersionProps.getLayerName()
- Parameters:
layerName
-AWS::Serverless::LayerVersion.LayerName
.- Returns:
this
-
licenseInfo
Sets the value ofCfnLayerVersionProps.getLicenseInfo()
- Parameters:
licenseInfo
-AWS::Serverless::LayerVersion.LicenseInfo
.- Returns:
this
-
retentionPolicy
Sets the value ofCfnLayerVersionProps.getRetentionPolicy()
- Parameters:
retentionPolicy
-AWS::Serverless::LayerVersion.RetentionPolicy
.- 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
-