Package io.github.cdklabs.projen
Interface SampleFileOptions
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SampleFileOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:42.801Z") @Stability(Experimental) public interface SampleFileOptions extends software.amazon.jsii.JsiiSerializable
(experimental) Options for the SampleFile object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSampleFileOptions.BuilderA builder forSampleFileOptionsstatic classSampleFileOptions.Jsii$ProxyAn implementation forSampleFileOptions
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static SampleFileOptions.Builderbuilder()default StringgetContents()(experimental) The contents of the file to write.default StringgetSourcePath()(experimental) Absolute path to a file to copy the contents from (does not need to be a text file).
-
-
-
Method Detail
-
getContents
@Stability(Experimental) @Nullable default String getContents()
(experimental) The contents of the file to write.
-
getSourcePath
@Stability(Experimental) @Nullable default String getSourcePath()
(experimental) 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
testdirto be a subdirectory ofsrc, sample files should outside of thesrcdirectory, otherwise they may not be copied. For example:new SampleFile(this, 'assets/icon.png', { source: path.join(__dirname, '..', 'sample-assets', 'icon.png') });
-
builder
@Stability(Experimental) static SampleFileOptions.Builder builder()
- Returns:
- a
SampleFileOptions.BuilderofSampleFileOptions
-
-