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.
  • Method Details

    • newBuilder

      public ListModelsOptions.Builder newBuilder()
      New builder.
      Returns:
      a ListModelsOptions builder
    • source

      public String source()
      Gets the source.

      Specify a language code to filter results by source language.

      Returns:
      the source
    • target

      public String target()
      Gets the target.

      Specify a language code to filter results by target language.

      Returns:
      the target
    • xDefault

      public Boolean 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