@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Event extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
addAttributesEntry(String key,
String value) |
Event |
addMetricsEntry(String key,
Double value) |
Event |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
Event |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
Event |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
Custom attributes that are associated with the event you're adding or updating.
|
String |
getClientSdkVersion()
The version of the SDK that's running on the client device.
|
String |
getEventType()
The name of the custom event that you're recording.
|
Map<String,Double> |
getMetrics()
Event metrics
|
Session |
getSession()
The session
|
String |
getTimestamp()
The date and time when the event occurred, in ISO 8601 format.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttributes(Map<String,String> attributes)
Custom attributes that are associated with the event you're adding or updating.
|
void |
setClientSdkVersion(String clientSdkVersion)
The version of the SDK that's running on the client device.
|
void |
setEventType(String eventType)
The name of the custom event that you're recording.
|
void |
setMetrics(Map<String,Double> metrics)
Event metrics
|
void |
setSession(Session session)
The session
|
void |
setTimestamp(String timestamp)
The date and time when the event occurred, in ISO 8601 format.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Event |
withAttributes(Map<String,String> attributes)
Custom attributes that are associated with the event you're adding or updating.
|
Event |
withClientSdkVersion(String clientSdkVersion)
The version of the SDK that's running on the client device.
|
Event |
withEventType(String eventType)
The name of the custom event that you're recording.
|
Event |
withMetrics(Map<String,Double> metrics)
Event metrics
|
Event |
withSession(Session session)
The session
|
Event |
withTimestamp(String timestamp)
The date and time when the event occurred, in ISO 8601 format.
|
public Map<String,String> getAttributes()
public void setAttributes(Map<String,String> attributes)
attributes
- Custom attributes that are associated with the event you're adding or updating.public Event withAttributes(Map<String,String> attributes)
attributes
- Custom attributes that are associated with the event you're adding or updating.public Event clearAttributesEntries()
public void setClientSdkVersion(String clientSdkVersion)
clientSdkVersion
- The version of the SDK that's running on the client device.public String getClientSdkVersion()
public Event withClientSdkVersion(String clientSdkVersion)
clientSdkVersion
- The version of the SDK that's running on the client device.public void setEventType(String eventType)
eventType
- The name of the custom event that you're recording.public String getEventType()
public Event withEventType(String eventType)
eventType
- The name of the custom event that you're recording.public void setMetrics(Map<String,Double> metrics)
metrics
- Event metricspublic Event withMetrics(Map<String,Double> metrics)
metrics
- Event metricspublic Event clearMetricsEntries()
public void setSession(Session session)
session
- The sessionpublic Session getSession()
public Event withSession(Session session)
session
- The sessionpublic void setTimestamp(String timestamp)
timestamp
- The date and time when the event occurred, in ISO 8601 format.public String getTimestamp()
public Event withTimestamp(String timestamp)
timestamp
- The date and time when the event occurred, in ISO 8601 format.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.