/* * Copyright 2010-2023 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.translate.model; import com.amazonaws.AmazonServiceException; /** *

* Amazon Translate does not support translation from the language of the source * text into the requested target language. For more information, see Supported languages. *

*/ public class UnsupportedLanguagePairException extends AmazonServiceException { private static final long serialVersionUID = 1L; /** *

* The language code for the language of the input text. *

*

* Constraints:
* Length: 2 - 5
*/ private String sourceLanguageCode; /** *

* The language code for the language of the translated text. *

*

* Constraints:
* Length: 2 - 5
*/ private String targetLanguageCode; /** * Constructs a new UnsupportedLanguagePairException with the specified * error message. * * @param message Describes the error encountered. */ public UnsupportedLanguagePairException(String message) { super(message); } /** *

* The language code for the language of the input text. *

*

* Constraints:
* Length: 2 - 5
* * @return

* The language code for the language of the input text. *

*/ public String getSourceLanguageCode() { return sourceLanguageCode; } /** *

* The language code for the language of the input text. *

*

* Constraints:
* Length: 2 - 5
* * @param sourceLanguageCode

* The language code for the language of the input text. *

*/ public void setSourceLanguageCode(String sourceLanguageCode) { this.sourceLanguageCode = sourceLanguageCode; } /** *

* The language code for the language of the translated text. *

*

* Constraints:
* Length: 2 - 5
* * @return

* The language code for the language of the translated text. *

*/ public String getTargetLanguageCode() { return targetLanguageCode; } /** *

* The language code for the language of the translated text. *

*

* Constraints:
* Length: 2 - 5
* * @param targetLanguageCode

* The language code for the language of the translated text. *

*/ public void setTargetLanguageCode(String targetLanguageCode) { this.targetLanguageCode = targetLanguageCode; } }