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

com.amazonaws.services.translate.model.UnsupportedLanguagePairException Maven / Gradle / Ivy

/*
 * Copyright 2018-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 javax.annotation.Generated;

/**
 * 

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

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

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

*/ private String sourceLanguageCode; /** *

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

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

* * @param sourceLanguageCode * The language code for the language of the input text. */ @com.fasterxml.jackson.annotation.JsonProperty("SourceLanguageCode") public void setSourceLanguageCode(String sourceLanguageCode) { this.sourceLanguageCode = sourceLanguageCode; } /** *

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

* * @return The language code for the language of the input text. */ @com.fasterxml.jackson.annotation.JsonProperty("SourceLanguageCode") public String getSourceLanguageCode() { return this.sourceLanguageCode; } /** *

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

* * @param sourceLanguageCode * The language code for the language of the input text. * @return Returns a reference to this object so that method calls can be chained together. */ public UnsupportedLanguagePairException withSourceLanguageCode(String sourceLanguageCode) { setSourceLanguageCode(sourceLanguageCode); return this; } /** *

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

* * @param targetLanguageCode * The language code for the language of the translated text. */ @com.fasterxml.jackson.annotation.JsonProperty("TargetLanguageCode") public void setTargetLanguageCode(String targetLanguageCode) { this.targetLanguageCode = targetLanguageCode; } /** *

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

* * @return The language code for the language of the translated text. */ @com.fasterxml.jackson.annotation.JsonProperty("TargetLanguageCode") public String getTargetLanguageCode() { return this.targetLanguageCode; } /** *

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

* * @param targetLanguageCode * The language code for the language of the translated text. * @return Returns a reference to this object so that method calls can be chained together. */ public UnsupportedLanguagePairException withTargetLanguageCode(String targetLanguageCode) { setTargetLanguageCode(targetLanguageCode); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy