Package software.amazon.awscdk.cxapi
Class MetadataEntryResult.Builder
java.lang.Object
software.amazon.awscdk.cxapi.MetadataEntryResult.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MetadataEntryResult>
- Enclosing interface:
MetadataEntryResult
@Stability(Stable)
public static final class MetadataEntryResult.Builder
extends Object
implements software.amazon.jsii.Builder<MetadataEntryResult>
A builder for
MetadataEntryResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofMetadataEntry.getData()
Sets the value ofMetadataEntry.getData()
Sets the value ofMetadataEntry.getData()
data
(FileAssetMetadataEntry data) Sets the value ofMetadataEntry.getData()
Sets the value ofMetadataEntryResult.getPath()
Sets the value ofMetadataEntry.getTrace()
Sets the value ofMetadataEntry.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
path
Sets the value ofMetadataEntryResult.getPath()
- Parameters:
path
- The path in which this entry was defined. This parameter is required.- Returns:
this
-
type
Sets the value ofMetadataEntry.getType()
- Parameters:
type
- The type of the metadata entry. This parameter is required.- Returns:
this
-
data
Sets the value ofMetadataEntry.getData()
- Parameters:
data
- The data.- Returns:
this
-
data
Sets the value ofMetadataEntry.getData()
- Parameters:
data
- The data.- Returns:
this
-
data
Sets the value ofMetadataEntry.getData()
- Parameters:
data
- The data.- Returns:
this
-
data
Sets the value ofMetadataEntry.getData()
- Parameters:
data
- The data.- Returns:
this
-
trace
Sets the value ofMetadataEntry.getTrace()
- Parameters:
trace
- A stack trace for when the entry was created.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<MetadataEntryResult>
- Returns:
- a new instance of
MetadataEntryResult
- Throws:
NullPointerException
- if any required attribute was not provided
-