Interface GetEventPredictionResponse.Builder

    • Method Detail

      • modelScores

        GetEventPredictionResponse.Builder modelScores​(Collection<ModelScores> modelScores)

        The model scores. Amazon Fraud Detector generates model scores between 0 and 1000, where 0 is low fraud risk and 1000 is high fraud risk. Model scores are directly related to the false positive rate (FPR). For example, a score of 600 corresponds to an estimated 10% false positive rate whereas a score of 900 corresponds to an estimated 2% false positive rate.

        Parameters:
        modelScores - The model scores. Amazon Fraud Detector generates model scores between 0 and 1000, where 0 is low fraud risk and 1000 is high fraud risk. Model scores are directly related to the false positive rate (FPR). For example, a score of 600 corresponds to an estimated 10% false positive rate whereas a score of 900 corresponds to an estimated 2% false positive rate.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • modelScores

        GetEventPredictionResponse.Builder modelScores​(ModelScores... modelScores)

        The model scores. Amazon Fraud Detector generates model scores between 0 and 1000, where 0 is low fraud risk and 1000 is high fraud risk. Model scores are directly related to the false positive rate (FPR). For example, a score of 600 corresponds to an estimated 10% false positive rate whereas a score of 900 corresponds to an estimated 2% false positive rate.

        Parameters:
        modelScores - The model scores. Amazon Fraud Detector generates model scores between 0 and 1000, where 0 is low fraud risk and 1000 is high fraud risk. Model scores are directly related to the false positive rate (FPR). For example, a score of 600 corresponds to an estimated 10% false positive rate whereas a score of 900 corresponds to an estimated 2% false positive rate.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • modelScores

        GetEventPredictionResponse.Builder modelScores​(Consumer<ModelScores.Builder>... modelScores)

        The model scores. Amazon Fraud Detector generates model scores between 0 and 1000, where 0 is low fraud risk and 1000 is high fraud risk. Model scores are directly related to the false positive rate (FPR). For example, a score of 600 corresponds to an estimated 10% false positive rate whereas a score of 900 corresponds to an estimated 2% false positive rate.

        This is a convenience method that creates an instance of the ModelScores.Builder avoiding the need to create one manually via ModelScores.builder().

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

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

        GetEventPredictionResponse.Builder ruleResults​(Collection<RuleResult> ruleResults)

        The results from the rules.

        Parameters:
        ruleResults - The results from the rules.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ruleResults

        GetEventPredictionResponse.Builder ruleResults​(RuleResult... ruleResults)

        The results from the rules.

        Parameters:
        ruleResults - The results from the rules.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • externalModelOutputs

        GetEventPredictionResponse.Builder externalModelOutputs​(Collection<ExternalModelOutputs> externalModelOutputs)

        The model scores for Amazon SageMaker models.

        Parameters:
        externalModelOutputs - The model scores for Amazon SageMaker models.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • externalModelOutputs

        GetEventPredictionResponse.Builder externalModelOutputs​(ExternalModelOutputs... externalModelOutputs)

        The model scores for Amazon SageMaker models.

        Parameters:
        externalModelOutputs - The model scores for Amazon SageMaker models.
        Returns:
        Returns a reference to this object so that method calls can be chained together.