Interface EnrollmentConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EnrollmentConfig.Builder,
,EnrollmentConfig> SdkBuilder<EnrollmentConfig.Builder,
,EnrollmentConfig> SdkPojo
- Enclosing class:
EnrollmentConfig
-
Method Summary
Modifier and TypeMethodDescriptionexistingEnrollmentAction
(String existingEnrollmentAction) The action to take when the specified speaker is already enrolled in the specified domain.existingEnrollmentAction
(ExistingEnrollmentAction existingEnrollmentAction) The action to take when the specified speaker is already enrolled in the specified domain.default EnrollmentConfig.Builder
fraudDetectionConfig
(Consumer<EnrollmentJobFraudDetectionConfig.Builder> fraudDetectionConfig) The fraud detection configuration to use for the speaker enrollment job.fraudDetectionConfig
(EnrollmentJobFraudDetectionConfig fraudDetectionConfig) The fraud detection configuration to use for the speaker enrollment job.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
-
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 toOVERWRITE
replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio.- Parameters:
existingEnrollmentAction
- The action to take when the specified speaker is already enrolled in the specified domain. The default value isSKIP
, which skips the enrollment for the existing speaker. Setting the value toOVERWRITE
replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
existingEnrollmentAction
EnrollmentConfig.Builder existingEnrollmentAction(ExistingEnrollmentAction 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 toOVERWRITE
replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio.- Parameters:
existingEnrollmentAction
- The action to take when the specified speaker is already enrolled in the specified domain. The default value isSKIP
, which skips the enrollment for the existing speaker. Setting the value toOVERWRITE
replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fraudDetectionConfig
EnrollmentConfig.Builder fraudDetectionConfig(EnrollmentJobFraudDetectionConfig fraudDetectionConfig) The fraud detection configuration to use for the speaker enrollment job.
- Parameters:
fraudDetectionConfig
- The fraud detection configuration to use for the speaker enrollment job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fraudDetectionConfig
default EnrollmentConfig.Builder fraudDetectionConfig(Consumer<EnrollmentJobFraudDetectionConfig.Builder> fraudDetectionConfig) The fraud detection configuration to use for the speaker enrollment job.
This is a convenience method that creates an instance of theEnrollmentJobFraudDetectionConfig.Builder
avoiding the need to create one manually viaEnrollmentJobFraudDetectionConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofraudDetectionConfig(EnrollmentJobFraudDetectionConfig)
.- Parameters:
fraudDetectionConfig
- a consumer that will call methods onEnrollmentJobFraudDetectionConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-