public static interface FraudDetectionResult.Builder extends SdkPojo, CopyableBuilder<FraudDetectionResult.Builder,FraudDetectionResult>
| Modifier and Type | Method and Description |
|---|---|
FraudDetectionResult.Builder |
audioAggregationEndedAt(Instant audioAggregationEndedAt)
A timestamp indicating when audio aggregation ended for this fraud detection result.
|
FraudDetectionResult.Builder |
audioAggregationStartedAt(Instant audioAggregationStartedAt)
A timestamp indicating when audio aggregation started for this fraud detection result.
|
default FraudDetectionResult.Builder |
configuration(Consumer<FraudDetectionConfiguration.Builder> configuration)
The
FraudDetectionConfiguration used to generate this fraud detection result. |
FraudDetectionResult.Builder |
configuration(FraudDetectionConfiguration configuration)
The
FraudDetectionConfiguration used to generate this fraud detection result. |
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.
|
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.
|
FraudDetectionResult.Builder |
fraudDetectionResultId(String fraudDetectionResultId)
The unique identifier for this fraud detection result.
|
FraudDetectionResult.Builder |
reasons(Collection<FraudDetectionReason> reasons)
The reason speaker was flagged by the fraud detection system.
|
FraudDetectionResult.Builder |
reasons(FraudDetectionReason... reasons)
The reason speaker was flagged by the fraud detection system.
|
FraudDetectionResult.Builder |
reasonsWithStrings(Collection<String> reasons)
The reason speaker was flagged by the fraud detection system.
|
FraudDetectionResult.Builder |
reasonsWithStrings(String... reasons)
The reason speaker was flagged by the fraud detection system.
|
default FraudDetectionResult.Builder |
riskDetails(Consumer<FraudRiskDetails.Builder> riskDetails)
Details about each risk analyzed for this speaker.
|
FraudDetectionResult.Builder |
riskDetails(FraudRiskDetails riskDetails)
Details about each risk analyzed for this speaker.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildFraudDetectionResult.Builder audioAggregationEndedAt(Instant audioAggregationEndedAt)
A timestamp indicating when audio aggregation ended for this fraud detection result.
audioAggregationEndedAt - A timestamp indicating when audio aggregation ended for this fraud detection result.FraudDetectionResult.Builder audioAggregationStartedAt(Instant audioAggregationStartedAt)
A timestamp indicating when audio aggregation started for this fraud detection result.
audioAggregationStartedAt - A timestamp indicating when audio aggregation started for this fraud detection result.FraudDetectionResult.Builder configuration(FraudDetectionConfiguration configuration)
The FraudDetectionConfiguration used to generate this fraud detection result.
configuration - The FraudDetectionConfiguration used to generate this fraud detection result.default FraudDetectionResult.Builder configuration(Consumer<FraudDetectionConfiguration.Builder> configuration)
The FraudDetectionConfiguration used to generate this fraud detection result.
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).
configuration - a consumer that will call methods on FraudDetectionConfiguration.Builderconfiguration(FraudDetectionConfiguration)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.
decision - The fraud detection decision produced by Voice ID, processed against the current session state and
streamed audio of the speaker.FraudDetectionDecision,
FraudDetectionDecisionFraudDetectionResult.Builder decision(FraudDetectionDecision decision)
The fraud detection decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.
decision - The fraud detection decision produced by Voice ID, processed against the current session state and
streamed audio of the speaker.FraudDetectionDecision,
FraudDetectionDecisionFraudDetectionResult.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.
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.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.
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.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.
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.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.
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.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.
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.FraudDetectionResult.Builder riskDetails(FraudRiskDetails riskDetails)
Details about each risk analyzed for this speaker. Currently, this contains KnownFraudsterRisk and VoiceSpoofingRisk details.
riskDetails - Details about each risk analyzed for this speaker. Currently, this contains KnownFraudsterRisk and
VoiceSpoofingRisk details.default FraudDetectionResult.Builder riskDetails(Consumer<FraudRiskDetails.Builder> 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 theFraudRiskDetails.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).
riskDetails - a consumer that will call methods on FraudRiskDetails.BuilderriskDetails(FraudRiskDetails)Copyright © 2022. All rights reserved.