public class TranslationModel extends Object
TranslationModel.| Modifier and Type | Field and Description |
|---|---|
static String |
STATUS_AVAILABLE |
static String |
STATUS_ERROR |
static String |
STATUS_TRAINING |
| Constructor and Description |
|---|
TranslationModel() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseModelId()
Gets the base model id.
|
String |
getDomain()
Gets the domain.
|
String |
getModelId()
Gets the model id.
|
String |
getName()
Gets the name.
|
String |
getOwner()
Gets the owner.
|
String |
getSource()
Gets the source.
|
String |
getStatus()
Gets the status.
|
String |
getTarget()
Gets the target.
|
boolean |
isCustomizable()
Checks if is customizable.
|
boolean |
isDefaultModel()
Checks if is default model.
|
void |
setBaseModelId(String baseModelId)
Sets the base model id.
|
void |
setCustomizable(boolean customizable)
Sets the customizable.
|
void |
setDefaultModel(boolean defaultModel)
Sets the default model.
|
void |
setDomain(String domain)
Sets the domain.
|
void |
setModelId(String modelId)
Sets the model id.
|
void |
setName(String name)
Sets the name.
|
void |
setOwner(String owner)
Sets the owner.
|
void |
setSource(String source)
Sets the source.
|
void |
setStatus(String status)
Sets the status.
|
void |
setTarget(String target)
Sets the target.
|
String |
toString() |
TranslationModel |
withBaseModelId(String baseModelId)
With base model id.
|
TranslationModel |
withCustomizable(boolean customizable)
With customizable.
|
TranslationModel |
withDefaultModel(boolean defaultModel)
With default model.
|
TranslationModel |
withDomain(String domain)
With domain.
|
TranslationModel |
withModelId(String modelId)
With model id.
|
TranslationModel |
withName(String name)
With name.
|
TranslationModel |
withOwner(String owner)
With owner.
|
TranslationModel |
withSource(String source)
With source.
|
TranslationModel |
withStatus(String status)
With status.
|
TranslationModel |
withTarget(String target)
With target.
|
public static final String STATUS_TRAINING
public static final String STATUS_ERROR
public static final String STATUS_AVAILABLE
public String getModelId()
public void setModelId(String modelId)
modelId - The model_idpublic TranslationModel withModelId(String modelId)
modelId - the model idpublic String getSource()
public void setSource(String source)
source - The sourcepublic TranslationModel withSource(String source)
source - the sourcepublic String getTarget()
public void setTarget(String target)
target - The targetpublic TranslationModel withTarget(String target)
target - the targetpublic String getBaseModelId()
public void setBaseModelId(String baseModelId)
baseModelId - The base_model_idpublic TranslationModel withBaseModelId(String baseModelId)
baseModelId - the base model idpublic String getDomain()
public void setDomain(String domain)
domain - The domainpublic TranslationModel withDomain(String domain)
domain - the domainpublic boolean isCustomizable()
public void setCustomizable(boolean customizable)
customizable - The customizablepublic TranslationModel withCustomizable(boolean customizable)
customizable - the customizablepublic boolean isDefaultModel()
public void setDefaultModel(boolean defaultModel)
defaultModel - The default_modelpublic TranslationModel withDefaultModel(boolean defaultModel)
defaultModel - the default modelpublic String getOwner()
public void setOwner(String owner)
owner - The ownerpublic TranslationModel withOwner(String owner)
owner - the ownerpublic String getStatus()
public void setStatus(String status)
status - The statuspublic TranslationModel withStatus(String status)
status - the statuspublic String getName()
public void setName(String name)
name - The namepublic TranslationModel withName(String name)
name - the nameCopyright © 2015. All rights reserved.