Class FileSource.Builder
java.lang.Object
software.amazon.awscdk.cloud_assembly_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 for
FileSource-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.executable(List<String> executable) Sets the value ofFileSource.getExecutable()packaging(FileAssetPackaging packaging) Sets the value ofFileSource.getPackaging()Sets the value ofFileSource.getPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
executable
Sets the value ofFileSource.getExecutable()- Parameters:
executable- External command which will produce the file asset to upload.- Returns:
this
-
packaging
Sets the value ofFileSource.getPackaging()- Parameters:
packaging- Packaging method. Only allowed whenpathis specified.- Returns:
this
-
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
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
-