@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Event extends Object implements Serializable, Cloneable, StructuredPojo
The event details.
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
addEventVariablesEntry(String key,
String value)
Add a single EventVariables entry
|
Event |
clearEventVariablesEntries()
Removes all the entries added into EventVariables.
|
Event |
clone() |
boolean |
equals(Object obj) |
String |
getCurrentLabel()
The label associated with the event.
|
List<Entity> |
getEntities()
The event entities.
|
String |
getEventId()
The event ID.
|
String |
getEventTimestamp()
The timestamp that defines when the event under evaluation occurred.
|
String |
getEventTypeName()
The event type.
|
Map<String,String> |
getEventVariables()
Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their
corresponding values for the event you are sending for evaluation.
|
String |
getLabelTimestamp()
The timestamp associated with the label to update.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCurrentLabel(String currentLabel)
The label associated with the event.
|
void |
setEntities(Collection<Entity> entities)
The event entities.
|
void |
setEventId(String eventId)
The event ID.
|
void |
setEventTimestamp(String eventTimestamp)
The timestamp that defines when the event under evaluation occurred.
|
void |
setEventTypeName(String eventTypeName)
The event type.
|
void |
setEventVariables(Map<String,String> eventVariables)
Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their
corresponding values for the event you are sending for evaluation.
|
void |
setLabelTimestamp(String labelTimestamp)
The timestamp associated with the label to update.
|
String |
toString()
Returns a string representation of this object.
|
Event |
withCurrentLabel(String currentLabel)
The label associated with the event.
|
Event |
withEntities(Collection<Entity> entities)
The event entities.
|
Event |
withEntities(Entity... entities)
The event entities.
|
Event |
withEventId(String eventId)
The event ID.
|
Event |
withEventTimestamp(String eventTimestamp)
The timestamp that defines when the event under evaluation occurred.
|
Event |
withEventTypeName(String eventTypeName)
The event type.
|
Event |
withEventVariables(Map<String,String> eventVariables)
Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their
corresponding values for the event you are sending for evaluation.
|
Event |
withLabelTimestamp(String labelTimestamp)
The timestamp associated with the label to update.
|
public void setEventId(String eventId)
The event ID.
eventId
- The event ID.public String getEventId()
The event ID.
public Event withEventId(String eventId)
The event ID.
eventId
- The event ID.public void setEventTypeName(String eventTypeName)
The event type.
eventTypeName
- The event type.public String getEventTypeName()
The event type.
public Event withEventTypeName(String eventTypeName)
The event type.
eventTypeName
- The event type.public void setEventTimestamp(String eventTimestamp)
The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
eventTimestamp
- The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using
ISO 8601 standard in UTC.public String getEventTimestamp()
The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
public Event withEventTimestamp(String eventTimestamp)
The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
eventTimestamp
- The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using
ISO 8601 standard in UTC.public Map<String,String> getEventVariables()
Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.
public void setEventVariables(Map<String,String> eventVariables)
Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.
eventVariables
- Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and
their corresponding values for the event you are sending for evaluation.public Event withEventVariables(Map<String,String> eventVariables)
Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.
eventVariables
- Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and
their corresponding values for the event you are sending for evaluation.public Event addEventVariablesEntry(String key, String value)
public Event clearEventVariablesEntries()
public void setCurrentLabel(String currentLabel)
The label associated with the event.
currentLabel
- The label associated with the event.public String getCurrentLabel()
The label associated with the event.
public Event withCurrentLabel(String currentLabel)
The label associated with the event.
currentLabel
- The label associated with the event.public void setLabelTimestamp(String labelTimestamp)
The timestamp associated with the label to update. The timestamp must be specified using ISO 8601 standard in UTC.
labelTimestamp
- The timestamp associated with the label to update. The timestamp must be specified using ISO 8601 standard
in UTC.public String getLabelTimestamp()
The timestamp associated with the label to update. The timestamp must be specified using ISO 8601 standard in UTC.
public Event withLabelTimestamp(String labelTimestamp)
The timestamp associated with the label to update. The timestamp must be specified using ISO 8601 standard in UTC.
labelTimestamp
- The timestamp associated with the label to update. The timestamp must be specified using ISO 8601 standard
in UTC.public void setEntities(Collection<Entity> entities)
The event entities.
entities
- The event entities.public Event withEntities(Entity... entities)
The event entities.
NOTE: This method appends the values to the existing list (if any). Use
setEntities(java.util.Collection)
or withEntities(java.util.Collection)
if you want to override
the existing values.
entities
- The event entities.public Event withEntities(Collection<Entity> entities)
The event entities.
entities
- The event entities.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.