com.dominodatalab.api.model.DominoModelmanagerWebExportImageForNvidiaApiRequest 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;
/**
* DominoModelmanagerWebExportImageForNvidiaApiRequest
*/
@JsonPropertyOrder({
DominoModelmanagerWebExportImageForNvidiaApiRequest.JSON_PROPERTY_CONTAINER_REPOSITORY,
DominoModelmanagerWebExportImageForNvidiaApiRequest.JSON_PROPERTY_TAG,
DominoModelmanagerWebExportImageForNvidiaApiRequest.JSON_PROPERTY_HELM_REPOSITORY,
DominoModelmanagerWebExportImageForNvidiaApiRequest.JSON_PROPERTY_HELM_VERSION,
DominoModelmanagerWebExportImageForNvidiaApiRequest.JSON_PROPERTY_NGC_API_KEY
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoModelmanagerWebExportImageForNvidiaApiRequest {
public static final String JSON_PROPERTY_CONTAINER_REPOSITORY = "containerRepository";
private String containerRepository;
public static final String JSON_PROPERTY_TAG = "tag";
private String tag;
public static final String JSON_PROPERTY_HELM_REPOSITORY = "helmRepository";
private String helmRepository;
public static final String JSON_PROPERTY_HELM_VERSION = "helmVersion";
private String helmVersion;
public static final String JSON_PROPERTY_NGC_API_KEY = "ngcApiKey";
private String ngcApiKey;
public DominoModelmanagerWebExportImageForNvidiaApiRequest() {
}
public DominoModelmanagerWebExportImageForNvidiaApiRequest containerRepository(String containerRepository) {
this.containerRepository = containerRepository;
return this;
}
/**
* Get containerRepository
* @return containerRepository
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CONTAINER_REPOSITORY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getContainerRepository() {
return containerRepository;
}
@JsonProperty(JSON_PROPERTY_CONTAINER_REPOSITORY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setContainerRepository(String containerRepository) {
this.containerRepository = containerRepository;
}
public DominoModelmanagerWebExportImageForNvidiaApiRequest 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 DominoModelmanagerWebExportImageForNvidiaApiRequest helmRepository(String helmRepository) {
this.helmRepository = helmRepository;
return this;
}
/**
* Get helmRepository
* @return helmRepository
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_HELM_REPOSITORY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getHelmRepository() {
return helmRepository;
}
@JsonProperty(JSON_PROPERTY_HELM_REPOSITORY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHelmRepository(String helmRepository) {
this.helmRepository = helmRepository;
}
public DominoModelmanagerWebExportImageForNvidiaApiRequest helmVersion(String helmVersion) {
this.helmVersion = helmVersion;
return this;
}
/**
* Get helmVersion
* @return helmVersion
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_HELM_VERSION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getHelmVersion() {
return helmVersion;
}
@JsonProperty(JSON_PROPERTY_HELM_VERSION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHelmVersion(String helmVersion) {
this.helmVersion = helmVersion;
}
public DominoModelmanagerWebExportImageForNvidiaApiRequest ngcApiKey(String ngcApiKey) {
this.ngcApiKey = ngcApiKey;
return this;
}
/**
* Get ngcApiKey
* @return ngcApiKey
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_NGC_API_KEY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getNgcApiKey() {
return ngcApiKey;
}
@JsonProperty(JSON_PROPERTY_NGC_API_KEY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setNgcApiKey(String ngcApiKey) {
this.ngcApiKey = ngcApiKey;
}
/**
* Return true if this domino.modelmanager.web.ExportImageForNvidiaApiRequest object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoModelmanagerWebExportImageForNvidiaApiRequest dominoModelmanagerWebExportImageForNvidiaApiRequest = (DominoModelmanagerWebExportImageForNvidiaApiRequest) o;
return Objects.equals(this.containerRepository, dominoModelmanagerWebExportImageForNvidiaApiRequest.containerRepository) &&
Objects.equals(this.tag, dominoModelmanagerWebExportImageForNvidiaApiRequest.tag) &&
Objects.equals(this.helmRepository, dominoModelmanagerWebExportImageForNvidiaApiRequest.helmRepository) &&
Objects.equals(this.helmVersion, dominoModelmanagerWebExportImageForNvidiaApiRequest.helmVersion) &&
Objects.equals(this.ngcApiKey, dominoModelmanagerWebExportImageForNvidiaApiRequest.ngcApiKey);
}
@Override
public int hashCode() {
return Objects.hash(containerRepository, tag, helmRepository, helmVersion, ngcApiKey);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoModelmanagerWebExportImageForNvidiaApiRequest {\n");
sb.append(" containerRepository: ").append(toIndentedString(containerRepository)).append("\n");
sb.append(" tag: ").append(toIndentedString(tag)).append("\n");
sb.append(" helmRepository: ").append(toIndentedString(helmRepository)).append("\n");
sb.append(" helmVersion: ").append(toIndentedString(helmVersion)).append("\n");
sb.append(" ngcApiKey: ").append(toIndentedString(ngcApiKey)).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 `containerRepository` to the URL query string
if (getContainerRepository() != null) {
joiner.add(String.format("%scontainerRepository%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContainerRepository()), 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 `helmRepository` to the URL query string
if (getHelmRepository() != null) {
joiner.add(String.format("%shelmRepository%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getHelmRepository()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `helmVersion` to the URL query string
if (getHelmVersion() != null) {
joiner.add(String.format("%shelmVersion%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getHelmVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `ngcApiKey` to the URL query string
if (getNgcApiKey() != null) {
joiner.add(String.format("%sngcApiKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNgcApiKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy