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

Contains configurations defining enrollment behavior for the batch * job.

See Also:

AWS * API Reference

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

The action to take when the specified speaker is already enrolled in the * specified domain. The default value is SKIP, which skips the * enrollment for the existing speaker. Setting the value to OVERWRITE * replaces the existing voice prints and enrollment audio stored for that speaker * with new data generated from the latest audio.

*/ inline const ExistingEnrollmentAction& GetExistingEnrollmentAction() const{ return m_existingEnrollmentAction; } /** *

The action to take when the specified speaker is already enrolled in the * specified domain. The default value is SKIP, which skips the * enrollment for the existing speaker. Setting the value to OVERWRITE * replaces the existing voice prints and enrollment audio stored for that speaker * with new data generated from the latest audio.

*/ inline bool ExistingEnrollmentActionHasBeenSet() const { return m_existingEnrollmentActionHasBeenSet; } /** *

The action to take when the specified speaker is already enrolled in the * specified domain. The default value is SKIP, which skips the * enrollment for the existing speaker. Setting the value to OVERWRITE * replaces the existing voice prints and enrollment audio stored for that speaker * with new data generated from the latest audio.

*/ inline void SetExistingEnrollmentAction(const ExistingEnrollmentAction& value) { m_existingEnrollmentActionHasBeenSet = true; m_existingEnrollmentAction = value; } /** *

The action to take when the specified speaker is already enrolled in the * specified domain. The default value is SKIP, which skips the * enrollment for the existing speaker. Setting the value to OVERWRITE * replaces the existing voice prints and enrollment audio stored for that speaker * with new data generated from the latest audio.

*/ inline void SetExistingEnrollmentAction(ExistingEnrollmentAction&& value) { m_existingEnrollmentActionHasBeenSet = true; m_existingEnrollmentAction = std::move(value); } /** *

The action to take when the specified speaker is already enrolled in the * specified domain. The default value is SKIP, which skips the * enrollment for the existing speaker. Setting the value to OVERWRITE * replaces the existing voice prints and enrollment audio stored for that speaker * with new data generated from the latest audio.

*/ inline EnrollmentConfig& WithExistingEnrollmentAction(const ExistingEnrollmentAction& value) { SetExistingEnrollmentAction(value); return *this;} /** *

The action to take when the specified speaker is already enrolled in the * specified domain. The default value is SKIP, which skips the * enrollment for the existing speaker. Setting the value to OVERWRITE * replaces the existing voice prints and enrollment audio stored for that speaker * with new data generated from the latest audio.

*/ inline EnrollmentConfig& WithExistingEnrollmentAction(ExistingEnrollmentAction&& value) { SetExistingEnrollmentAction(std::move(value)); return *this;} /** *

The fraud detection configuration to use for the speaker enrollment job.

*/ inline const EnrollmentJobFraudDetectionConfig& GetFraudDetectionConfig() const{ return m_fraudDetectionConfig; } /** *

The fraud detection configuration to use for the speaker enrollment job.

*/ inline bool FraudDetectionConfigHasBeenSet() const { return m_fraudDetectionConfigHasBeenSet; } /** *

The fraud detection configuration to use for the speaker enrollment job.

*/ inline void SetFraudDetectionConfig(const EnrollmentJobFraudDetectionConfig& value) { m_fraudDetectionConfigHasBeenSet = true; m_fraudDetectionConfig = value; } /** *

The fraud detection configuration to use for the speaker enrollment job.

*/ inline void SetFraudDetectionConfig(EnrollmentJobFraudDetectionConfig&& value) { m_fraudDetectionConfigHasBeenSet = true; m_fraudDetectionConfig = std::move(value); } /** *

The fraud detection configuration to use for the speaker enrollment job.

*/ inline EnrollmentConfig& WithFraudDetectionConfig(const EnrollmentJobFraudDetectionConfig& value) { SetFraudDetectionConfig(value); return *this;} /** *

The fraud detection configuration to use for the speaker enrollment job.

*/ inline EnrollmentConfig& WithFraudDetectionConfig(EnrollmentJobFraudDetectionConfig&& value) { SetFraudDetectionConfig(std::move(value)); return *this;} private: ExistingEnrollmentAction m_existingEnrollmentAction; bool m_existingEnrollmentActionHasBeenSet = false; EnrollmentJobFraudDetectionConfig m_fraudDetectionConfig; bool m_fraudDetectionConfigHasBeenSet = false; }; } // namespace Model } // namespace VoiceID } // namespace Aws