com.seeq.model.ValidateCronOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 65.1.3-v202408082312
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* The list of validations for the input Quartz cron expressions
*/
@Schema(description = "The list of validations for the input Quartz cron expressions")
public class ValidateCronOutputV1 {
@JsonProperty("error")
private String error = null;
@JsonProperty("nextRunTime")
private String nextRunTime = null;
@JsonProperty("quartzCronExpression")
private String quartzCronExpression = null;
@JsonProperty("quartzCronExpressionSummary")
private String quartzCronExpressionSummary = null;
@JsonProperty("valid")
private Boolean valid = false;
public ValidateCronOutputV1 error(String error) {
this.error = error;
return this;
}
/**
* The error message if the Quartz cron expression is not valid
* @return error
**/
@Schema(description = "The error message if the Quartz cron expression is not valid")
public String getError() {
return error;
}
public void setError(String error) {
this.error = error;
}
public ValidateCronOutputV1 nextRunTime(String nextRunTime) {
this.nextRunTime = nextRunTime;
return this;
}
/**
* The next time after the input nextValidTimeAfter in which the schedule will trigger
* @return nextRunTime
**/
@Schema(description = "The next time after the input nextValidTimeAfter in which the schedule will trigger")
public String getNextRunTime() {
return nextRunTime;
}
public void setNextRunTime(String nextRunTime) {
this.nextRunTime = nextRunTime;
}
public ValidateCronOutputV1 quartzCronExpression(String quartzCronExpression) {
this.quartzCronExpression = quartzCronExpression;
return this;
}
/**
* The input Quartz cron expression
* @return quartzCronExpression
**/
@Schema(description = "The input Quartz cron expression")
public String getQuartzCronExpression() {
return quartzCronExpression;
}
public void setQuartzCronExpression(String quartzCronExpression) {
this.quartzCronExpression = quartzCronExpression;
}
public ValidateCronOutputV1 quartzCronExpressionSummary(String quartzCronExpressionSummary) {
this.quartzCronExpressionSummary = quartzCronExpressionSummary;
return this;
}
/**
* The full summary of the cron expression
* @return quartzCronExpressionSummary
**/
@Schema(description = "The full summary of the cron expression")
public String getQuartzCronExpressionSummary() {
return quartzCronExpressionSummary;
}
public void setQuartzCronExpressionSummary(String quartzCronExpressionSummary) {
this.quartzCronExpressionSummary = quartzCronExpressionSummary;
}
public ValidateCronOutputV1 valid(Boolean valid) {
this.valid = valid;
return this;
}
/**
* True if the Quartz cron expression was parsed and there's a valid nextRunTime
* @return valid
**/
@Schema(description = "True if the Quartz cron expression was parsed and there's a valid nextRunTime")
public Boolean getValid() {
return valid;
}
public void setValid(Boolean valid) {
this.valid = valid;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ValidateCronOutputV1 validateCronOutputV1 = (ValidateCronOutputV1) o;
return Objects.equals(this.error, validateCronOutputV1.error) &&
Objects.equals(this.nextRunTime, validateCronOutputV1.nextRunTime) &&
Objects.equals(this.quartzCronExpression, validateCronOutputV1.quartzCronExpression) &&
Objects.equals(this.quartzCronExpressionSummary, validateCronOutputV1.quartzCronExpressionSummary) &&
Objects.equals(this.valid, validateCronOutputV1.valid);
}
@Override
public int hashCode() {
return Objects.hash(error, nextRunTime, quartzCronExpression, quartzCronExpressionSummary, valid);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ValidateCronOutputV1 {\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
sb.append(" nextRunTime: ").append(toIndentedString(nextRunTime)).append("\n");
sb.append(" quartzCronExpression: ").append(toIndentedString(quartzCronExpression)).append("\n");
sb.append(" quartzCronExpressionSummary: ").append(toIndentedString(quartzCronExpressionSummary)).append("\n");
sb.append(" valid: ").append(toIndentedString(valid)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}