@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Timer extends Object implements Serializable, Cloneable, StructuredPojo
The current state of a timer.
Constructor and Description |
---|
Timer() |
Modifier and Type | Method and Description |
---|---|
Timer |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the timer.
|
Date |
getTimestamp()
The number of seconds which have elapsed on the timer.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the timer.
|
void |
setTimestamp(Date timestamp)
The number of seconds which have elapsed on the timer.
|
String |
toString()
Returns a string representation of this object.
|
Timer |
withName(String name)
The name of the timer.
|
Timer |
withTimestamp(Date timestamp)
The number of seconds which have elapsed on the timer.
|
public void setName(String name)
The name of the timer.
name
- The name of the timer.public String getName()
The name of the timer.
public Timer withName(String name)
The name of the timer.
name
- The name of the timer.public void setTimestamp(Date timestamp)
The number of seconds which have elapsed on the timer.
timestamp
- The number of seconds which have elapsed on the timer.public Date getTimestamp()
The number of seconds which have elapsed on the timer.
public Timer withTimestamp(Date timestamp)
The number of seconds which have elapsed on the timer.
timestamp
- The number of seconds which have elapsed on the timer.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.