All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dominodatalab.api.model.DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest Maven / Gradle / Ivy

/*
 * Domino Data Lab API v4
 * This API is going to provide access to all the Domino functions available in the user interface. To authenticate your requests, include your API Key (which you can find on your account page) with the header X-Domino-Api-Key. 
 *
 * The version of the OpenAPI document: 4.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.dominodatalab.api.model;

import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest
 */
@JsonPropertyOrder({
  DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.JSON_PROPERTY_REGISTRY_URL,
  DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.JSON_PROPERTY_REPOSITORY,
  DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.JSON_PROPERTY_TAG,
  DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.JSON_PROPERTY_USERNAME,
  DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.JSON_PROPERTY_PASSWORD,
  DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.JSON_PROPERTY_EXPORT_NAME,
  DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.JSON_PROPERTY_EXPORT_DESCRIPTION,
  DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.JSON_PROPERTY_USER_ID,
  DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.JSON_PROPERTY_PROJECT_ID,
  DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.JSON_PROPERTY_FILE,
  DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.JSON_PROPERTY_FUNCTION,
  DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.JSON_PROPERTY_ENVIRONMENT_ID
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest {
  public static final String JSON_PROPERTY_REGISTRY_URL = "registryUrl";
  private String registryUrl;

  public static final String JSON_PROPERTY_REPOSITORY = "repository";
  private String repository;

  public static final String JSON_PROPERTY_TAG = "tag";
  private String tag;

  public static final String JSON_PROPERTY_USERNAME = "username";
  private String username;

  public static final String JSON_PROPERTY_PASSWORD = "password";
  private String password;

  public static final String JSON_PROPERTY_EXPORT_NAME = "exportName";
  private String exportName;

  public static final String JSON_PROPERTY_EXPORT_DESCRIPTION = "exportDescription";
  private String exportDescription;

  public static final String JSON_PROPERTY_USER_ID = "userId";
  private String userId;

  public static final String JSON_PROPERTY_PROJECT_ID = "projectId";
  private String projectId;

  public static final String JSON_PROPERTY_FILE = "file";
  private String _file;

  public static final String JSON_PROPERTY_FUNCTION = "function";
  private String function;

  public static final String JSON_PROPERTY_ENVIRONMENT_ID = "environmentId";
  private String environmentId;

  public DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest() { 
  }

  public DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest registryUrl(String registryUrl) {
    this.registryUrl = registryUrl;
    return this;
  }

   /**
   * Get registryUrl
   * @return registryUrl
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_REGISTRY_URL)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getRegistryUrl() {
    return registryUrl;
  }


  @JsonProperty(JSON_PROPERTY_REGISTRY_URL)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setRegistryUrl(String registryUrl) {
    this.registryUrl = registryUrl;
  }


  public DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest repository(String repository) {
    this.repository = repository;
    return this;
  }

   /**
   * Get repository
   * @return repository
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_REPOSITORY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getRepository() {
    return repository;
  }


  @JsonProperty(JSON_PROPERTY_REPOSITORY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setRepository(String repository) {
    this.repository = repository;
  }


  public DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest tag(String tag) {
    this.tag = tag;
    return this;
  }

   /**
   * Get tag
   * @return tag
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_TAG)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getTag() {
    return tag;
  }


  @JsonProperty(JSON_PROPERTY_TAG)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setTag(String tag) {
    this.tag = tag;
  }


  public DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest username(String username) {
    this.username = username;
    return this;
  }

   /**
   * Get username
   * @return username
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_USERNAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getUsername() {
    return username;
  }


  @JsonProperty(JSON_PROPERTY_USERNAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setUsername(String username) {
    this.username = username;
  }


  public DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest password(String password) {
    this.password = password;
    return this;
  }

   /**
   * Get password
   * @return password
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_PASSWORD)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getPassword() {
    return password;
  }


  @JsonProperty(JSON_PROPERTY_PASSWORD)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setPassword(String password) {
    this.password = password;
  }


  public DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest exportName(String exportName) {
    this.exportName = exportName;
    return this;
  }

   /**
   * Get exportName
   * @return exportName
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_EXPORT_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getExportName() {
    return exportName;
  }


  @JsonProperty(JSON_PROPERTY_EXPORT_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setExportName(String exportName) {
    this.exportName = exportName;
  }


  public DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest exportDescription(String exportDescription) {
    this.exportDescription = exportDescription;
    return this;
  }

   /**
   * Get exportDescription
   * @return exportDescription
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_EXPORT_DESCRIPTION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getExportDescription() {
    return exportDescription;
  }


  @JsonProperty(JSON_PROPERTY_EXPORT_DESCRIPTION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setExportDescription(String exportDescription) {
    this.exportDescription = exportDescription;
  }


  public DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest userId(String userId) {
    this.userId = userId;
    return this;
  }

   /**
   * Get userId
   * @return userId
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_USER_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getUserId() {
    return userId;
  }


  @JsonProperty(JSON_PROPERTY_USER_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setUserId(String userId) {
    this.userId = userId;
  }


  public DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest projectId(String projectId) {
    this.projectId = projectId;
    return this;
  }

   /**
   * Get projectId
   * @return projectId
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_PROJECT_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getProjectId() {
    return projectId;
  }


  @JsonProperty(JSON_PROPERTY_PROJECT_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setProjectId(String projectId) {
    this.projectId = projectId;
  }


  public DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest _file(String _file) {
    this._file = _file;
    return this;
  }

   /**
   * Get _file
   * @return _file
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_FILE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getFile() {
    return _file;
  }


  @JsonProperty(JSON_PROPERTY_FILE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setFile(String _file) {
    this._file = _file;
  }


  public DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest function(String function) {
    this.function = function;
    return this;
  }

   /**
   * Get function
   * @return function
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_FUNCTION)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getFunction() {
    return function;
  }


  @JsonProperty(JSON_PROPERTY_FUNCTION)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setFunction(String function) {
    this.function = function;
  }


  public DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest environmentId(String environmentId) {
    this.environmentId = environmentId;
    return this;
  }

   /**
   * Get environmentId
   * @return environmentId
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_ENVIRONMENT_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getEnvironmentId() {
    return environmentId;
  }


  @JsonProperty(JSON_PROPERTY_ENVIRONMENT_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setEnvironmentId(String environmentId) {
    this.environmentId = environmentId;
  }


  /**
   * Return true if this domino.modelmanager.web.ExportImageForSagemakerWithoutModelRequest object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest = (DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest) o;
    return Objects.equals(this.registryUrl, dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.registryUrl) &&
        Objects.equals(this.repository, dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.repository) &&
        Objects.equals(this.tag, dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.tag) &&
        Objects.equals(this.username, dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.username) &&
        Objects.equals(this.password, dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.password) &&
        Objects.equals(this.exportName, dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.exportName) &&
        Objects.equals(this.exportDescription, dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.exportDescription) &&
        Objects.equals(this.userId, dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.userId) &&
        Objects.equals(this.projectId, dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.projectId) &&
        Objects.equals(this._file, dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest._file) &&
        Objects.equals(this.function, dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.function) &&
        Objects.equals(this.environmentId, dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest.environmentId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(registryUrl, repository, tag, username, password, exportName, exportDescription, userId, projectId, _file, function, environmentId);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest {\n");
    sb.append("    registryUrl: ").append(toIndentedString(registryUrl)).append("\n");
    sb.append("    repository: ").append(toIndentedString(repository)).append("\n");
    sb.append("    tag: ").append(toIndentedString(tag)).append("\n");
    sb.append("    username: ").append(toIndentedString(username)).append("\n");
    sb.append("    password: ").append(toIndentedString(password)).append("\n");
    sb.append("    exportName: ").append(toIndentedString(exportName)).append("\n");
    sb.append("    exportDescription: ").append(toIndentedString(exportDescription)).append("\n");
    sb.append("    userId: ").append(toIndentedString(userId)).append("\n");
    sb.append("    projectId: ").append(toIndentedString(projectId)).append("\n");
    sb.append("    _file: ").append(toIndentedString(_file)).append("\n");
    sb.append("    function: ").append(toIndentedString(function)).append("\n");
    sb.append("    environmentId: ").append(toIndentedString(environmentId)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

  /**
   * Convert the instance into URL query string.
   *
   * @return URL query string
   */
  public String toUrlQueryString() {
    return toUrlQueryString(null);
  }

  /**
   * Convert the instance into URL query string.
   *
   * @param prefix prefix of the query string
   * @return URL query string
   */
  public String toUrlQueryString(String prefix) {
    String suffix = "";
    String containerSuffix = "";
    String containerPrefix = "";
    if (prefix == null) {
      // style=form, explode=true, e.g. /pet?name=cat&type=manx
      prefix = "";
    } else {
      // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
      prefix = prefix + "[";
      suffix = "]";
      containerSuffix = "]";
      containerPrefix = "[";
    }

    StringJoiner joiner = new StringJoiner("&");

    // add `registryUrl` to the URL query string
    if (getRegistryUrl() != null) {
      joiner.add(String.format("%sregistryUrl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRegistryUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `repository` to the URL query string
    if (getRepository() != null) {
      joiner.add(String.format("%srepository%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRepository()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `tag` to the URL query string
    if (getTag() != null) {
      joiner.add(String.format("%stag%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTag()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `username` to the URL query string
    if (getUsername() != null) {
      joiner.add(String.format("%susername%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUsername()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `password` to the URL query string
    if (getPassword() != null) {
      joiner.add(String.format("%spassword%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassword()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `exportName` to the URL query string
    if (getExportName() != null) {
      joiner.add(String.format("%sexportName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExportName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `exportDescription` to the URL query string
    if (getExportDescription() != null) {
      joiner.add(String.format("%sexportDescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExportDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `userId` to the URL query string
    if (getUserId() != null) {
      joiner.add(String.format("%suserId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUserId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `projectId` to the URL query string
    if (getProjectId() != null) {
      joiner.add(String.format("%sprojectId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getProjectId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `file` to the URL query string
    if (getFile() != null) {
      joiner.add(String.format("%sfile%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFile()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `function` to the URL query string
    if (getFunction() != null) {
      joiner.add(String.format("%sfunction%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFunction()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `environmentId` to the URL query string
    if (getEnvironmentId() != null) {
      joiner.add(String.format("%senvironmentId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEnvironmentId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    return joiner.toString();
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy