com.clinia.model.datacatalog.V1ScheduleConfig Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/clinia/api-clients-generation. DO NOT EDIT.
package com.clinia.model.datacatalog;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/** V1ScheduleConfig */
public class V1ScheduleConfig {
@JsonProperty("cronExpressions")
private List cronExpressions = new ArrayList<>();
@JsonProperty("calendarSpecs")
private List calendarSpecs;
@JsonProperty("startAt")
private OffsetDateTime startAt;
@JsonProperty("endAt")
private OffsetDateTime endAt;
public V1ScheduleConfig setCronExpressions(List cronExpressions) {
this.cronExpressions = cronExpressions;
return this;
}
public V1ScheduleConfig addCronExpressions(String cronExpressionsItem) {
this.cronExpressions.add(cronExpressionsItem);
return this;
}
/** The cron expressions for the schedule spec. */
@javax.annotation.Nonnull
public List getCronExpressions() {
return cronExpressions;
}
/** The calendar specs for the schedule spec translated from cron expressions. */
@javax.annotation.Nullable
public List getCalendarSpecs() {
return calendarSpecs;
}
public V1ScheduleConfig setStartAt(OffsetDateTime startAt) {
this.startAt = startAt;
return this;
}
/** StartAt - Any times before `startAt` will be skipped. Defaulted to the beginning of time. */
@javax.annotation.Nullable
public OffsetDateTime getStartAt() {
return startAt;
}
public V1ScheduleConfig setEndAt(OffsetDateTime endAt) {
this.endAt = endAt;
return this;
}
/** EndAt - Any times after `endAt` will be skipped. Defaulted to the end of time. */
@javax.annotation.Nullable
public OffsetDateTime getEndAt() {
return endAt;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1ScheduleConfig v1ScheduleConfig = (V1ScheduleConfig) o;
return (
Objects.equals(this.cronExpressions, v1ScheduleConfig.cronExpressions) &&
Objects.equals(this.calendarSpecs, v1ScheduleConfig.calendarSpecs) &&
Objects.equals(this.startAt, v1ScheduleConfig.startAt) &&
Objects.equals(this.endAt, v1ScheduleConfig.endAt)
);
}
@Override
public int hashCode() {
return Objects.hash(cronExpressions, calendarSpecs, startAt, endAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ScheduleConfig {\n");
sb.append(" cronExpressions: ").append(toIndentedString(cronExpressions)).append("\n");
sb.append(" calendarSpecs: ").append(toIndentedString(calendarSpecs)).append("\n");
sb.append(" startAt: ").append(toIndentedString(startAt)).append("\n");
sb.append(" endAt: ").append(toIndentedString(endAt)).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 ");
}
}