public final class TraceMetadata extends java.lang.Object implements ToNode, ToSmithyBuilder<TraceMetadata>
Modifier and Type | Class and Description |
---|---|
static class |
TraceMetadata.Builder |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HOMEPAGE_TEXT |
static java.lang.String |
ID_TEXT |
static java.lang.String |
TIMESTAMP_TEXT |
static java.lang.String |
TYPE_TEXT |
static java.lang.String |
TYPE_VERSION_TEXT |
static java.lang.String |
VERSION_TEXT |
Modifier and Type | Method and Description |
---|---|
static TraceMetadata.Builder |
builder() |
static TraceMetadata |
fromNode(Node value)
Instantiates TraceMetadata instance variables using an ObjectNode that contains the artifact section of the
trace file.
|
java.util.Optional<java.lang.String> |
getHomepage()
Gets this TraceMetadata's Homepage in an Optional container.
|
java.lang.String |
getId()
Gets this TraceMetadata's id.
|
java.lang.String |
getTimestamp()
Gets this TraceMetadata's timestamp.
|
java.lang.String |
getType()
Gets this TraceMetadata's type.
|
java.util.Optional<java.lang.String> |
getTypeVersion()
Gets this TraceMetadata's TypeVersion in an Optional container.
|
java.lang.String |
getVersion()
Gets this TraceMetadata's version (for example, the AWS SDK release number).
|
TraceMetadata.Builder |
toBuilder()
Take this object and create a builder that contains all of the
current property values of this object.
|
ObjectNode |
toNode()
Converts the metadata contained in TraceMetadata's variables into an ObjectNode.
|
public static final java.lang.String ID_TEXT
public static final java.lang.String VERSION_TEXT
public static final java.lang.String TYPE_TEXT
public static final java.lang.String TYPE_VERSION_TEXT
public static final java.lang.String HOMEPAGE_TEXT
public static final java.lang.String TIMESTAMP_TEXT
public static TraceMetadata fromNode(Node value)
value
- an ObjectNode that contains all children of the artifact tag in the trace filepublic static TraceMetadata.Builder builder()
public ObjectNode toNode()
public java.lang.String getId()
public java.lang.String getVersion()
public java.lang.String getTimestamp()
public java.lang.String getType()
public java.util.Optional<java.lang.String> getTypeVersion()
public java.util.Optional<java.lang.String> getHomepage()
public TraceMetadata.Builder toBuilder()
toBuilder
in interface ToSmithyBuilder<TraceMetadata>