/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace VoiceID { namespace Model { /** *

The fraud detection configuration to be used during the batch speaker * enrollment job.

See Also:

AWS * API Reference

*/ class EnrollmentJobFraudDetectionConfig { public: AWS_VOICEID_API EnrollmentJobFraudDetectionConfig(); AWS_VOICEID_API EnrollmentJobFraudDetectionConfig(Aws::Utils::Json::JsonView jsonValue); AWS_VOICEID_API EnrollmentJobFraudDetectionConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_VOICEID_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The action to take when the given speaker is flagged by the fraud detection * system. The default value is FAIL, which fails the speaker * enrollment. Changing this value to IGNORE results in the speaker * being enrolled even if they are flagged by the fraud detection system.

*/ inline const FraudDetectionAction& GetFraudDetectionAction() const{ return m_fraudDetectionAction; } /** *

The action to take when the given speaker is flagged by the fraud detection * system. The default value is FAIL, which fails the speaker * enrollment. Changing this value to IGNORE results in the speaker * being enrolled even if they are flagged by the fraud detection system.

*/ inline bool FraudDetectionActionHasBeenSet() const { return m_fraudDetectionActionHasBeenSet; } /** *

The action to take when the given speaker is flagged by the fraud detection * system. The default value is FAIL, which fails the speaker * enrollment. Changing this value to IGNORE results in the speaker * being enrolled even if they are flagged by the fraud detection system.

*/ inline void SetFraudDetectionAction(const FraudDetectionAction& value) { m_fraudDetectionActionHasBeenSet = true; m_fraudDetectionAction = value; } /** *

The action to take when the given speaker is flagged by the fraud detection * system. The default value is FAIL, which fails the speaker * enrollment. Changing this value to IGNORE results in the speaker * being enrolled even if they are flagged by the fraud detection system.

*/ inline void SetFraudDetectionAction(FraudDetectionAction&& value) { m_fraudDetectionActionHasBeenSet = true; m_fraudDetectionAction = std::move(value); } /** *

The action to take when the given speaker is flagged by the fraud detection * system. The default value is FAIL, which fails the speaker * enrollment. Changing this value to IGNORE results in the speaker * being enrolled even if they are flagged by the fraud detection system.

*/ inline EnrollmentJobFraudDetectionConfig& WithFraudDetectionAction(const FraudDetectionAction& value) { SetFraudDetectionAction(value); return *this;} /** *

The action to take when the given speaker is flagged by the fraud detection * system. The default value is FAIL, which fails the speaker * enrollment. Changing this value to IGNORE results in the speaker * being enrolled even if they are flagged by the fraud detection system.

*/ inline EnrollmentJobFraudDetectionConfig& WithFraudDetectionAction(FraudDetectionAction&& value) { SetFraudDetectionAction(std::move(value)); return *this;} /** *

Threshold value for determining whether the speaker is a high risk to be * fraudulent. If the detected risk score calculated by Voice ID is greater than or * equal to the threshold, the speaker is considered a fraudster.

*/ inline int GetRiskThreshold() const{ return m_riskThreshold; } /** *

Threshold value for determining whether the speaker is a high risk to be * fraudulent. If the detected risk score calculated by Voice ID is greater than or * equal to the threshold, the speaker is considered a fraudster.

*/ inline bool RiskThresholdHasBeenSet() const { return m_riskThresholdHasBeenSet; } /** *

Threshold value for determining whether the speaker is a high risk to be * fraudulent. If the detected risk score calculated by Voice ID is greater than or * equal to the threshold, the speaker is considered a fraudster.

*/ inline void SetRiskThreshold(int value) { m_riskThresholdHasBeenSet = true; m_riskThreshold = value; } /** *

Threshold value for determining whether the speaker is a high risk to be * fraudulent. If the detected risk score calculated by Voice ID is greater than or * equal to the threshold, the speaker is considered a fraudster.

*/ inline EnrollmentJobFraudDetectionConfig& WithRiskThreshold(int value) { SetRiskThreshold(value); return *this;} /** *

The identifier of watchlists against which fraud detection is performed.

*/ inline const Aws::Vector& GetWatchlistIds() const{ return m_watchlistIds; } /** *

The identifier of watchlists against which fraud detection is performed.

*/ inline bool WatchlistIdsHasBeenSet() const { return m_watchlistIdsHasBeenSet; } /** *

The identifier of watchlists against which fraud detection is performed.

*/ inline void SetWatchlistIds(const Aws::Vector& value) { m_watchlistIdsHasBeenSet = true; m_watchlistIds = value; } /** *

The identifier of watchlists against which fraud detection is performed.

*/ inline void SetWatchlistIds(Aws::Vector&& value) { m_watchlistIdsHasBeenSet = true; m_watchlistIds = std::move(value); } /** *

The identifier of watchlists against which fraud detection is performed.

*/ inline EnrollmentJobFraudDetectionConfig& WithWatchlistIds(const Aws::Vector& value) { SetWatchlistIds(value); return *this;} /** *

The identifier of watchlists against which fraud detection is performed.

*/ inline EnrollmentJobFraudDetectionConfig& WithWatchlistIds(Aws::Vector&& value) { SetWatchlistIds(std::move(value)); return *this;} /** *

The identifier of watchlists against which fraud detection is performed.

*/ inline EnrollmentJobFraudDetectionConfig& AddWatchlistIds(const Aws::String& value) { m_watchlistIdsHasBeenSet = true; m_watchlistIds.push_back(value); return *this; } /** *

The identifier of watchlists against which fraud detection is performed.

*/ inline EnrollmentJobFraudDetectionConfig& AddWatchlistIds(Aws::String&& value) { m_watchlistIdsHasBeenSet = true; m_watchlistIds.push_back(std::move(value)); return *this; } /** *

The identifier of watchlists against which fraud detection is performed.

*/ inline EnrollmentJobFraudDetectionConfig& AddWatchlistIds(const char* value) { m_watchlistIdsHasBeenSet = true; m_watchlistIds.push_back(value); return *this; } private: FraudDetectionAction m_fraudDetectionAction; bool m_fraudDetectionActionHasBeenSet = false; int m_riskThreshold; bool m_riskThresholdHasBeenSet = false; Aws::Vector m_watchlistIds; bool m_watchlistIdsHasBeenSet = false; }; } // namespace Model } // namespace VoiceID } // namespace Aws