Package software.constructs
Class MetadataOptions.Builder
- java.lang.Object
-
- software.constructs.MetadataOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MetadataOptions>
- Enclosing interface:
- MetadataOptions
@Stability(Stable) public static final class MetadataOptions.Builder extends Object implements software.amazon.jsii.Builder<MetadataOptions>
A builder forMetadataOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataOptions
build()
Builds the configured instance.MetadataOptions.Builder
stackTrace(Boolean stackTrace)
Sets the value ofMetadataOptions.getStackTrace()
MetadataOptions.Builder
traceFromFunction(Object traceFromFunction)
Sets the value ofMetadataOptions.getTraceFromFunction()
-
-
-
Method Detail
-
stackTrace
@Stability(Stable) public MetadataOptions.Builder stackTrace(Boolean stackTrace)
Sets the value ofMetadataOptions.getStackTrace()
- Parameters:
stackTrace
- Include stack trace with metadata entry.- Returns:
this
-
traceFromFunction
@Stability(Stable) public MetadataOptions.Builder traceFromFunction(Object traceFromFunction)
Sets the value ofMetadataOptions.getTraceFromFunction()
- Parameters:
traceFromFunction
- A JavaScript function to begin tracing from. This option is ignored unlessstackTrace
istrue
.- Returns:
this
-
build
@Stability(Stable) public MetadataOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<MetadataOptions>
- Returns:
- a new instance of
MetadataOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-