All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.voiceid.model.ConflictException Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Voice ID module holds the client classes that are used for communicating with Amazon Voice ID Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.voiceid.model;

import javax.annotation.Generated;

/**
 * 

* The request failed due to a conflict. Check the ConflictType and error message for more details. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ConflictException extends com.amazonaws.services.voiceid.model.AmazonVoiceIDException { private static final long serialVersionUID = 1L; /** *

* 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. *

    *
  • *
*/ private String conflictType; /** * Constructs a new ConflictException with the specified error message. * * @param message * Describes the error encountered. */ public ConflictException(String message) { super(message); } /** *

* 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. *

    *
  • *
* * @param 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. *

    *
  • * @see ConflictType */ @com.fasterxml.jackson.annotation.JsonProperty("ConflictType") public void setConflictType(String conflictType) { this.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. *

      *
    • *
    * * @return 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. *

      *
    • * @see ConflictType */ @com.fasterxml.jackson.annotation.JsonProperty("ConflictType") public String getConflictType() { return this.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. *

        *
      • *
      * * @param 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. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see ConflictType */ public ConflictException withConflictType(String conflictType) { setConflictType(conflictType); return this; } /** *

        * 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. *

          *
        • *
        * * @param 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. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see ConflictType */ public ConflictException withConflictType(ConflictType conflictType) { this.conflictType = conflictType.toString(); return this; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy