Interface Event.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Event.Builder,Event>,SdkBuilder<Event.Builder,Event>,SdkPojo
- Enclosing class:
- Event
public static interface Event.Builder extends SdkPojo, CopyableBuilder<Event.Builder,Event>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Event.BuildercurrentLabel(String currentLabel)The label associated with the event.Event.Builderentities(Collection<Entity> entities)The event entities.Event.Builderentities(Consumer<Entity.Builder>... entities)The event entities.Event.Builderentities(Entity... entities)The event entities.Event.BuildereventId(String eventId)The event ID.Event.BuildereventTimestamp(String eventTimestamp)The timestamp that defines when the event under evaluation occurred.Event.BuildereventTypeName(String eventTypeName)The event type.Event.BuildereventVariables(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.BuilderlabelTimestamp(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 Detail
-
eventId
Event.Builder eventId(String 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
Event.Builder eventTypeName(String 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
Event.Builder eventTimestamp(String 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
Event.Builder 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.
- 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
Event.Builder currentLabel(String 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
Event.Builder labelTimestamp(String 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
Event.Builder entities(Collection<Entity> 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
Event.Builder entities(Entity... 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
Event.Builder entities(Consumer<Entity.Builder>... entities)
The event entities.
This is a convenience method that creates an instance of theEntity.Builderavoiding the need to create one manually viaEntity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#entities(List.) - 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:
#entities(java.util.Collection)
-
-