Class ListModelsOptions
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.language_translator.v3.model.ListModelsOptions
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class ListModelsOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The listModels options.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ListModelsOptions.Builder
Builder. -
Method Summary
Modifier and Type Method Description ListModelsOptions.Builder
newBuilder()
New builder.String
source()
Gets the source.String
target()
Gets the target.Boolean
xDefault()
Gets the xDefault.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a ListModelsOptions builder
-
source
Gets the source.Specify a language code to filter results by source language.
- Returns:
- the source
-
target
Gets the target.Specify a language code to filter results by target language.
- Returns:
- the target
-
xDefault
Gets the xDefault.If the `default` parameter isn't specified, the service returns all models (default and non-default) for each language pair. To return only default models, set this parameter to `true`. To return only non-default models, set this parameter to `false`. There is exactly one default model, the IBM-provided base model, per language pair.
- Returns:
- the xDefault
-