public class TimestreamTimestamp
extends java.lang.Object
implements java.io.Serializable
Describes how to interpret an application-defined timestamp value from an MQTT message payload and the precision of that value.
Constructor and Description |
---|
TimestreamTimestamp() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getUnit()
The precision of the timestamp value that results from the expression
described in
value . |
java.lang.String |
getValue()
An expression that returns a long epoch time value.
|
int |
hashCode() |
void |
setUnit(java.lang.String unit)
The precision of the timestamp value that results from the expression
described in
value . |
void |
setValue(java.lang.String value)
An expression that returns a long epoch time value.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TimestreamTimestamp |
withUnit(java.lang.String unit)
The precision of the timestamp value that results from the expression
described in
value . |
TimestreamTimestamp |
withValue(java.lang.String value)
An expression that returns a long epoch time value.
|
public java.lang.String getValue()
An expression that returns a long epoch time value.
An expression that returns a long epoch time value.
public void setValue(java.lang.String value)
An expression that returns a long epoch time value.
value
- An expression that returns a long epoch time value.
public TimestreamTimestamp withValue(java.lang.String value)
An expression that returns a long epoch time value.
Returns a reference to this object so that method calls can be chained together.
value
- An expression that returns a long epoch time value.
public java.lang.String getUnit()
The precision of the timestamp value that results from the expression
described in value
.
Valid values: SECONDS
| MILLISECONDS
|
MICROSECONDS
| NANOSECONDS
. The default is
MILLISECONDS
.
The precision of the timestamp value that results from the
expression described in value
.
Valid values: SECONDS
| MILLISECONDS
|
MICROSECONDS
| NANOSECONDS
. The default
is MILLISECONDS
.
public void setUnit(java.lang.String unit)
The precision of the timestamp value that results from the expression
described in value
.
Valid values: SECONDS
| MILLISECONDS
|
MICROSECONDS
| NANOSECONDS
. The default is
MILLISECONDS
.
unit
-
The precision of the timestamp value that results from the
expression described in value
.
Valid values: SECONDS
| MILLISECONDS
| MICROSECONDS
| NANOSECONDS
. The
default is MILLISECONDS
.
public TimestreamTimestamp withUnit(java.lang.String unit)
The precision of the timestamp value that results from the expression
described in value
.
Valid values: SECONDS
| MILLISECONDS
|
MICROSECONDS
| NANOSECONDS
. The default is
MILLISECONDS
.
Returns a reference to this object so that method calls can be chained together.
unit
-
The precision of the timestamp value that results from the
expression described in value
.
Valid values: SECONDS
| MILLISECONDS
| MICROSECONDS
| NANOSECONDS
. The
default is MILLISECONDS
.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.