com.dominodatalab.api.model.DominoScheduledjobApiLegacyScheduledRunDTO 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;
/**
* DominoScheduledjobApiLegacyScheduledRunDTO
*/
@JsonPropertyOrder({
DominoScheduledjobApiLegacyScheduledRunDTO.JSON_PROPERTY_ID,
DominoScheduledjobApiLegacyScheduledRunDTO.JSON_PROPERTY_SCHEDULING_USER_NAME,
DominoScheduledjobApiLegacyScheduledRunDTO.JSON_PROPERTY_TITLE,
DominoScheduledjobApiLegacyScheduledRunDTO.JSON_PROPERTY_SCHEDULE_TIME,
DominoScheduledjobApiLegacyScheduledRunDTO.JSON_PROPERTY_HARDWARE_TIER_NAME,
DominoScheduledjobApiLegacyScheduledRunDTO.JSON_PROPERTY_LAUNCH_BEHAVIOR,
DominoScheduledjobApiLegacyScheduledRunDTO.JSON_PROPERTY_EMAILS_TO_NOTIFY,
DominoScheduledjobApiLegacyScheduledRunDTO.JSON_PROPERTY_PROJECT_IDENTITY
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoScheduledjobApiLegacyScheduledRunDTO {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_SCHEDULING_USER_NAME = "schedulingUserName";
private String schedulingUserName;
public static final String JSON_PROPERTY_TITLE = "title";
private String title;
public static final String JSON_PROPERTY_SCHEDULE_TIME = "scheduleTime";
private String scheduleTime;
public static final String JSON_PROPERTY_HARDWARE_TIER_NAME = "hardwareTierName";
private String hardwareTierName;
/**
* Gets or Sets launchBehavior
*/
public enum LaunchBehaviorEnum {
CONCURRENT("Concurrent"),
SEQUENTIAL("Sequential");
private String value;
LaunchBehaviorEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static LaunchBehaviorEnum fromValue(String value) {
for (LaunchBehaviorEnum b : LaunchBehaviorEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_LAUNCH_BEHAVIOR = "launchBehavior";
private LaunchBehaviorEnum launchBehavior;
public static final String JSON_PROPERTY_EMAILS_TO_NOTIFY = "emailsToNotify";
private String emailsToNotify;
public static final String JSON_PROPERTY_PROJECT_IDENTITY = "projectIdentity";
private String projectIdentity;
public DominoScheduledjobApiLegacyScheduledRunDTO() {
}
public DominoScheduledjobApiLegacyScheduledRunDTO id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getId() {
return id;
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setId(String id) {
this.id = id;
}
public DominoScheduledjobApiLegacyScheduledRunDTO schedulingUserName(String schedulingUserName) {
this.schedulingUserName = schedulingUserName;
return this;
}
/**
* Get schedulingUserName
* @return schedulingUserName
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_SCHEDULING_USER_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSchedulingUserName() {
return schedulingUserName;
}
@JsonProperty(JSON_PROPERTY_SCHEDULING_USER_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSchedulingUserName(String schedulingUserName) {
this.schedulingUserName = schedulingUserName;
}
public DominoScheduledjobApiLegacyScheduledRunDTO title(String title) {
this.title = title;
return this;
}
/**
* Get title
* @return title
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TITLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getTitle() {
return title;
}
@JsonProperty(JSON_PROPERTY_TITLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTitle(String title) {
this.title = title;
}
public DominoScheduledjobApiLegacyScheduledRunDTO scheduleTime(String scheduleTime) {
this.scheduleTime = scheduleTime;
return this;
}
/**
* Get scheduleTime
* @return scheduleTime
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_SCHEDULE_TIME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getScheduleTime() {
return scheduleTime;
}
@JsonProperty(JSON_PROPERTY_SCHEDULE_TIME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setScheduleTime(String scheduleTime) {
this.scheduleTime = scheduleTime;
}
public DominoScheduledjobApiLegacyScheduledRunDTO hardwareTierName(String hardwareTierName) {
this.hardwareTierName = hardwareTierName;
return this;
}
/**
* Get hardwareTierName
* @return hardwareTierName
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_HARDWARE_TIER_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getHardwareTierName() {
return hardwareTierName;
}
@JsonProperty(JSON_PROPERTY_HARDWARE_TIER_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHardwareTierName(String hardwareTierName) {
this.hardwareTierName = hardwareTierName;
}
public DominoScheduledjobApiLegacyScheduledRunDTO launchBehavior(LaunchBehaviorEnum launchBehavior) {
this.launchBehavior = launchBehavior;
return this;
}
/**
* Get launchBehavior
* @return launchBehavior
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_LAUNCH_BEHAVIOR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public LaunchBehaviorEnum getLaunchBehavior() {
return launchBehavior;
}
@JsonProperty(JSON_PROPERTY_LAUNCH_BEHAVIOR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLaunchBehavior(LaunchBehaviorEnum launchBehavior) {
this.launchBehavior = launchBehavior;
}
public DominoScheduledjobApiLegacyScheduledRunDTO emailsToNotify(String emailsToNotify) {
this.emailsToNotify = emailsToNotify;
return this;
}
/**
* Get emailsToNotify
* @return emailsToNotify
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EMAILS_TO_NOTIFY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEmailsToNotify() {
return emailsToNotify;
}
@JsonProperty(JSON_PROPERTY_EMAILS_TO_NOTIFY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEmailsToNotify(String emailsToNotify) {
this.emailsToNotify = emailsToNotify;
}
public DominoScheduledjobApiLegacyScheduledRunDTO projectIdentity(String projectIdentity) {
this.projectIdentity = projectIdentity;
return this;
}
/**
* Get projectIdentity
* @return projectIdentity
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_PROJECT_IDENTITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getProjectIdentity() {
return projectIdentity;
}
@JsonProperty(JSON_PROPERTY_PROJECT_IDENTITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setProjectIdentity(String projectIdentity) {
this.projectIdentity = projectIdentity;
}
/**
* Return true if this domino.scheduledjob.api.LegacyScheduledRunDTO object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoScheduledjobApiLegacyScheduledRunDTO dominoScheduledjobApiLegacyScheduledRunDTO = (DominoScheduledjobApiLegacyScheduledRunDTO) o;
return Objects.equals(this.id, dominoScheduledjobApiLegacyScheduledRunDTO.id) &&
Objects.equals(this.schedulingUserName, dominoScheduledjobApiLegacyScheduledRunDTO.schedulingUserName) &&
Objects.equals(this.title, dominoScheduledjobApiLegacyScheduledRunDTO.title) &&
Objects.equals(this.scheduleTime, dominoScheduledjobApiLegacyScheduledRunDTO.scheduleTime) &&
Objects.equals(this.hardwareTierName, dominoScheduledjobApiLegacyScheduledRunDTO.hardwareTierName) &&
Objects.equals(this.launchBehavior, dominoScheduledjobApiLegacyScheduledRunDTO.launchBehavior) &&
Objects.equals(this.emailsToNotify, dominoScheduledjobApiLegacyScheduledRunDTO.emailsToNotify) &&
Objects.equals(this.projectIdentity, dominoScheduledjobApiLegacyScheduledRunDTO.projectIdentity);
}
@Override
public int hashCode() {
return Objects.hash(id, schedulingUserName, title, scheduleTime, hardwareTierName, launchBehavior, emailsToNotify, projectIdentity);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoScheduledjobApiLegacyScheduledRunDTO {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" schedulingUserName: ").append(toIndentedString(schedulingUserName)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" scheduleTime: ").append(toIndentedString(scheduleTime)).append("\n");
sb.append(" hardwareTierName: ").append(toIndentedString(hardwareTierName)).append("\n");
sb.append(" launchBehavior: ").append(toIndentedString(launchBehavior)).append("\n");
sb.append(" emailsToNotify: ").append(toIndentedString(emailsToNotify)).append("\n");
sb.append(" projectIdentity: ").append(toIndentedString(projectIdentity)).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 `id` to the URL query string
if (getId() != null) {
joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `schedulingUserName` to the URL query string
if (getSchedulingUserName() != null) {
joiner.add(String.format("%sschedulingUserName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSchedulingUserName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `title` to the URL query string
if (getTitle() != null) {
joiner.add(String.format("%stitle%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTitle()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `scheduleTime` to the URL query string
if (getScheduleTime() != null) {
joiner.add(String.format("%sscheduleTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getScheduleTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `hardwareTierName` to the URL query string
if (getHardwareTierName() != null) {
joiner.add(String.format("%shardwareTierName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getHardwareTierName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `launchBehavior` to the URL query string
if (getLaunchBehavior() != null) {
joiner.add(String.format("%slaunchBehavior%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLaunchBehavior()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `emailsToNotify` to the URL query string
if (getEmailsToNotify() != null) {
joiner.add(String.format("%semailsToNotify%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmailsToNotify()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `projectIdentity` to the URL query string
if (getProjectIdentity() != null) {
joiner.add(String.format("%sprojectIdentity%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getProjectIdentity()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy