Interface ConflictException.Builder

  • Method Details

    • conflictType

      ConflictException.Builder conflictType(String conflictType)

      The type of conflict which caused a ConflictException. Possible types and the corresponding error messages are as follows:

      • DOMAIN_NOT_ACTIVE: The domain is not active.

      • CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT: You cannot change the speaker ID after an enrollment has been requested.

      • ENROLLMENT_ALREADY_EXISTS: There is already an enrollment for this session.

      • SPEAKER_NOT_SET: You must set the speaker ID before requesting an enrollment.

      • SPEAKER_OPTED_OUT: You cannot request an enrollment for an opted out speaker.

      • CONCURRENT_CHANGES: The request could not be processed as the resource was modified by another request during execution.

      Parameters:
      conflictType - The type of conflict which caused a ConflictException. Possible types and the corresponding error messages are as follows:

      • DOMAIN_NOT_ACTIVE: The domain is not active.

      • CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT: You cannot change the speaker ID after an enrollment has been requested.

      • ENROLLMENT_ALREADY_EXISTS: There is already an enrollment for this session.

      • SPEAKER_NOT_SET: You must set the speaker ID before requesting an enrollment.

      • SPEAKER_OPTED_OUT: You cannot request an enrollment for an opted out speaker.

      • CONCURRENT_CHANGES: The request could not be processed as the resource was modified by another request during execution.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • conflictType

      ConflictException.Builder conflictType(ConflictType conflictType)

      The type of conflict which caused a ConflictException. Possible types and the corresponding error messages are as follows:

      • DOMAIN_NOT_ACTIVE: The domain is not active.

      • CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT: You cannot change the speaker ID after an enrollment has been requested.

      • ENROLLMENT_ALREADY_EXISTS: There is already an enrollment for this session.

      • SPEAKER_NOT_SET: You must set the speaker ID before requesting an enrollment.

      • SPEAKER_OPTED_OUT: You cannot request an enrollment for an opted out speaker.

      • CONCURRENT_CHANGES: The request could not be processed as the resource was modified by another request during execution.

      Parameters:
      conflictType - The type of conflict which caused a ConflictException. Possible types and the corresponding error messages are as follows:

      • DOMAIN_NOT_ACTIVE: The domain is not active.

      • CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT: You cannot change the speaker ID after an enrollment has been requested.

      • ENROLLMENT_ALREADY_EXISTS: There is already an enrollment for this session.

      • SPEAKER_NOT_SET: You must set the speaker ID before requesting an enrollment.

      • SPEAKER_OPTED_OUT: You cannot request an enrollment for an opted out speaker.

      • CONCURRENT_CHANGES: The request could not be processed as the resource was modified by another request during execution.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • awsErrorDetails

      ConflictException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
      Description copied from interface: AwsServiceException.Builder
      Specifies the additional awsErrorDetails from the service response.
      Specified by:
      awsErrorDetails in interface AwsServiceException.Builder
      Specified by:
      awsErrorDetails in interface VoiceIdException.Builder
      Parameters:
      awsErrorDetails - Object containing additional details from the response.
      Returns:
      This object for method chaining.
    • message

      Description copied from interface: SdkException.Builder
      Specifies the details of this exception.
      Specified by:
      message in interface AwsServiceException.Builder
      Specified by:
      message in interface SdkException.Builder
      Specified by:
      message in interface SdkServiceException.Builder
      Specified by:
      message in interface VoiceIdException.Builder
      Parameters:
      message - The details of this exception.
      Returns:
      This method for object chaining
    • requestId

      ConflictException.Builder requestId(String requestId)
      Description copied from interface: SdkServiceException.Builder
      Specifies the requestId returned by the called service.
      Specified by:
      requestId in interface AwsServiceException.Builder
      Specified by:
      requestId in interface SdkServiceException.Builder
      Specified by:
      requestId in interface VoiceIdException.Builder
      Parameters:
      requestId - A string that identifies the request made to a service.
      Returns:
      This object for method chaining.
    • statusCode

      ConflictException.Builder statusCode(int statusCode)
      Description copied from interface: SdkServiceException.Builder
      Specifies the status code returned by the service.
      Specified by:
      statusCode in interface AwsServiceException.Builder
      Specified by:
      statusCode in interface SdkServiceException.Builder
      Specified by:
      statusCode in interface VoiceIdException.Builder
      Parameters:
      statusCode - an int containing the status code returned by the service.
      Returns:
      This method for object chaining.
    • cause

      Description copied from interface: SdkException.Builder
      Specifies the exception that caused this exception to occur.
      Specified by:
      cause in interface AwsServiceException.Builder
      Specified by:
      cause in interface SdkException.Builder
      Specified by:
      cause in interface SdkServiceException.Builder
      Specified by:
      cause in interface VoiceIdException.Builder
      Parameters:
      cause - The exception that caused this exception to occur.
      Returns:
      This object for method chaining.
    • writableStackTrace

      ConflictException.Builder writableStackTrace(Boolean writableStackTrace)
      Description copied from interface: SdkException.Builder
      Specifies whether the stack trace in this exception can be written.
      Specified by:
      writableStackTrace in interface SdkException.Builder
      Specified by:
      writableStackTrace in interface SdkServiceException.Builder
      Specified by:
      writableStackTrace in interface VoiceIdException.Builder
      Parameters:
      writableStackTrace - Whether the stack trace can be written.
      Returns:
      This method for object chaining
    • numAttempts

      ConflictException.Builder numAttempts(Integer numAttempts)
      Specified by:
      numAttempts in interface AwsServiceException.Builder
      Specified by:
      numAttempts in interface SdkException.Builder
      Specified by:
      numAttempts in interface SdkServiceException.Builder
      Specified by:
      numAttempts in interface VoiceIdException.Builder
      Parameters:
      numAttempts - The attempt count
      Returns:
      This method for object chaining