@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LocationTimestamp 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 |
|---|
LocationTimestamp() |
| Modifier and Type | Method and Description |
|---|---|
LocationTimestamp |
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.
|
LocationTimestamp |
withUnit(String unit)
The precision of the timestamp value that results from the expression described in
value. |
LocationTimestamp |
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 LocationTimestamp 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 LocationTimestamp 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 LocationTimestamp clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.