public static final class TraceMetadata.Builder extends java.lang.Object implements SmithyBuilder<TraceMetadata>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TraceMetadata |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
TraceMetadata.Builder |
homepage(java.lang.String homepage)
Sets this builder's homepage.
|
TraceMetadata.Builder |
id(java.lang.String id) |
TraceMetadata.Builder |
setTimestampAsNow()
Sets the timestamp as the current time in RFC 3339 format.
|
TraceMetadata.Builder |
timestamp(java.lang.String timestamp) |
TraceMetadata.Builder |
type(java.lang.String type) |
TraceMetadata.Builder |
typeVersion(java.lang.String typeVersion)
Sets this builder's typeVersion.
|
TraceMetadata.Builder |
version(java.lang.String version) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public TraceMetadata build()
SmithyBuilder
build
in interface SmithyBuilder<TraceMetadata>
public TraceMetadata.Builder id(java.lang.String id)
public TraceMetadata.Builder version(java.lang.String version)
public TraceMetadata.Builder timestamp(java.lang.String timestamp)
public TraceMetadata.Builder type(java.lang.String type)
public TraceMetadata.Builder setTimestampAsNow()
public TraceMetadata.Builder typeVersion(java.lang.String typeVersion)
typeVersion
- typeVersion of TraceMetadata.public TraceMetadata.Builder homepage(java.lang.String homepage)
homepage
- homepage of TraceMetadata.