Class MetadataEntry.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.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(Boolean data)Sets the value ofMetadataEntry.getData()MetadataEntry.Builderdata(Number data)Sets the value ofMetadataEntry.getData()MetadataEntry.Builderdata(String data)Sets the value ofMetadataEntry.getData()MetadataEntry.Builderdata(List<? extends Tag> data)Sets the value ofMetadataEntry.getData()MetadataEntry.Builderdata(ContainerImageAssetMetadataEntry data)Sets the value ofMetadataEntry.getData()MetadataEntry.Builderdata(FileAssetMetadataEntry 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
-
type
@Stability(Stable) public MetadataEntry.Builder type(String type)
Sets the value ofMetadataEntry.getType()- Parameters:
type- The type of the metadata entry. This parameter is required.- Returns:
this
-
data
@Stability(Stable) public MetadataEntry.Builder data(String data)
Sets the value ofMetadataEntry.getData()- Parameters:
data- The data.- Returns:
this
-
data
@Stability(Stable) public MetadataEntry.Builder data(Number data)
Sets the value ofMetadataEntry.getData()- Parameters:
data- The data.- Returns:
this
-
data
@Stability(Stable) public MetadataEntry.Builder data(Boolean data)
Sets the value ofMetadataEntry.getData()- Parameters:
data- The data.- Returns:
this
-
data
@Stability(Stable) public MetadataEntry.Builder data(FileAssetMetadataEntry data)
Sets the value ofMetadataEntry.getData()- Parameters:
data- The data.- Returns:
this
-
data
@Stability(Stable) public MetadataEntry.Builder data(ContainerImageAssetMetadataEntry data)
Sets the value ofMetadataEntry.getData()- Parameters:
data- The data.- Returns:
this
-
data
@Stability(Stable) public MetadataEntry.Builder data(List<? extends Tag> data)
Sets the value ofMetadataEntry.getData()- Parameters:
data- The data.- Returns:
this
-
trace
@Stability(Stable) public MetadataEntry.Builder trace(List<String> trace)
Sets the value ofMetadataEntry.getTrace()- Parameters:
trace- A stack trace for when the entry was created.- 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
-
-