Class FileSource.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.FileSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<FileSource>
- Enclosing interface:
- FileSource
@Stability(Stable) public static final class FileSource.Builder extends Object implements software.amazon.jsii.Builder<FileSource>
A builder forFileSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSourcebuild()Builds the configured instance.FileSource.Builderexecutable(List<String> executable)Sets the value ofFileSource.getExecutable()FileSource.Builderpackaging(FileAssetPackaging packaging)Sets the value ofFileSource.getPackaging()FileSource.Builderpath(String path)Sets the value ofFileSource.getPath()
-
-
-
Method Detail
-
executable
@Stability(Stable) public FileSource.Builder executable(List<String> executable)
Sets the value ofFileSource.getExecutable()- Parameters:
executable- External command which will produce the file asset to upload.- Returns:
this
-
packaging
@Stability(Stable) public FileSource.Builder packaging(FileAssetPackaging packaging)
Sets the value ofFileSource.getPackaging()- Parameters:
packaging- Packaging method. Only allowed whenpathis specified.- Returns:
this
-
path
@Stability(Stable) public FileSource.Builder path(String path)
Sets the value ofFileSource.getPath()- Parameters:
path- The filesystem object to upload. This path is relative to the asset manifest location.- Returns:
this
-
build
@Stability(Stable) public FileSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FileSource>- Returns:
- a new instance of
FileSource - Throws:
NullPointerException- if any required attribute was not provided
-
-