
com.dominodatalab.api.model.DominoModelmanagerWebBuildModelImageApiRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domino-java-client Show documentation
Show all versions of domino-java-client Show documentation
Domino Data Lab API Client to connect to Domino web services using Java HTTP Client.
/*
* 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;
/**
* DominoModelmanagerWebBuildModelImageApiRequest
*/
@JsonPropertyOrder({
DominoModelmanagerWebBuildModelImageApiRequest.JSON_PROPERTY_MODEL_NAME,
DominoModelmanagerWebBuildModelImageApiRequest.JSON_PROPERTY_ENVIRONMENT_ID,
DominoModelmanagerWebBuildModelImageApiRequest.JSON_PROPERTY_PROJECT_ID,
DominoModelmanagerWebBuildModelImageApiRequest.JSON_PROPERTY_INFERENCE_FUNCTION_TO_CALL,
DominoModelmanagerWebBuildModelImageApiRequest.JSON_PROPERTY_INFERENCE_FUNCTION_FILE,
DominoModelmanagerWebBuildModelImageApiRequest.JSON_PROPERTY_MODEL_ID,
DominoModelmanagerWebBuildModelImageApiRequest.JSON_PROPERTY_DESCRIPTION,
DominoModelmanagerWebBuildModelImageApiRequest.JSON_PROPERTY_LOG_HTTP_REQUEST_RESPONSE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoModelmanagerWebBuildModelImageApiRequest {
public static final String JSON_PROPERTY_MODEL_NAME = "modelName";
private String modelName;
public static final String JSON_PROPERTY_ENVIRONMENT_ID = "environmentId";
private String environmentId;
public static final String JSON_PROPERTY_PROJECT_ID = "projectId";
private String projectId;
public static final String JSON_PROPERTY_INFERENCE_FUNCTION_TO_CALL = "inferenceFunctionToCall";
private String inferenceFunctionToCall;
public static final String JSON_PROPERTY_INFERENCE_FUNCTION_FILE = "inferenceFunctionFile";
private String inferenceFunctionFile;
public static final String JSON_PROPERTY_MODEL_ID = "modelId";
private String modelId;
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
public static final String JSON_PROPERTY_LOG_HTTP_REQUEST_RESPONSE = "logHttpRequestResponse";
private Boolean logHttpRequestResponse;
public DominoModelmanagerWebBuildModelImageApiRequest() {
}
public DominoModelmanagerWebBuildModelImageApiRequest modelName(String modelName) {
this.modelName = modelName;
return this;
}
/**
* Get modelName
* @return modelName
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_MODEL_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getModelName() {
return modelName;
}
@JsonProperty(JSON_PROPERTY_MODEL_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setModelName(String modelName) {
this.modelName = modelName;
}
public DominoModelmanagerWebBuildModelImageApiRequest environmentId(String environmentId) {
this.environmentId = environmentId;
return this;
}
/**
* Get environmentId
* @return environmentId
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ENVIRONMENT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEnvironmentId() {
return environmentId;
}
@JsonProperty(JSON_PROPERTY_ENVIRONMENT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEnvironmentId(String environmentId) {
this.environmentId = environmentId;
}
public DominoModelmanagerWebBuildModelImageApiRequest 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 DominoModelmanagerWebBuildModelImageApiRequest inferenceFunctionToCall(String inferenceFunctionToCall) {
this.inferenceFunctionToCall = inferenceFunctionToCall;
return this;
}
/**
* Get inferenceFunctionToCall
* @return inferenceFunctionToCall
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_INFERENCE_FUNCTION_TO_CALL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getInferenceFunctionToCall() {
return inferenceFunctionToCall;
}
@JsonProperty(JSON_PROPERTY_INFERENCE_FUNCTION_TO_CALL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setInferenceFunctionToCall(String inferenceFunctionToCall) {
this.inferenceFunctionToCall = inferenceFunctionToCall;
}
public DominoModelmanagerWebBuildModelImageApiRequest inferenceFunctionFile(String inferenceFunctionFile) {
this.inferenceFunctionFile = inferenceFunctionFile;
return this;
}
/**
* Get inferenceFunctionFile
* @return inferenceFunctionFile
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_INFERENCE_FUNCTION_FILE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getInferenceFunctionFile() {
return inferenceFunctionFile;
}
@JsonProperty(JSON_PROPERTY_INFERENCE_FUNCTION_FILE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setInferenceFunctionFile(String inferenceFunctionFile) {
this.inferenceFunctionFile = inferenceFunctionFile;
}
public DominoModelmanagerWebBuildModelImageApiRequest modelId(String modelId) {
this.modelId = modelId;
return this;
}
/**
* Get modelId
* @return modelId
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MODEL_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getModelId() {
return modelId;
}
@JsonProperty(JSON_PROPERTY_MODEL_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setModelId(String modelId) {
this.modelId = modelId;
}
public DominoModelmanagerWebBuildModelImageApiRequest description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescription(String description) {
this.description = description;
}
public DominoModelmanagerWebBuildModelImageApiRequest logHttpRequestResponse(Boolean logHttpRequestResponse) {
this.logHttpRequestResponse = logHttpRequestResponse;
return this;
}
/**
* Get logHttpRequestResponse
* @return logHttpRequestResponse
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_LOG_HTTP_REQUEST_RESPONSE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getLogHttpRequestResponse() {
return logHttpRequestResponse;
}
@JsonProperty(JSON_PROPERTY_LOG_HTTP_REQUEST_RESPONSE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLogHttpRequestResponse(Boolean logHttpRequestResponse) {
this.logHttpRequestResponse = logHttpRequestResponse;
}
/**
* Return true if this domino.modelmanager.web.BuildModelImageApiRequest object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoModelmanagerWebBuildModelImageApiRequest dominoModelmanagerWebBuildModelImageApiRequest = (DominoModelmanagerWebBuildModelImageApiRequest) o;
return Objects.equals(this.modelName, dominoModelmanagerWebBuildModelImageApiRequest.modelName) &&
Objects.equals(this.environmentId, dominoModelmanagerWebBuildModelImageApiRequest.environmentId) &&
Objects.equals(this.projectId, dominoModelmanagerWebBuildModelImageApiRequest.projectId) &&
Objects.equals(this.inferenceFunctionToCall, dominoModelmanagerWebBuildModelImageApiRequest.inferenceFunctionToCall) &&
Objects.equals(this.inferenceFunctionFile, dominoModelmanagerWebBuildModelImageApiRequest.inferenceFunctionFile) &&
Objects.equals(this.modelId, dominoModelmanagerWebBuildModelImageApiRequest.modelId) &&
Objects.equals(this.description, dominoModelmanagerWebBuildModelImageApiRequest.description) &&
Objects.equals(this.logHttpRequestResponse, dominoModelmanagerWebBuildModelImageApiRequest.logHttpRequestResponse);
}
@Override
public int hashCode() {
return Objects.hash(modelName, environmentId, projectId, inferenceFunctionToCall, inferenceFunctionFile, modelId, description, logHttpRequestResponse);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoModelmanagerWebBuildModelImageApiRequest {\n");
sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n");
sb.append(" environmentId: ").append(toIndentedString(environmentId)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
sb.append(" inferenceFunctionToCall: ").append(toIndentedString(inferenceFunctionToCall)).append("\n");
sb.append(" inferenceFunctionFile: ").append(toIndentedString(inferenceFunctionFile)).append("\n");
sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" logHttpRequestResponse: ").append(toIndentedString(logHttpRequestResponse)).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 `modelName` to the URL query string
if (getModelName() != null) {
joiner.add(String.format("%smodelName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getModelName()), 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")));
}
// 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 `inferenceFunctionToCall` to the URL query string
if (getInferenceFunctionToCall() != null) {
joiner.add(String.format("%sinferenceFunctionToCall%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInferenceFunctionToCall()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `inferenceFunctionFile` to the URL query string
if (getInferenceFunctionFile() != null) {
joiner.add(String.format("%sinferenceFunctionFile%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInferenceFunctionFile()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `modelId` to the URL query string
if (getModelId() != null) {
joiner.add(String.format("%smodelId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getModelId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `description` to the URL query string
if (getDescription() != null) {
joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `logHttpRequestResponse` to the URL query string
if (getLogHttpRequestResponse() != null) {
joiner.add(String.format("%slogHttpRequestResponse%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLogHttpRequestResponse()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy