@Generated(value="software.amazon.awssdk:codegen") public final class FraudDetectionResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FraudDetectionResult.Builder,FraudDetectionResult>
The fraud detection result produced by Voice ID, processed against the current session state and streamed audio of the speaker.
| Modifier and Type | Class and Description |
|---|---|
static interface |
FraudDetectionResult.Builder |
| Modifier and Type | Method and Description |
|---|---|
Instant |
audioAggregationEndedAt()
A timestamp of when audio aggregation ended for this fraud detection result.
|
Instant |
audioAggregationStartedAt()
A timestamp of when audio aggregation started for this fraud detection result.
|
static FraudDetectionResult.Builder |
builder() |
FraudDetectionConfiguration |
configuration()
The
FraudDetectionConfiguration used to generate this fraud detection result. |
FraudDetectionDecision |
decision()
The fraud detection decision produced by Voice ID, processed against the current session state and streamed audio
of the speaker.
|
String |
decisionAsString()
The fraud detection decision produced by Voice ID, processed against the current session state and streamed audio
of the speaker.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
fraudDetectionResultId()
The unique identifier for this fraud detection result.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasReasons()
For responses, this returns true if the service returned a value for the Reasons property.
|
List<FraudDetectionReason> |
reasons()
The reason speaker was flagged by the fraud detection system.
|
List<String> |
reasonsAsStrings()
The reason speaker was flagged by the fraud detection system.
|
FraudRiskDetails |
riskDetails()
Details about each risk analyzed for this speaker.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends FraudDetectionResult.Builder> |
serializableBuilderClass() |
FraudDetectionResult.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Instant audioAggregationEndedAt()
A timestamp of when audio aggregation ended for this fraud detection result.
public final Instant audioAggregationStartedAt()
A timestamp of when audio aggregation started for this fraud detection result.
public final FraudDetectionConfiguration configuration()
The FraudDetectionConfiguration used to generate this fraud detection result.
FraudDetectionConfiguration used to generate this fraud detection result.public final FraudDetectionDecision decision()
The fraud detection decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.
If the service returns an enum value that is not available in the current SDK version, decision will
return FraudDetectionDecision.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from decisionAsString().
FraudDetectionDecisionpublic final String decisionAsString()
The fraud detection decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.
If the service returns an enum value that is not available in the current SDK version, decision will
return FraudDetectionDecision.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from decisionAsString().
FraudDetectionDecisionpublic final 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.
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasReasons() method.
HIGH_RISK, and the following possible values:
KNOWN_FRAUDSTER and VOICE_SPOOFING.public final boolean hasReasons()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> reasonsAsStrings()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasReasons() method.
HIGH_RISK, and the following possible values:
KNOWN_FRAUDSTER and VOICE_SPOOFING.public final FraudRiskDetails riskDetails()
Details about each risk analyzed for this speaker. Currently, this contains KnownFraudsterRisk and VoiceSpoofingRisk details.
public FraudDetectionResult.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<FraudDetectionResult.Builder,FraudDetectionResult>public static FraudDetectionResult.Builder builder()
public static Class<? extends FraudDetectionResult.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.