public class Session
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Session() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getDuration()
The duration of the session, in milliseconds.
|
java.lang.String |
getId()
A unique identifier for the session.
|
java.lang.String |
getStartTimestamp()
The date and time when the session began.
|
java.lang.String |
getStopTimestamp()
The date and time when the session ended.
|
int |
hashCode() |
void |
setDuration(java.lang.Integer duration)
The duration of the session, in milliseconds.
|
void |
setId(java.lang.String id)
A unique identifier for the session.
|
void |
setStartTimestamp(java.lang.String startTimestamp)
The date and time when the session began.
|
void |
setStopTimestamp(java.lang.String stopTimestamp)
The date and time when the session ended.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Session |
withDuration(java.lang.Integer duration)
The duration of the session, in milliseconds.
|
Session |
withId(java.lang.String id)
A unique identifier for the session.
|
Session |
withStartTimestamp(java.lang.String startTimestamp)
The date and time when the session began.
|
Session |
withStopTimestamp(java.lang.String stopTimestamp)
The date and time when the session ended.
|
public java.lang.Integer getDuration()
public void setDuration(java.lang.Integer duration)
duration
- The duration of the session, in milliseconds.public Session withDuration(java.lang.Integer duration)
Returns a reference to this object so that method calls can be chained together.
duration
- The duration of the session, in milliseconds.public java.lang.String getId()
public void setId(java.lang.String id)
id
- A unique identifier for the session.public Session withId(java.lang.String id)
Returns a reference to this object so that method calls can be chained together.
id
- A unique identifier for the session.public java.lang.String getStartTimestamp()
public void setStartTimestamp(java.lang.String startTimestamp)
startTimestamp
- The date and time when the session began.public Session withStartTimestamp(java.lang.String startTimestamp)
Returns a reference to this object so that method calls can be chained together.
startTimestamp
- The date and time when the session began.public java.lang.String getStopTimestamp()
public void setStopTimestamp(java.lang.String stopTimestamp)
stopTimestamp
- The date and time when the session ended.public Session withStopTimestamp(java.lang.String stopTimestamp)
Returns a reference to this object so that method calls can be chained together.
stopTimestamp
- The date and time when the session ended.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.