@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssetPropertyTimestamp extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains timestamp information. For more information, see TimeInNanos in the AWS IoT SiteWise API Reference.
For parameters that are string data type, you can specify the following options:
Use a string. For example, the timeInSeconds value can be '1586400675'.
Use an expression. For example, the timeInSeconds value can be
'${$input.TemperatureInput.sensorData.timestamp/1000}'.
For more information, see Expressions in the AWS IoT Events Developer Guide.
| Constructor and Description |
|---|
AssetPropertyTimestamp() |
| Modifier and Type | Method and Description |
|---|---|
AssetPropertyTimestamp |
clone() |
boolean |
equals(Object obj) |
String |
getOffsetInNanos()
The nanosecond offset converted from
timeInSeconds. |
String |
getTimeInSeconds()
The timestamp, in seconds, in the Unix epoch format.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setOffsetInNanos(String offsetInNanos)
The nanosecond offset converted from
timeInSeconds. |
void |
setTimeInSeconds(String timeInSeconds)
The timestamp, in seconds, in the Unix epoch format.
|
String |
toString()
Returns a string representation of this object.
|
AssetPropertyTimestamp |
withOffsetInNanos(String offsetInNanos)
The nanosecond offset converted from
timeInSeconds. |
AssetPropertyTimestamp |
withTimeInSeconds(String timeInSeconds)
The timestamp, in seconds, in the Unix epoch format.
|
public void setTimeInSeconds(String timeInSeconds)
The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199. You can also specify an expression.
timeInSeconds - The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199. You
can also specify an expression.public String getTimeInSeconds()
The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199. You can also specify an expression.
public AssetPropertyTimestamp withTimeInSeconds(String timeInSeconds)
The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199. You can also specify an expression.
timeInSeconds - The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199. You
can also specify an expression.public void setOffsetInNanos(String offsetInNanos)
The nanosecond offset converted from timeInSeconds. The valid range is between 0-999999999. You can
also specify an expression.
offsetInNanos - The nanosecond offset converted from timeInSeconds. The valid range is between 0-999999999.
You can also specify an expression.public String getOffsetInNanos()
The nanosecond offset converted from timeInSeconds. The valid range is between 0-999999999. You can
also specify an expression.
timeInSeconds. The valid range is between 0-999999999.
You can also specify an expression.public AssetPropertyTimestamp withOffsetInNanos(String offsetInNanos)
The nanosecond offset converted from timeInSeconds. The valid range is between 0-999999999. You can
also specify an expression.
offsetInNanos - The nanosecond offset converted from timeInSeconds. The valid range is between 0-999999999.
You can also specify an expression.public String toString()
toString in class ObjectObject.toString()public AssetPropertyTimestamp clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.