Interface GetEventPredictionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<GetEventPredictionRequest.Builder,
,GetEventPredictionRequest> FraudDetectorRequest.Builder
,SdkBuilder<GetEventPredictionRequest.Builder,
,GetEventPredictionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetEventPredictionRequest
-
Method Summary
Modifier and TypeMethodDescriptiondetectorId
(String detectorId) The detector ID.detectorVersionId
(String detectorVersionId) The detector version ID.entities
(Collection<Entity> entities) The entity type (associated with the detector's event type) and specific entity ID representing who performed the event.entities
(Consumer<Entity.Builder>... entities) The entity type (associated with the detector's event type) and specific entity ID representing who performed the event.The entity type (associated with the detector's event type) and specific entity ID representing who performed the event.The unique ID used to identify the event.eventTimestamp
(String eventTimestamp) Timestamp that defines when the event under evaluation occurred.eventTypeName
(String eventTypeName) The event type associated with the detector specified for the prediction.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.externalModelEndpointDataBlobs
(Map<String, ModelEndpointDataBlob> externalModelEndpointDataBlobs) The Amazon SageMaker model endpoint input data blobs.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
-
detectorId
The detector ID.
- Parameters:
detectorId
- The detector ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
detectorVersionId
The detector version ID.
- Parameters:
detectorVersionId
- The detector version ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventId
The unique ID used to identify the event.
- Parameters:
eventId
- The unique ID used to identify the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventTypeName
The event type associated with the detector specified for the prediction.
- Parameters:
eventTypeName
- The event type associated with the detector specified for the prediction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
The entity type (associated with the detector's event type) and specific entity ID representing who performed the event. If an entity id is not available, use "UNKNOWN."
- Parameters:
entities
- The entity type (associated with the detector's event type) and specific entity ID representing who performed the event. If an entity id is not available, use "UNKNOWN."- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
The entity type (associated with the detector's event type) and specific entity ID representing who performed the event. If an entity id is not available, use "UNKNOWN."
- Parameters:
entities
- The entity type (associated with the detector's event type) and specific entity ID representing who performed the event. If an entity id is not available, use "UNKNOWN."- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
The entity type (associated with the detector's event type) and specific entity ID representing who performed the event. If an entity id is not available, use "UNKNOWN."
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:
-
eventTimestamp
Timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
- Parameters:
eventTimestamp
- 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.
You must provide at least one eventVariable
To ensure most accurate fraud prediction and to simplify your data preparation, Amazon Fraud Detector will replace all missing variables or values as follows:
For Amazon Fraud Detector trained models:
If a null value is provided explicitly for a variable or if a variable is missing, model will replace the null value or the missing variable (no variable name in the eventVariables map) with calculated default mean/medians for numeric variables and with special values for categorical variables.
For imported SageMaker models:
If a null value is provided explicitly for a variable, the model and rules will use “null” as the value. If a variable is not provided (no variable name in the eventVariables map), model and rules will use the default value that is provided for the variable.
- 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.You must provide at least one eventVariable
To ensure most accurate fraud prediction and to simplify your data preparation, Amazon Fraud Detector will replace all missing variables or values as follows:
For Amazon Fraud Detector trained models:
If a null value is provided explicitly for a variable or if a variable is missing, model will replace the null value or the missing variable (no variable name in the eventVariables map) with calculated default mean/medians for numeric variables and with special values for categorical variables.
For imported SageMaker models:
If a null value is provided explicitly for a variable, the model and rules will use “null” as the value. If a variable is not provided (no variable name in the eventVariables map), model and rules will use the default value that is provided for the variable.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
externalModelEndpointDataBlobs
GetEventPredictionRequest.Builder externalModelEndpointDataBlobs(Map<String, ModelEndpointDataBlob> externalModelEndpointDataBlobs) The Amazon SageMaker model endpoint input data blobs.
- Parameters:
externalModelEndpointDataBlobs
- The Amazon SageMaker model endpoint input data blobs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetEventPredictionRequest.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
GetEventPredictionRequest.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.
-