com.sdl.translate.request.TranslateRequest Maven / Gradle / Ivy
package com.sdl.translate.request;
import java.util.ArrayList;
import java.util.List;
public class TranslateRequest {
String sourceLanguageId;
String targetLanguageId;
// the model of the LP, like "generic"
String model;
// the translation quality, 0 or 2
Integer quality;
String inputFormat;
String submissionType;
List dictionaries = new ArrayList();
String translationMode;
public String getSourceLanguageId() {
return sourceLanguageId;
}
public TranslateRequest setSourceLanguageId(String sourceLanguageId) {
this.sourceLanguageId = sourceLanguageId;
return this;
}
public String getTargetLanguageId() {
return targetLanguageId;
}
public TranslateRequest setTargetLanguageId(String targetLanguageId) {
this.targetLanguageId = targetLanguageId;
return this;
}
public String getModel() {
return model;
}
public TranslateRequest setModel(String model) {
this.model = model;
return this;
}
public Integer getQuality() {
return quality;
}
public TranslateRequest setQuality(Integer quality) {
this.quality = quality;
return this;
}
public String getInputFormat() {
return inputFormat;
}
public TranslateRequest setInputFormat(String inputFormat) {
this.inputFormat = inputFormat;
return this;
}
public String getSubmissionType() {
return submissionType;
}
public TranslateRequest setSubmissionType(String submissionType) {
this.submissionType = submissionType;
return this;
}
public List getDictionaries() {
return dictionaries;
}
public TranslateRequest setDictionaries(List dictionaries) {
this.dictionaries = dictionaries;
return this;
}
public TranslateRequest addDictionary(String dictionary) {
this.dictionaries.add(dictionary);
return this;
}
public String getTranslationMode() {
return translationMode;
}
public TranslateRequest setTranslationMode(String translationMode) {
this.translationMode = translationMode;
return this;
}
}