Interface SendEventRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<SendEventRequest.Builder,SendEventRequest>, FraudDetectorRequest.Builder, SdkBuilder<SendEventRequest.Builder,SendEventRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
SendEventRequest

public static interface SendEventRequest.Builder extends FraudDetectorRequest.Builder, SdkPojo, CopyableBuilder<SendEventRequest.Builder,SendEventRequest>
  • Method Details

    • eventId

      SendEventRequest.Builder eventId(String eventId)

      The event ID to upload.

      Parameters:
      eventId - The event ID to upload.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventTypeName

      SendEventRequest.Builder eventTypeName(String eventTypeName)

      The event type name of the event.

      Parameters:
      eventTypeName - The event type name of the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventTimestamp

      SendEventRequest.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

      SendEventRequest.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.
    • assignedLabel

      SendEventRequest.Builder assignedLabel(String assignedLabel)

      The label to associate with the event. Required if specifying labelTimestamp.

      Parameters:
      assignedLabel - The label to associate with the event. Required if specifying labelTimestamp.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • labelTimestamp

      SendEventRequest.Builder labelTimestamp(String labelTimestamp)

      The timestamp associated with the label. Required if specifying assignedLabel.

      Parameters:
      labelTimestamp - The timestamp associated with the label. Required if specifying assignedLabel.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entities

      An array of entities.

      Parameters:
      entities - An array of entities.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entities

      SendEventRequest.Builder entities(Entity... entities)

      An array of entities.

      Parameters:
      entities - An array of entities.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entities

      An array of 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<Entity>).

      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:
    • overrideConfiguration

      SendEventRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.