@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimestreamTimestamp extends Object implements Serializable, Cloneable, StructuredPojo
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 |
|---|---|
TimestreamTimestamp |
clone() |
boolean |
equals(Object obj) |
String |
getUnit()
The precision of the timestamp value that results from the expression described in
value. |
String |
getValue()
An expression that returns a long epoch time value.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setUnit(String unit)
The precision of the timestamp value that results from the expression described in
value. |
void |
setValue(String value)
An expression that returns a long epoch time value.
|
String |
toString()
Returns a string representation of this object.
|
TimestreamTimestamp |
withUnit(String unit)
The precision of the timestamp value that results from the expression described in
value. |
TimestreamTimestamp |
withValue(String value)
An expression that returns a long epoch time value.
|
public void setValue(String value)
An expression that returns a long epoch time value.
value - An expression that returns a long epoch time value.public String getValue()
An expression that returns a long epoch time value.
public TimestreamTimestamp withValue(String value)
An expression that returns a long epoch time value.
value - An expression that returns a long epoch time value.public void setUnit(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 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.
value
.
Valid values: SECONDS | MILLISECONDS | MICROSECONDS |
NANOSECONDS. The default is MILLISECONDS.
public TimestreamTimestamp withUnit(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 String toString()
toString in class ObjectObject.toString()public TimestreamTimestamp clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.