public class ListModelsOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
ListModelsOptions.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
source |
protected java.lang.String |
target |
protected java.lang.Boolean |
xDefault |
Modifier | Constructor and Description |
---|---|
protected |
ListModelsOptions(ListModelsOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
ListModelsOptions.Builder |
newBuilder()
New builder.
|
java.lang.String |
source()
Gets the source.
|
java.lang.String |
target()
Gets the target.
|
java.lang.Boolean |
xDefault()
Gets the xDefault.
|
protected java.lang.String source
protected java.lang.String target
protected java.lang.Boolean xDefault
protected ListModelsOptions(ListModelsOptions.Builder builder)
public ListModelsOptions.Builder newBuilder()
public java.lang.String source()
Specify a language code to filter results by source language.
public java.lang.String target()
Specify a language code to filter results by target language.
public java.lang.Boolean 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.