Class VoiceIdBatchSpeakerEnrollmentAction.ErrorInfo.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.voiceid.events.VoiceIdBatchSpeakerEnrollmentAction.ErrorInfo.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VoiceIdBatchSpeakerEnrollmentAction.ErrorInfo>
- Enclosing interface:
VoiceIdBatchSpeakerEnrollmentAction.ErrorInfo
@Stability(Experimental)
public static final class VoiceIdBatchSpeakerEnrollmentAction.ErrorInfo.Builder
extends Object
implements software.amazon.jsii.Builder<VoiceIdBatchSpeakerEnrollmentAction.ErrorInfo>
A builder for
VoiceIdBatchSpeakerEnrollmentAction.ErrorInfo-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofVoiceIdBatchSpeakerEnrollmentAction.ErrorInfo.getErrorCode()errorMessage(List<String> errorMessage) Sets the value ofVoiceIdBatchSpeakerEnrollmentAction.ErrorInfo.getErrorMessage()Sets the value ofVoiceIdBatchSpeakerEnrollmentAction.ErrorInfo.getErrorType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
errorCode
@Stability(Experimental) public VoiceIdBatchSpeakerEnrollmentAction.ErrorInfo.Builder errorCode(List<String> errorCode) Sets the value ofVoiceIdBatchSpeakerEnrollmentAction.ErrorInfo.getErrorCode()- Parameters:
errorCode- errorCode property. Specify an array of string values to match this event if the actual value of errorCode is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
errorMessage
@Stability(Experimental) public VoiceIdBatchSpeakerEnrollmentAction.ErrorInfo.Builder errorMessage(List<String> errorMessage) Sets the value ofVoiceIdBatchSpeakerEnrollmentAction.ErrorInfo.getErrorMessage()- Parameters:
errorMessage- errorMessage property. Specify an array of string values to match this event if the actual value of errorMessage is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
errorType
@Stability(Experimental) public VoiceIdBatchSpeakerEnrollmentAction.ErrorInfo.Builder errorType(List<String> errorType) Sets the value ofVoiceIdBatchSpeakerEnrollmentAction.ErrorInfo.getErrorType()- Parameters:
errorType- errorType property. Specify an array of string values to match this event if the actual value of errorType is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VoiceIdBatchSpeakerEnrollmentAction.ErrorInfo>- Returns:
- a new instance of
VoiceIdBatchSpeakerEnrollmentAction.ErrorInfo - Throws:
NullPointerException- if any required attribute was not provided
-