Interface Event.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Event.Builder,
,Event> SdkBuilder<Event.Builder,
,Event> SdkPojo
- Enclosing class:
Event
-
Method Summary
Modifier and TypeMethodDescriptioncurrentLabel
(String currentLabel) The label associated with the event.entities
(Collection<Entity> entities) The event entities.entities
(Consumer<Entity.Builder>... entities) The event entities.The event entities.The event ID.eventTimestamp
(String eventTimestamp) The timestamp that defines when the event under evaluation occurred.eventTypeName
(String eventTypeName) The event type.eventVariables
(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.labelTimestamp
(String labelTimestamp) The timestamp associated with the label to update.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
eventId
The event ID.
- Parameters:
eventId
- The event ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventTypeName
The event type.
- Parameters:
eventTypeName
- The event type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventTimestamp
The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
- Parameters:
eventTimestamp
- The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentLabel
The label associated with the event.
- Parameters:
currentLabel
- The label associated with the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labelTimestamp
The timestamp associated with the label to update. The timestamp must be specified using ISO 8601 standard in UTC.
- Parameters:
labelTimestamp
- The timestamp associated with the label to update. The timestamp must be specified using ISO 8601 standard in UTC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
The event entities.
- Parameters:
entities
- The event entities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
The event entities.
- Parameters:
entities
- The event entities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
The event entities.
This is a convenience method that creates an instance of theEntity.Builder
avoiding the need to create one manually viaEntity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toentities(List<Entity>)
.- Parameters:
entities
- a consumer that will call methods onEntity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-