public class Session
extends java.lang.Object
implements java.io.Serializable
Describes the session. Session information is required on ALL events.
| Constructor and Description |
|---|
Session() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getDuration()
The duration of the session.
|
java.lang.String |
getId()
A unique identifier for the session
|
java.lang.String |
getStartTimestamp()
The time the event started in ISO 8601 standard date time format.
|
java.lang.String |
getStopTimestamp()
The time the event terminated in ISO 8601 standard date time format.
|
int |
hashCode() |
void |
setDuration(java.lang.Long duration)
The duration of the session.
|
void |
setId(java.lang.String id)
A unique identifier for the session
|
void |
setStartTimestamp(java.lang.String startTimestamp)
The time the event started in ISO 8601 standard date time format.
|
void |
setStopTimestamp(java.lang.String stopTimestamp)
The time the event terminated in ISO 8601 standard date time format.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Session |
withDuration(java.lang.Long duration)
The duration of the session.
|
Session |
withId(java.lang.String id)
A unique identifier for the session
|
Session |
withStartTimestamp(java.lang.String startTimestamp)
The time the event started in ISO 8601 standard date time format.
|
Session |
withStopTimestamp(java.lang.String stopTimestamp)
The time the event terminated in ISO 8601 standard date time format.
|
public java.lang.String getId()
A unique identifier for the session
Constraints:
Length: 1 - 50
A unique identifier for the session
public void setId(java.lang.String id)
A unique identifier for the session
Constraints:
Length: 1 - 50
id - A unique identifier for the session
public Session withId(java.lang.String id)
A unique identifier for the session
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 50
id - A unique identifier for the session
public java.lang.Long getDuration()
The duration of the session.
The duration of the session.
public void setDuration(java.lang.Long duration)
The duration of the session.
duration - The duration of the session.
public Session withDuration(java.lang.Long duration)
The duration of the session.
Returns a reference to this object so that method calls can be chained together.
duration - The duration of the session.
public java.lang.String getStartTimestamp()
The time the event started in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
The time the event started in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
public void setStartTimestamp(java.lang.String startTimestamp)
The time the event started in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
startTimestamp - The time the event started in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
public Session withStartTimestamp(java.lang.String startTimestamp)
The time the event started in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
Returns a reference to this object so that method calls can be chained together.
startTimestamp - The time the event started in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
public java.lang.String getStopTimestamp()
The time the event terminated in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
The time the event terminated in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
public void setStopTimestamp(java.lang.String stopTimestamp)
The time the event terminated in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
stopTimestamp - The time the event terminated in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
public Session withStopTimestamp(java.lang.String stopTimestamp)
The time the event terminated in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
Returns a reference to this object so that method calls can be chained together.
stopTimestamp - The time the event terminated in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.