Interface FraudDetectionResult.Builder

    • Method Detail

      • audioAggregationEndedAt

        FraudDetectionResult.Builder audioAggregationEndedAt​(Instant audioAggregationEndedAt)

        A timestamp of when audio aggregation ended for this fraud detection result.

        Parameters:
        audioAggregationEndedAt - A timestamp of when audio aggregation ended for this fraud detection result.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • audioAggregationStartedAt

        FraudDetectionResult.Builder audioAggregationStartedAt​(Instant audioAggregationStartedAt)

        A timestamp of when audio aggregation started for this fraud detection result.

        Parameters:
        audioAggregationStartedAt - A timestamp of when audio aggregation started for this fraud detection result.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • configuration

        FraudDetectionResult.Builder configuration​(FraudDetectionConfiguration configuration)

        The FraudDetectionConfiguration used to generate this fraud detection result.

        Parameters:
        configuration - The FraudDetectionConfiguration used to generate this fraud detection result.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • decision

        FraudDetectionResult.Builder decision​(String decision)

        The fraud detection decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.

        Parameters:
        decision - The fraud detection decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FraudDetectionDecision, FraudDetectionDecision
      • decision

        FraudDetectionResult.Builder decision​(FraudDetectionDecision decision)

        The fraud detection decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.

        Parameters:
        decision - The fraud detection decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FraudDetectionDecision, FraudDetectionDecision
      • fraudDetectionResultId

        FraudDetectionResult.Builder fraudDetectionResultId​(String fraudDetectionResultId)

        The unique identifier for this fraud detection result. Given there can be multiple fraud detections for a given session, this field helps in identifying if the returned result is from previous streaming activity or a new result. Note that in the absence of any new streaming activity or risk threshold changes, Voice ID always returns cached Fraud Detection result for this API.

        Parameters:
        fraudDetectionResultId - The unique identifier for this fraud detection result. Given there can be multiple fraud detections for a given session, this field helps in identifying if the returned result is from previous streaming activity or a new result. Note that in the absence of any new streaming activity or risk threshold changes, Voice ID always returns cached Fraud Detection result for this API.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • reasonsWithStrings

        FraudDetectionResult.Builder reasonsWithStrings​(Collection<String> reasons)

        The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision is HIGH_RISK, and the following possible values: KNOWN_FRAUDSTER and VOICE_SPOOFING.

        Parameters:
        reasons - The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision is HIGH_RISK, and the following possible values: KNOWN_FRAUDSTER and VOICE_SPOOFING.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • reasonsWithStrings

        FraudDetectionResult.Builder reasonsWithStrings​(String... reasons)

        The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision is HIGH_RISK, and the following possible values: KNOWN_FRAUDSTER and VOICE_SPOOFING.

        Parameters:
        reasons - The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision is HIGH_RISK, and the following possible values: KNOWN_FRAUDSTER and VOICE_SPOOFING.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • reasons

        FraudDetectionResult.Builder reasons​(Collection<FraudDetectionReason> reasons)

        The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision is HIGH_RISK, and the following possible values: KNOWN_FRAUDSTER and VOICE_SPOOFING.

        Parameters:
        reasons - The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision is HIGH_RISK, and the following possible values: KNOWN_FRAUDSTER and VOICE_SPOOFING.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • reasons

        FraudDetectionResult.Builder reasons​(FraudDetectionReason... reasons)

        The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision is HIGH_RISK, and the following possible values: KNOWN_FRAUDSTER and VOICE_SPOOFING.

        Parameters:
        reasons - The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision is HIGH_RISK, and the following possible values: KNOWN_FRAUDSTER and VOICE_SPOOFING.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • riskDetails

        FraudDetectionResult.Builder riskDetails​(FraudRiskDetails riskDetails)

        Details about each risk analyzed for this speaker. Currently, this contains KnownFraudsterRisk and VoiceSpoofingRisk details.

        Parameters:
        riskDetails - Details about each risk analyzed for this speaker. Currently, this contains KnownFraudsterRisk and VoiceSpoofingRisk details.
        Returns:
        Returns a reference to this object so that method calls can be chained together.