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 java.lang.Object implements SmithyBuilder<TraceMetadata>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
build
public TraceMetadata 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
public TraceMetadata.Builder id(java.lang.String id)
-
version
public TraceMetadata.Builder version(java.lang.String version)
-
timestamp
public TraceMetadata.Builder timestamp(java.lang.String timestamp)
-
type
public TraceMetadata.Builder type(java.lang.String type)
-
setTimestampAsNow
public TraceMetadata.Builder setTimestampAsNow()
Sets the timestamp as the current time in RFC 3339 format.- Returns:
- This builder.
-
typeVersion
public TraceMetadata.Builder typeVersion(java.lang.String typeVersion)
Sets this builder's typeVersion.- Parameters:
typeVersion
- typeVersion of TraceMetadata.- Returns:
- This builder.
-
homepage
public TraceMetadata.Builder homepage(java.lang.String homepage)
Sets this builder's homepage.- Parameters:
homepage
- homepage of TraceMetadata.- Returns:
- This builder.
-
-