Interface FraudDetectionResult.Builder

All Superinterfaces:
Buildable, CopyableBuilder<FraudDetectionResult.Builder,FraudDetectionResult>, SdkBuilder<FraudDetectionResult.Builder,FraudDetectionResult>, SdkPojo
Enclosing class:
FraudDetectionResult

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

    • 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

      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.
    • configuration

      The FraudDetectionConfiguration used to generate this fraud detection result.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to configuration(FraudDetectionConfiguration).

      Parameters:
      configuration - a consumer that will call methods on FraudDetectionConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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:
    • 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

      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

      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

      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.
    • riskDetails

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

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to riskDetails(FraudRiskDetails).

      Parameters:
      riskDetails - a consumer that will call methods on FraudRiskDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: