Class TraceFile.Builder
java.lang.Object
software.amazon.smithy.codegen.core.trace.TraceFile.Builder
- All Implemented Interfaces:
SmithyBuilder<TraceFile>
- Enclosing class:
- TraceFile
Builder for constructing TraceFile's from scratch.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddShapeLink
(String idString, ShapeLink link) Adds a ShapeLink to this ShapeId in the TraceFile's shapes map.addShapeLink
(ShapeId id, ShapeLink link) Adds a ShapeLink to this ShapeId in the TraceFile's shapes map.addShapeLinks
(String idString, List<ShapeLink> linkList) Adds a list of ShapeLinks to this ShapeId in the TraceFile's shapes map.addShapeLinks
(ShapeId id, List<ShapeLink> linkList) Adds a list of ShapeLinks to this ShapeId in the TraceFile's shapes map.build()
Creates an immutable object that is created from the properties that have been set on the builder.definitions
(ArtifactDefinitions artifactDefinitions) metadata
(TraceMetadata metadata) smithyTrace
(String smithyTrace)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Specified by:
build
in interfaceSmithyBuilder<TraceFile>
- Returns:
- The TraceFile.
-
smithyTrace
- Parameters:
smithyTrace
- Trace file version number.- Returns:
- This builder.
-
definitions
- Parameters:
artifactDefinitions
- Trace file definitions.- Returns:
- This builder.
-
metadata
- Parameters:
metadata
- Trace file TraceMetadata.- Returns:
- This builder.
-
addShapeLink
Adds a ShapeLink to this ShapeId in the TraceFile's shapes map.- Parameters:
id
- ShapeIdlink
- ShapeLink corresponding to ShapeId- Returns:
- This builder.
-
addShapeLink
Adds a ShapeLink to this ShapeId in the TraceFile's shapes map.- Parameters:
idString
- ShapeId represented as a string.link
- ShapeLink corresponding to ShapeId- Returns:
- This builder.
-
addShapeLinks
Adds a list of ShapeLinks to this ShapeId in the TraceFile's shapes map.- Parameters:
id
- ShapeId.linkList
- List of ShapeLinks corresponding to a ShapeId.- Returns:
- This builder.
-
addShapeLinks
Adds a list of ShapeLinks to this ShapeId in the TraceFile's shapes map.- Parameters:
idString
- ShapeId as a String.linkList
- List of ShapeLinks corresponding to a ShapeId.- Returns:
- This builder.
-
shapes
- Parameters:
shapes
- shapes map for TraceFile.- Returns:
- This builder.
-