Package software.constructs
Class MetadataEntry.Builder
- java.lang.Object
-
- software.constructs.MetadataEntry.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MetadataEntry>
- Enclosing interface:
- MetadataEntry
@Stability(Stable) public static final class MetadataEntry.Builder extends Object implements software.amazon.jsii.Builder<MetadataEntry>
A builder forMetadataEntry
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataEntrybuild()Builds the configured instance.MetadataEntry.Builderdata(Object data)Sets the value ofMetadataEntry.getData()MetadataEntry.Buildertrace(List<String> trace)Sets the value ofMetadataEntry.getTrace()MetadataEntry.Buildertype(String type)Sets the value ofMetadataEntry.getType()
-
-
-
Method Detail
-
data
@Stability(Stable) public MetadataEntry.Builder data(Object data)
Sets the value ofMetadataEntry.getData()- Parameters:
data- The data. This parameter is required.- Returns:
this
-
type
@Stability(Stable) public MetadataEntry.Builder type(String type)
Sets the value ofMetadataEntry.getType()- Parameters:
type- The metadata entry type. This parameter is required.- Returns:
this
-
trace
@Stability(Stable) public MetadataEntry.Builder trace(List<String> trace)
Sets the value ofMetadataEntry.getTrace()- Parameters:
trace- Stack trace. Can be omitted by setting the context keyConstructMetadata.DISABLE_STACK_TRACE_IN_METADATAto 1.- Returns:
this
-
build
@Stability(Stable) public MetadataEntry build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MetadataEntry>- Returns:
- a new instance of
MetadataEntry - Throws:
NullPointerException- if any required attribute was not provided
-
-