Class TranslationModel
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class TranslationModel
extends com.ibm.cloud.sdk.core.service.model.GenericModel
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTranslationModel.StatusAvailability of a model. -
Constructor Summary
Constructors Constructor Description TranslationModel() -
Method Summary
Modifier and Type Method Description StringgetBaseModelId()Gets the baseModelId.StringgetDomain()Gets the domain.StringgetModelId()Gets the modelId.StringgetName()Gets the name.StringgetOwner()Gets the owner.StringgetSource()Gets the source.StringgetStatus()Gets the status.StringgetTarget()Gets the target.BooleanisCustomizable()Gets the customizable.BooleanisDefaultModel()Gets the defaultModel.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
TranslationModel
public TranslationModel()
-
-
Method Details
-
getModelId
Gets the modelId.A globally unique string that identifies the underlying model that is used for translation.
- Returns:
- the modelId
-
getName
Gets the name.Optional name that can be specified when the model is created.
- Returns:
- the name
-
getSource
Gets the source.Translation source language code.
- Returns:
- the source
-
getTarget
Gets the target.Translation target language code.
- Returns:
- the target
-
getBaseModelId
Gets the baseModelId.Model ID of the base model that was used to customize the model. If the model is not a custom model, this will be an empty string.
- Returns:
- the baseModelId
-
getDomain
Gets the domain.The domain of the translation model.
- Returns:
- the domain
-
isCustomizable
Gets the customizable.Whether this model can be used as a base for customization. Customized models are not further customizable, and some base models are not customizable.
- Returns:
- the customizable
-
isDefaultModel
Gets the defaultModel.Whether or not the model is a default model. A default model is the model for a given language pair that will be used when that language pair is specified in the source and target parameters.
- Returns:
- the defaultModel
-
getOwner
Gets the owner.Either an empty string, indicating the model is not a custom model, or the ID of the service instance that created the model.
- Returns:
- the owner
-
getStatus
Gets the status.Availability of a model.
- Returns:
- the status
-