Class FileAssetMetadataEntry.Builder
java.lang.Object
software.amazon.awscdk.cloud_assembly_schema.FileAssetMetadataEntry.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FileAssetMetadataEntry>
- Enclosing interface:
FileAssetMetadataEntry
@Stability(Stable)
public static final class FileAssetMetadataEntry.Builder
extends Object
implements software.amazon.jsii.Builder<FileAssetMetadataEntry>
A builder for
FileAssetMetadataEntry-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionartifactHashParameter(String artifactHashParameter) Sets the value ofFileAssetMetadataEntry.getArtifactHashParameter()build()Builds the configured instance.Sets the value ofFileAssetMetadataEntry.getId()Sets the value ofFileAssetMetadataEntry.getPackaging()Sets the value ofFileAssetMetadataEntry.getPath()s3BucketParameter(String s3BucketParameter) Sets the value ofFileAssetMetadataEntry.getS3BucketParameter()s3KeyParameter(String s3KeyParameter) Sets the value ofFileAssetMetadataEntry.getS3KeyParameter()sourceHash(String sourceHash) Sets the value ofFileAssetMetadataEntry.getSourceHash()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
artifactHashParameter
@Stability(Stable) public FileAssetMetadataEntry.Builder artifactHashParameter(String artifactHashParameter) Sets the value ofFileAssetMetadataEntry.getArtifactHashParameter()- Parameters:
artifactHashParameter- The name of the parameter where the hash of the bundled asset should be passed in. This parameter is required.- Returns:
this
-
id
Sets the value ofFileAssetMetadataEntry.getId()- Parameters:
id- Logical identifier for the asset. This parameter is required.- Returns:
this
-
packaging
Sets the value ofFileAssetMetadataEntry.getPackaging()- Parameters:
packaging- Requested packaging style. This parameter is required.- Returns:
this
-
path
Sets the value ofFileAssetMetadataEntry.getPath()- Parameters:
path- Path on disk to the asset. This parameter is required.- Returns:
this
-
s3BucketParameter
@Stability(Stable) public FileAssetMetadataEntry.Builder s3BucketParameter(String s3BucketParameter) Sets the value ofFileAssetMetadataEntry.getS3BucketParameter()- Parameters:
s3BucketParameter- Name of parameter where S3 bucket should be passed in. This parameter is required.- Returns:
this
-
s3KeyParameter
Sets the value ofFileAssetMetadataEntry.getS3KeyParameter()- Parameters:
s3KeyParameter- Name of parameter where S3 key should be passed in. This parameter is required.- Returns:
this
-
sourceHash
Sets the value ofFileAssetMetadataEntry.getSourceHash()- Parameters:
sourceHash- The hash of the asset source. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FileAssetMetadataEntry>- Returns:
- a new instance of
FileAssetMetadataEntry - Throws:
NullPointerException- if any required attribute was not provided
-