@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Event extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains the information about one evaluation event or custom event sent to Evidently. This is a JSON payload. If this event specifies a pre-defined event type, the payload must follow the defined event schema.
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
clone() |
boolean |
equals(Object obj) |
String |
getData()
The event data.
|
Date |
getTimestamp()
The timestamp of the event.
|
String |
getType()
aws.evidently.evaluation specifies an evaluation event, which determines which feature variation
that a user sees. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setData(String data)
The event data.
|
void |
setTimestamp(Date timestamp)
The timestamp of the event.
|
void |
setType(String type)
aws.evidently.evaluation specifies an evaluation event, which determines which feature variation
that a user sees. |
String |
toString()
Returns a string representation of this object.
|
Event |
withData(String data)
The event data.
|
Event |
withTimestamp(Date timestamp)
The timestamp of the event.
|
Event |
withType(EventType type)
aws.evidently.evaluation specifies an evaluation event, which determines which feature variation
that a user sees. |
Event |
withType(String type)
aws.evidently.evaluation specifies an evaluation event, which determines which feature variation
that a user sees. |
public void setData(String data)
The event data.
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
data
- The event data.public String getData()
The event data.
This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
public Event withData(String data)
The event data.
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
data
- The event data.public void setTimestamp(Date timestamp)
The timestamp of the event.
timestamp
- The timestamp of the event.public Date getTimestamp()
The timestamp of the event.
public Event withTimestamp(Date timestamp)
The timestamp of the event.
timestamp
- The timestamp of the event.public void setType(String type)
aws.evidently.evaluation
specifies an evaluation event, which determines which feature variation
that a user sees. aws.evidently.custom
specifies a custom event, which generates metrics from user
actions such as clicks and checkouts.
type
- aws.evidently.evaluation
specifies an evaluation event, which determines which feature
variation that a user sees. aws.evidently.custom
specifies a custom event, which generates
metrics from user actions such as clicks and checkouts.EventType
public String getType()
aws.evidently.evaluation
specifies an evaluation event, which determines which feature variation
that a user sees. aws.evidently.custom
specifies a custom event, which generates metrics from user
actions such as clicks and checkouts.
aws.evidently.evaluation
specifies an evaluation event, which determines which feature
variation that a user sees. aws.evidently.custom
specifies a custom event, which generates
metrics from user actions such as clicks and checkouts.EventType
public Event withType(String type)
aws.evidently.evaluation
specifies an evaluation event, which determines which feature variation
that a user sees. aws.evidently.custom
specifies a custom event, which generates metrics from user
actions such as clicks and checkouts.
type
- aws.evidently.evaluation
specifies an evaluation event, which determines which feature
variation that a user sees. aws.evidently.custom
specifies a custom event, which generates
metrics from user actions such as clicks and checkouts.EventType
public Event withType(EventType type)
aws.evidently.evaluation
specifies an evaluation event, which determines which feature variation
that a user sees. aws.evidently.custom
specifies a custom event, which generates metrics from user
actions such as clicks and checkouts.
type
- aws.evidently.evaluation
specifies an evaluation event, which determines which feature
variation that a user sees. aws.evidently.custom
specifies a custom event, which generates
metrics from user actions such as clicks and checkouts.EventType
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.