@Stability(value=Experimental) public static final class SampleFileOptions.Builder extends Object implements software.amazon.jsii.Builder<SampleFileOptions>
SampleFileOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SampleFileOptions |
build()
Builds the configured instance.
|
SampleFileOptions.Builder |
contents(String contents)
Sets the value of
SampleFileOptions.getContents() |
SampleFileOptions.Builder |
sourcePath(String sourcePath)
Sets the value of
SampleFileOptions.getSourcePath() |
@Stability(value=Experimental) public SampleFileOptions.Builder contents(String contents)
SampleFileOptions.getContents()contents - The contents of the file to write.this@Stability(value=Experimental) public SampleFileOptions.Builder sourcePath(String sourcePath)
SampleFileOptions.getSourcePath()sourcePath - Absolute path to a file to copy the contents from (does not need to be a text file).
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 SampleFile(this, 'assets/icon.png', { source: path.join(__dirname, '..', 'sample-assets', 'icon.png') });
this@Stability(value=Experimental) public SampleFileOptions build()
build in interface software.amazon.jsii.Builder<SampleFileOptions>SampleFileOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.