Class FileAssetMetadataEntry.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.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 forFileAssetMetadataEntry
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileAssetMetadataEntry.BuilderartifactHashParameter(String artifactHashParameter)Sets the value ofFileAssetMetadataEntry.getArtifactHashParameter()FileAssetMetadataEntrybuild()Builds the configured instance.FileAssetMetadataEntry.Builderid(String id)Sets the value ofFileAssetMetadataEntry.getId()FileAssetMetadataEntry.Builderpackaging(String packaging)Sets the value ofFileAssetMetadataEntry.getPackaging()FileAssetMetadataEntry.Builderpath(String path)Sets the value ofFileAssetMetadataEntry.getPath()FileAssetMetadataEntry.Builders3BucketParameter(String s3BucketParameter)Sets the value ofFileAssetMetadataEntry.getS3BucketParameter()FileAssetMetadataEntry.Builders3KeyParameter(String s3KeyParameter)Sets the value ofFileAssetMetadataEntry.getS3KeyParameter()FileAssetMetadataEntry.BuildersourceHash(String sourceHash)Sets the value ofFileAssetMetadataEntry.getSourceHash()
-
-
-
Method Detail
-
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
@Stability(Stable) public FileAssetMetadataEntry.Builder id(String id)
Sets the value ofFileAssetMetadataEntry.getId()- Parameters:
id- Logical identifier for the asset. This parameter is required.- Returns:
this
-
packaging
@Stability(Stable) public FileAssetMetadataEntry.Builder packaging(String packaging)
Sets the value ofFileAssetMetadataEntry.getPackaging()- Parameters:
packaging- Requested packaging style. This parameter is required.- Returns:
this
-
path
@Stability(Stable) public FileAssetMetadataEntry.Builder path(String 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
@Stability(Stable) public FileAssetMetadataEntry.Builder s3KeyParameter(String 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
@Stability(Stable) public FileAssetMetadataEntry.Builder sourceHash(String sourceHash)
Sets the value ofFileAssetMetadataEntry.getSourceHash()- Parameters:
sourceHash- The hash of the asset source. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public FileAssetMetadataEntry 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
-
-