public static final class TraceFile.Builder extends java.lang.Object implements SmithyBuilder<TraceFile>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TraceFile.Builder |
addShapeLink(ShapeId id,
ShapeLink link)
Adds a ShapeLink to this ShapeId in the TraceFile's shapes map.
|
TraceFile.Builder |
addShapeLink(java.lang.String idString,
ShapeLink link)
Adds a ShapeLink to this ShapeId in the TraceFile's shapes map.
|
TraceFile.Builder |
addShapeLinks(ShapeId id,
java.util.List<ShapeLink> linkList)
Adds a list of ShapeLinks to this ShapeId in the TraceFile's shapes map.
|
TraceFile.Builder |
addShapeLinks(java.lang.String idString,
java.util.List<ShapeLink> linkList)
Adds a list of ShapeLinks to this ShapeId in the TraceFile's shapes map.
|
TraceFile |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
TraceFile.Builder |
definitions(ArtifactDefinitions artifactDefinitions) |
TraceFile.Builder |
metadata(TraceMetadata metadata) |
TraceFile.Builder |
shapes(java.util.Map<ShapeId,java.util.List<ShapeLink>> shapes) |
TraceFile.Builder |
smithyTrace(java.lang.String smithyTrace) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public TraceFile build()
SmithyBuilder
build
in interface SmithyBuilder<TraceFile>
public TraceFile.Builder smithyTrace(java.lang.String smithyTrace)
smithyTrace
- Trace file version number.public TraceFile.Builder definitions(ArtifactDefinitions artifactDefinitions)
artifactDefinitions
- Trace file definitions.public TraceFile.Builder metadata(TraceMetadata metadata)
metadata
- Trace file TraceMetadata.public TraceFile.Builder addShapeLink(ShapeId id, ShapeLink link)
id
- ShapeIdlink
- ShapeLink corresponding to ShapeIdpublic TraceFile.Builder addShapeLink(java.lang.String idString, ShapeLink link)
idString
- ShapeId represented as a string.link
- ShapeLink corresponding to ShapeIdpublic TraceFile.Builder addShapeLinks(ShapeId id, java.util.List<ShapeLink> linkList)
id
- ShapeId.linkList
- List of ShapeLinks corresponding to a ShapeId.public TraceFile.Builder addShapeLinks(java.lang.String idString, java.util.List<ShapeLink> linkList)
idString
- ShapeId as a String.linkList
- List of ShapeLinks corresponding to a ShapeId.public TraceFile.Builder shapes(java.util.Map<ShapeId,java.util.List<ShapeLink>> shapes)
shapes
- shapes map for TraceFile.