@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.
You must use expressions for all parameters in AssetPropertyTimestamp
. The expressions accept literals,
operators, functions, references, and substitution templates.
Examples
For literal values, the expressions must contain single quotes. For example, the value for the
timeInSeconds
parameter can be '1586400675'
.
For references, you must specify either variables or input values. For example, the value for the
offsetInNanos
parameter can be $variable.time
.
For a substitution template, you must use ${}
, and the template must be in single quotes. A substitution
template can also contain a combination of literals, operators, functions, references, and substitution templates.
In the following example, the value for the timeInSeconds
parameter uses a substitution template.
'${$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)
Marshalls this structured data using the given
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.
timeInSeconds
- The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199.public String getTimeInSeconds()
The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199.
public AssetPropertyTimestamp withTimeInSeconds(String timeInSeconds)
The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199.
timeInSeconds
- The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199.public void setOffsetInNanos(String offsetInNanos)
The nanosecond offset converted from timeInSeconds
. The valid range is between 0-999999999.
offsetInNanos
- The nanosecond offset converted from timeInSeconds
. The valid range is between 0-999999999.public String getOffsetInNanos()
The nanosecond offset converted from timeInSeconds
. The valid range is between 0-999999999.
timeInSeconds
. The valid range is between 0-999999999.public AssetPropertyTimestamp withOffsetInNanos(String offsetInNanos)
The nanosecond offset converted from timeInSeconds
. The valid range is between 0-999999999.
offsetInNanos
- The nanosecond offset converted from timeInSeconds
. The valid range is between 0-999999999.public String toString()
toString
in class Object
Object.toString()
public AssetPropertyTimestamp clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.