@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Session extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about a session.
Constructor and Description |
---|
Session() |
Modifier and Type | Method and Description |
---|---|
Session |
clone() |
boolean |
equals(Object obj) |
Integer |
getDuration()
The duration of the session, in milliseconds.
|
String |
getId()
The unique identifier for the session.
|
String |
getStartTimestamp()
The date and time when the session began.
|
String |
getStopTimestamp()
The date and time when the session ended.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDuration(Integer duration)
The duration of the session, in milliseconds.
|
void |
setId(String id)
The unique identifier for the session.
|
void |
setStartTimestamp(String startTimestamp)
The date and time when the session began.
|
void |
setStopTimestamp(String stopTimestamp)
The date and time when the session ended.
|
String |
toString()
Returns a string representation of this object.
|
Session |
withDuration(Integer duration)
The duration of the session, in milliseconds.
|
Session |
withId(String id)
The unique identifier for the session.
|
Session |
withStartTimestamp(String startTimestamp)
The date and time when the session began.
|
Session |
withStopTimestamp(String stopTimestamp)
The date and time when the session ended.
|
public void setDuration(Integer duration)
The duration of the session, in milliseconds.
duration
- The duration of the session, in milliseconds.public Integer getDuration()
The duration of the session, in milliseconds.
public Session withDuration(Integer duration)
The duration of the session, in milliseconds.
duration
- The duration of the session, in milliseconds.public void setId(String id)
The unique identifier for the session.
id
- The unique identifier for the session.public String getId()
The unique identifier for the session.
public Session withId(String id)
The unique identifier for the session.
id
- The unique identifier for the session.public void setStartTimestamp(String startTimestamp)
The date and time when the session began.
startTimestamp
- The date and time when the session began.public String getStartTimestamp()
The date and time when the session began.
public Session withStartTimestamp(String startTimestamp)
The date and time when the session began.
startTimestamp
- The date and time when the session began.public void setStopTimestamp(String stopTimestamp)
The date and time when the session ended.
stopTimestamp
- The date and time when the session ended.public String getStopTimestamp()
The date and time when the session ended.
public Session withStopTimestamp(String stopTimestamp)
The date and time when the session ended.
stopTimestamp
- The date and time when the session ended.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.