public static final class FileAssetSource.Builder
extends java.lang.Object
FileAssetSource
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FileAssetSource |
build()
Builds the configured instance.
|
FileAssetSource.Builder |
executable(java.util.List<java.lang.String> executable)
Sets the value of
FileAssetSource.getExecutable() |
FileAssetSource.Builder |
fileName(java.lang.String fileName)
Sets the value of
FileAssetSource.getFileName() |
FileAssetSource.Builder |
packaging(FileAssetPackaging packaging)
Sets the value of
FileAssetSource.getPackaging() |
FileAssetSource.Builder |
sourceHash(java.lang.String sourceHash)
Sets the value of
FileAssetSource.getSourceHash() |
public FileAssetSource.Builder sourceHash(java.lang.String sourceHash)
FileAssetSource.getSourceHash()
sourceHash
- A hash on the content source. This parameter is required.
This hash is used to uniquely identify this
asset throughout the system. If this value doesn't change, the asset will
not be rebuilt or republished.this
public FileAssetSource.Builder executable(java.util.List<java.lang.String> executable)
FileAssetSource.getExecutable()
executable
- An external command that will produce the packaged asset.
The command should produce the location of a ZIP file on stdout
.this
public FileAssetSource.Builder fileName(java.lang.String fileName)
FileAssetSource.getFileName()
fileName
- The path, relative to the root of the cloud assembly, in which this asset source resides.
This can be a path to a file or a directory, depending on the
packaging type.this
public FileAssetSource.Builder packaging(FileAssetPackaging packaging)
FileAssetSource.getPackaging()
packaging
- Which type of packaging to perform.this
public FileAssetSource build()
FileAssetSource
java.lang.NullPointerException
- if any required attribute was not provided