@Stability(value=Stable) public static final class MetadataEntry.Builder extends Object implements software.amazon.jsii.Builder<MetadataEntry>
MetadataEntry
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MetadataEntry |
build()
Builds the configured instance.
|
MetadataEntry.Builder |
data(Object data)
Sets the value of
MetadataEntry.getData() |
MetadataEntry.Builder |
trace(List<String> trace)
Sets the value of
MetadataEntry.getTrace() |
MetadataEntry.Builder |
type(String type)
Sets the value of
MetadataEntry.getType() |
@Stability(value=Stable) public MetadataEntry.Builder data(Object data)
MetadataEntry.getData()
data
- The data. This parameter is required.this
@Stability(value=Stable) public MetadataEntry.Builder type(String type)
MetadataEntry.getType()
type
- The metadata entry type. This parameter is required.this
@Stability(value=Stable) public MetadataEntry.Builder trace(List<String> trace)
MetadataEntry.getTrace()
trace
- Stack trace.
Can be omitted by setting the context key
ConstructMetadata.DISABLE_STACK_TRACE_IN_METADATA
to 1.this
@Stability(value=Stable) public MetadataEntry build()
build
in interface software.amazon.jsii.Builder<MetadataEntry>
MetadataEntry
NullPointerException
- if any required attribute was not providedCopyright © 2020. All rights reserved.