Interface Event.Builder

    • 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 the Entity.Builder avoiding the need to create one manually via Entity.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #entities(List).

        Parameters:
        entities - a consumer that will call methods on Entity.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #entities(java.util.Collection)