com.dominodatalab.api.model.DominoLauncherjobApiLauncherJobStartDto 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.dominodatalab.api.model.DominoLauncherjobApiLauncherJobUploadedFile;
import com.dominodatalab.api.model.DominoLauncherjobApiPostParameter;
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.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* DominoLauncherjobApiLauncherJobStartDto
*/
@JsonPropertyOrder({
DominoLauncherjobApiLauncherJobStartDto.JSON_PROPERTY_JOB_TITLE,
DominoLauncherjobApiLauncherJobStartDto.JSON_PROPERTY_STARTING_USER_ID,
DominoLauncherjobApiLauncherJobStartDto.JSON_PROPERTY_PROJECT,
DominoLauncherjobApiLauncherJobStartDto.JSON_PROPERTY_POST_PARAMETERS,
DominoLauncherjobApiLauncherJobStartDto.JSON_PROPERTY_UPLOADED_FILES,
DominoLauncherjobApiLauncherJobStartDto.JSON_PROPERTY_NOTIFY_ON_COMPLETE_EMAIL_ADDRESSES
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoLauncherjobApiLauncherJobStartDto {
public static final String JSON_PROPERTY_JOB_TITLE = "jobTitle";
private String jobTitle;
public static final String JSON_PROPERTY_STARTING_USER_ID = "startingUserId";
private String startingUserId;
public static final String JSON_PROPERTY_PROJECT = "project";
private String project;
public static final String JSON_PROPERTY_POST_PARAMETERS = "postParameters";
private List postParameters = new ArrayList<>();
public static final String JSON_PROPERTY_UPLOADED_FILES = "uploadedFiles";
private List uploadedFiles = new ArrayList<>();
public static final String JSON_PROPERTY_NOTIFY_ON_COMPLETE_EMAIL_ADDRESSES = "notifyOnCompleteEmailAddresses";
private List notifyOnCompleteEmailAddresses = new ArrayList<>();
public DominoLauncherjobApiLauncherJobStartDto() {
}
public DominoLauncherjobApiLauncherJobStartDto jobTitle(String jobTitle) {
this.jobTitle = jobTitle;
return this;
}
/**
* Get jobTitle
* @return jobTitle
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_JOB_TITLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getJobTitle() {
return jobTitle;
}
@JsonProperty(JSON_PROPERTY_JOB_TITLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setJobTitle(String jobTitle) {
this.jobTitle = jobTitle;
}
public DominoLauncherjobApiLauncherJobStartDto startingUserId(String startingUserId) {
this.startingUserId = startingUserId;
return this;
}
/**
* Get startingUserId
* @return startingUserId
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STARTING_USER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getStartingUserId() {
return startingUserId;
}
@JsonProperty(JSON_PROPERTY_STARTING_USER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStartingUserId(String startingUserId) {
this.startingUserId = startingUserId;
}
public DominoLauncherjobApiLauncherJobStartDto project(String project) {
this.project = project;
return this;
}
/**
* Get project
* @return project
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_PROJECT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getProject() {
return project;
}
@JsonProperty(JSON_PROPERTY_PROJECT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setProject(String project) {
this.project = project;
}
public DominoLauncherjobApiLauncherJobStartDto postParameters(List postParameters) {
this.postParameters = postParameters;
return this;
}
public DominoLauncherjobApiLauncherJobStartDto addPostParametersItem(DominoLauncherjobApiPostParameter postParametersItem) {
if (this.postParameters == null) {
this.postParameters = new ArrayList<>();
}
this.postParameters.add(postParametersItem);
return this;
}
/**
* Get postParameters
* @return postParameters
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_POST_PARAMETERS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getPostParameters() {
return postParameters;
}
@JsonProperty(JSON_PROPERTY_POST_PARAMETERS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPostParameters(List postParameters) {
this.postParameters = postParameters;
}
public DominoLauncherjobApiLauncherJobStartDto uploadedFiles(List uploadedFiles) {
this.uploadedFiles = uploadedFiles;
return this;
}
public DominoLauncherjobApiLauncherJobStartDto addUploadedFilesItem(DominoLauncherjobApiLauncherJobUploadedFile uploadedFilesItem) {
if (this.uploadedFiles == null) {
this.uploadedFiles = new ArrayList<>();
}
this.uploadedFiles.add(uploadedFilesItem);
return this;
}
/**
* Get uploadedFiles
* @return uploadedFiles
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_UPLOADED_FILES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getUploadedFiles() {
return uploadedFiles;
}
@JsonProperty(JSON_PROPERTY_UPLOADED_FILES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setUploadedFiles(List uploadedFiles) {
this.uploadedFiles = uploadedFiles;
}
public DominoLauncherjobApiLauncherJobStartDto notifyOnCompleteEmailAddresses(List notifyOnCompleteEmailAddresses) {
this.notifyOnCompleteEmailAddresses = notifyOnCompleteEmailAddresses;
return this;
}
public DominoLauncherjobApiLauncherJobStartDto addNotifyOnCompleteEmailAddressesItem(String notifyOnCompleteEmailAddressesItem) {
if (this.notifyOnCompleteEmailAddresses == null) {
this.notifyOnCompleteEmailAddresses = new ArrayList<>();
}
this.notifyOnCompleteEmailAddresses.add(notifyOnCompleteEmailAddressesItem);
return this;
}
/**
* Get notifyOnCompleteEmailAddresses
* @return notifyOnCompleteEmailAddresses
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_NOTIFY_ON_COMPLETE_EMAIL_ADDRESSES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getNotifyOnCompleteEmailAddresses() {
return notifyOnCompleteEmailAddresses;
}
@JsonProperty(JSON_PROPERTY_NOTIFY_ON_COMPLETE_EMAIL_ADDRESSES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setNotifyOnCompleteEmailAddresses(List notifyOnCompleteEmailAddresses) {
this.notifyOnCompleteEmailAddresses = notifyOnCompleteEmailAddresses;
}
/**
* Return true if this domino.launcherjob.api.LauncherJobStartDto object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoLauncherjobApiLauncherJobStartDto dominoLauncherjobApiLauncherJobStartDto = (DominoLauncherjobApiLauncherJobStartDto) o;
return Objects.equals(this.jobTitle, dominoLauncherjobApiLauncherJobStartDto.jobTitle) &&
Objects.equals(this.startingUserId, dominoLauncherjobApiLauncherJobStartDto.startingUserId) &&
Objects.equals(this.project, dominoLauncherjobApiLauncherJobStartDto.project) &&
Objects.equals(this.postParameters, dominoLauncherjobApiLauncherJobStartDto.postParameters) &&
Objects.equals(this.uploadedFiles, dominoLauncherjobApiLauncherJobStartDto.uploadedFiles) &&
Objects.equals(this.notifyOnCompleteEmailAddresses, dominoLauncherjobApiLauncherJobStartDto.notifyOnCompleteEmailAddresses);
}
@Override
public int hashCode() {
return Objects.hash(jobTitle, startingUserId, project, postParameters, uploadedFiles, notifyOnCompleteEmailAddresses);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoLauncherjobApiLauncherJobStartDto {\n");
sb.append(" jobTitle: ").append(toIndentedString(jobTitle)).append("\n");
sb.append(" startingUserId: ").append(toIndentedString(startingUserId)).append("\n");
sb.append(" project: ").append(toIndentedString(project)).append("\n");
sb.append(" postParameters: ").append(toIndentedString(postParameters)).append("\n");
sb.append(" uploadedFiles: ").append(toIndentedString(uploadedFiles)).append("\n");
sb.append(" notifyOnCompleteEmailAddresses: ").append(toIndentedString(notifyOnCompleteEmailAddresses)).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 `jobTitle` to the URL query string
if (getJobTitle() != null) {
joiner.add(String.format("%sjobTitle%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getJobTitle()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `startingUserId` to the URL query string
if (getStartingUserId() != null) {
joiner.add(String.format("%sstartingUserId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStartingUserId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `project` to the URL query string
if (getProject() != null) {
joiner.add(String.format("%sproject%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getProject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `postParameters` to the URL query string
if (getPostParameters() != null) {
for (int i = 0; i < getPostParameters().size(); i++) {
if (getPostParameters().get(i) != null) {
joiner.add(getPostParameters().get(i).toUrlQueryString(String.format("%spostParameters%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `uploadedFiles` to the URL query string
if (getUploadedFiles() != null) {
for (int i = 0; i < getUploadedFiles().size(); i++) {
if (getUploadedFiles().get(i) != null) {
joiner.add(getUploadedFiles().get(i).toUrlQueryString(String.format("%suploadedFiles%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `notifyOnCompleteEmailAddresses` to the URL query string
if (getNotifyOnCompleteEmailAddresses() != null) {
for (int i = 0; i < getNotifyOnCompleteEmailAddresses().size(); i++) {
joiner.add(String.format("%snotifyOnCompleteEmailAddresses%s%s=%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
URLEncoder.encode(String.valueOf(getNotifyOnCompleteEmailAddresses().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy