public class Event extends Object implements Serializable
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
addAttributesEntry(String key,
String value)
Sets the value of the Attributes property for this object.
|
Event |
addMetricsEntry(String key,
Double value)
Sets the value of the Metrics property for this object.
|
Event |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
Event |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
Returns the value of the Attributes property for this object.
|
String |
getEventType()
Returns the value of the EventType property for this object.
|
Map<String,Double> |
getMetrics()
Returns the value of the Metrics property for this object.
|
Session |
getSession()
Returns the value of the Session property for this object.
|
String |
getTimestamp()
Returns the value of the Timestamp property for this object.
|
String |
getVersion()
Returns the value of the Version property for this object.
|
int |
hashCode() |
void |
setAttributes(Map<String,String> attributes)
Sets the value of the Attributes property for this object.
|
void |
setEventType(String eventType)
Sets the value of the EventType property for this object.
|
void |
setMetrics(Map<String,Double> metrics)
Sets the value of the Metrics property for this object.
|
void |
setSession(Session session)
Sets the value of the Session property for this object.
|
void |
setTimestamp(String timestamp)
Sets the value of the Timestamp property for this object.
|
void |
setVersion(String version)
Sets the value of the Version property for this object.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Event |
withAttributes(Map<String,String> attributes)
Sets the value of the Attributes property for this object.
|
Event |
withEventType(String eventType)
Sets the value of the EventType property for this object.
|
Event |
withMetrics(Map<String,Double> metrics)
Sets the value of the Metrics property for this object.
|
Event |
withSession(Session session)
Sets the value of the Session property for this object.
|
Event |
withTimestamp(String timestamp)
Sets the value of the Timestamp property for this object.
|
Event |
withVersion(String version)
Sets the value of the Version property for this object.
|
public String getEventType()
Constraints:
Length: 1 - 50
public void setEventType(String eventType)
Constraints:
Length: 1 - 50
eventType
- The new value for the EventType property for this object.public Event withEventType(String eventType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 50
eventType
- The new value for the EventType property for this object.public String getTimestamp()
public void setTimestamp(String timestamp)
timestamp
- The new value for the Timestamp property for this object.public Event withTimestamp(String timestamp)
Returns a reference to this object so that method calls can be chained together.
timestamp
- The new value for the Timestamp property for this object.public Session getSession()
public void setSession(Session session)
session
- The new value for the Session property for this object.public Event withSession(Session session)
Returns a reference to this object so that method calls can be chained together.
session
- The new value for the Session property for this object.public String getVersion()
Constraints:
Length: 1 - 10
public void setVersion(String version)
Constraints:
Length: 1 - 10
version
- The new value for the Version property for this object.public Event withVersion(String version)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 10
version
- The new value for the Version property for this object.public Map<String,String> getAttributes()
Constraints:
Length: 0 - 50
public void setAttributes(Map<String,String> attributes)
Constraints:
Length: 0 - 50
attributes
- The new value for the Attributes property for this object.public Event withAttributes(Map<String,String> attributes)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 50
attributes
- The new value for the Attributes property for this object.public Event addAttributesEntry(String key, String value)
The method adds a new key-value pair into Attributes parameter, and returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 50
key
- The key of the entry to be added into Attributes.value
- The corresponding value of the entry to be added into Attributes.public Event clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public Map<String,Double> getMetrics()
Constraints:
Length: 0 - 50
public void setMetrics(Map<String,Double> metrics)
Constraints:
Length: 0 - 50
metrics
- The new value for the Metrics property for this object.public Event withMetrics(Map<String,Double> metrics)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 50
metrics
- The new value for the Metrics property for this object.public Event addMetricsEntry(String key, Double value)
The method adds a new key-value pair into Metrics parameter, and returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 50
key
- The key of the entry to be added into Metrics.value
- The corresponding value of the entry to be added into Metrics.public Event clearMetricsEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.