@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimeInNanos extends Object implements Serializable, Cloneable, StructuredPojo
Contains a timestamp with optional nanosecond granularity.
Constructor and Description |
---|
TimeInNanos() |
Modifier and Type | Method and Description |
---|---|
TimeInNanos |
clone() |
boolean |
equals(Object obj) |
Integer |
getOffsetInNanos()
The nanosecond offset from
timeInSeconds . |
Long |
getTimeInSeconds()
The timestamp date, in seconds, in the Unix epoch format.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setOffsetInNanos(Integer offsetInNanos)
The nanosecond offset from
timeInSeconds . |
void |
setTimeInSeconds(Long timeInSeconds)
The timestamp date, in seconds, in the Unix epoch format.
|
String |
toString()
Returns a string representation of this object.
|
TimeInNanos |
withOffsetInNanos(Integer offsetInNanos)
The nanosecond offset from
timeInSeconds . |
TimeInNanos |
withTimeInSeconds(Long timeInSeconds)
The timestamp date, in seconds, in the Unix epoch format.
|
public void setTimeInSeconds(Long timeInSeconds)
The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by
offsetInNanos
.
timeInSeconds
- The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by
offsetInNanos
.public Long getTimeInSeconds()
The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by
offsetInNanos
.
offsetInNanos
.public TimeInNanos withTimeInSeconds(Long timeInSeconds)
The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by
offsetInNanos
.
timeInSeconds
- The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by
offsetInNanos
.public void setOffsetInNanos(Integer offsetInNanos)
The nanosecond offset from timeInSeconds
.
offsetInNanos
- The nanosecond offset from timeInSeconds
.public Integer getOffsetInNanos()
The nanosecond offset from timeInSeconds
.
timeInSeconds
.public TimeInNanos withOffsetInNanos(Integer offsetInNanos)
The nanosecond offset from timeInSeconds
.
offsetInNanos
- The nanosecond offset from timeInSeconds
.public String toString()
toString
in class Object
Object.toString()
public TimeInNanos clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.