Interface FraudDetectionResult.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FraudDetectionResult.Builder,
,FraudDetectionResult> SdkBuilder<FraudDetectionResult.Builder,
,FraudDetectionResult> SdkPojo
- Enclosing class:
FraudDetectionResult
-
Method Summary
Modifier and TypeMethodDescriptionaudioAggregationEndedAt
(Instant audioAggregationEndedAt) A timestamp of when audio aggregation ended for this fraud detection result.audioAggregationStartedAt
(Instant audioAggregationStartedAt) A timestamp of when audio aggregation started for this fraud detection result.default FraudDetectionResult.Builder
configuration
(Consumer<FraudDetectionConfiguration.Builder> configuration) TheFraudDetectionConfiguration
used to generate this fraud detection result.configuration
(FraudDetectionConfiguration configuration) TheFraudDetectionConfiguration
used to generate this fraud detection result.The fraud detection decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.decision
(FraudDetectionDecision decision) The fraud detection decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.fraudDetectionResultId
(String fraudDetectionResultId) The unique identifier for this fraud detection result.reasons
(Collection<FraudDetectionReason> reasons) The reason speaker was flagged by the fraud detection system.reasons
(FraudDetectionReason... reasons) The reason speaker was flagged by the fraud detection system.reasonsWithStrings
(String... reasons) The reason speaker was flagged by the fraud detection system.reasonsWithStrings
(Collection<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.riskDetails
(FraudRiskDetails riskDetails) Details about each risk analyzed for this speaker.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
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
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
- TheFraudDetectionConfiguration
used to generate this fraud detection result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default FraudDetectionResult.Builder configuration(Consumer<FraudDetectionConfiguration.Builder> configuration) The
This is a convenience method that creates an instance of theFraudDetectionConfiguration
used to generate this fraud detection result.FraudDetectionConfiguration.Builder
avoiding the need to create one manually viaFraudDetectionConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfiguration(FraudDetectionConfiguration)
.- Parameters:
configuration
- a consumer that will call methods onFraudDetectionConfiguration.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
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
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
andVOICE_SPOOFING
.- Parameters:
reasons
- The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision isHIGH_RISK
, and the following possible values:KNOWN_FRAUDSTER
andVOICE_SPOOFING
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reasonsWithStrings
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
andVOICE_SPOOFING
.- Parameters:
reasons
- The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision isHIGH_RISK
, and the following possible values:KNOWN_FRAUDSTER
andVOICE_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
andVOICE_SPOOFING
.- Parameters:
reasons
- The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision isHIGH_RISK
, and the following possible values:KNOWN_FRAUDSTER
andVOICE_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
andVOICE_SPOOFING
.- Parameters:
reasons
- The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision isHIGH_RISK
, and the following possible values:KNOWN_FRAUDSTER
andVOICE_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 theFraudRiskDetails.Builder
avoiding the need to create one manually viaFraudRiskDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toriskDetails(FraudRiskDetails)
.- Parameters:
riskDetails
- a consumer that will call methods onFraudRiskDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-