Class TraceMetadata.Builder
java.lang.Object
software.amazon.smithy.codegen.core.trace.TraceMetadata.Builder
- All Implemented Interfaces:
SmithyBuilder<TraceMetadata>
- Enclosing class:
- TraceMetadata
public static final class TraceMetadata.Builder
extends Object
implements SmithyBuilder<TraceMetadata>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates an immutable object that is created from the properties that have been set on the builder.Sets this builder's homepage.Sets the timestamp as the current time in RFC 3339 format.typeVersion
(String typeVersion) Sets this builder's typeVersion.
-
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<TraceMetadata>
- Returns:
- The TraceMetadata object corresponding to this builder.
-
id
-
version
-
timestamp
-
type
-
setTimestampAsNow
Sets the timestamp as the current time in RFC 3339 format.- Returns:
- This builder.
-
typeVersion
Sets this builder's typeVersion.- Parameters:
typeVersion
- typeVersion of TraceMetadata.- Returns:
- This builder.
-
homepage
Sets this builder's homepage.- Parameters:
homepage
- homepage of TraceMetadata.- Returns:
- This builder.
-