code: public ServiceCall<TranslationModels> listModels(ListModelsOptions listModelsOptions) {
      String[] pathSegments = { "v3/models" };
      RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments));
      builder.query("version", versionDate);
      Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("language_translator", "v3", "listModels");
      for (Entry<String, String> header : sdkHeaders.entrySet()) {
        builder.header(header.getKey(), header.getValue());
      }
      builder.header("Accept", "application/json");
      if (listModelsOptions != null) {
        if (listModelsOptions.source() != null) {
          builder.query("source", listModelsOptions.source());
        }
        if (listModelsOptions.target() != null) {
          builder.query("target", listModelsOptions.target());
        }
        if (listModelsOptions.defaultModels() != null) {
          builder.query("default", String.valueOf(listModelsOptions.defaultModels()));
        }
      }
      return createServiceCall(builder.build(), ResponseConverterUtils.getObject(TranslationModels.class));
    }
docs: List models.
  
  Lists available translation models.
  
  @param listModelsOptions the {@link ListModelsOptions} containing the options for the call
  @return a {@link ServiceCall} with a response type of {@link TranslationModels}