@Stability(value=Experimental) public static final class SampleDirOptions.Builder extends Object implements software.amazon.jsii.Builder<SampleDirOptions>
SampleDirOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SampleDirOptions |
build()
Builds the configured instance.
|
SampleDirOptions.Builder |
files(Map<String,String> files)
Sets the value of
SampleDirOptions.getFiles() |
SampleDirOptions.Builder |
sourceDir(String sourceDir)
Sets the value of
SampleDirOptions.getSourceDir() |
@Stability(value=Experimental) public SampleDirOptions.Builder files(Map<String,String> files)
SampleDirOptions.getFiles()files - The files to render into the directory.
These files get added after
any files from source if that option is specified (replacing if names
overlap).this@Stability(value=Experimental) public SampleDirOptions.Builder sourceDir(String sourceDir)
SampleDirOptions.getSourceDir()sourceDir - Absolute path to a directory to copy files from (does not need to be text files).
If your project is typescript-based and has configured testdir to be a
subdirectory of src, sample files should outside of the src directory
otherwise they may not be copied. For example:
new SampleDir(this, 'public', { source: path.join(__dirname, '..', 'sample-assets') });
this@Stability(value=Experimental) public SampleDirOptions build()
build in interface software.amazon.jsii.Builder<SampleDirOptions>SampleDirOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.