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 Summary
Modifier and TypeMethodDescriptionassignedLabel
(String assignedLabel) The label to associate with the event.entities
(Collection<Entity> entities) An array of entities.entities
(Consumer<Entity.Builder>... entities) An array of entities.An array of entities.The event ID to upload.eventTimestamp
(String eventTimestamp) The timestamp that defines when the event under evaluation occurred.eventTypeName
(String eventTypeName) The event type name of the event.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.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.frauddetector.model.FraudDetectorRequest.Builder
build
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 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
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
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.
-
assignedLabel
The label to associate with the event. Required if specifying
labelTimestamp
.- Parameters:
assignedLabel
- The label to associate with the event. Required if specifyinglabelTimestamp
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labelTimestamp
The timestamp associated with the label. Required if specifying
assignedLabel
.- Parameters:
labelTimestamp
- The timestamp associated with the label. Required if specifyingassignedLabel
.- 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
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 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:
-
overrideConfiguration
SendEventRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SendEventRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-