content: /*
   * Copyright (c) 2020-2025 Airbyte, Inc., all rights reserved.
   */
  
  package io.airbyte.config;
  
  import com.fasterxml.jackson.annotation.JsonAnyGetter;
  import com.fasterxml.jackson.annotation.JsonAnySetter;
  import com.fasterxml.jackson.annotation.JsonIgnore;
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonProperty;
  import com.fasterxml.jackson.annotation.JsonPropertyOrder;
  import jakarta.annotation.Generated;
  import java.io.Serializable;
  import java.util.HashMap;
  import java.util.Map;
  
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @JsonPropertyOrder({
    "basicSchedule",
    "cron"
  })
  @Generated(value = "Generated by jsonSchema2Pojo")
  public class ScheduleData implements Serializable {
  
    @JsonProperty("basicSchedule")
    private BasicSchedule basicSchedule;
    @JsonProperty("cron")
    private Cron cron;
    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();
    private final static long serialVersionUID = -1679525405432974794L;
  
    @JsonProperty("basicSchedule")
    public BasicSchedule getBasicSchedule() {
      return basicSchedule;
    }
  
    @JsonProperty("basicSchedule")
    public void setBasicSchedule(BasicSchedule basicSchedule) {
      this.basicSchedule = basicSchedule;
    }
  
    public ScheduleData withBasicSchedule(BasicSchedule basicSchedule) {
      this.basicSchedule = basicSchedule;
      return this;
    }
  
    @JsonProperty("cron")
    public Cron getCron() {
      return cron;
    }
  
    @JsonProperty("cron")
    public void setCron(Cron cron) {
      this.cron = cron;
    }
  
    public ScheduleData withCron(Cron cron) {
      this.cron = cron;
      return this;
    }
  
    @JsonAnyGetter
    public Map<String, Object> getAdditionalProperties() {
      return this.additionalProperties;
    }
  
    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
      this.additionalProperties.put(name, value);
    }
  
    public ScheduleData withAdditionalProperty(String name, Object value) {
      this.additionalProperties.put(name, value);
      return this;
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append(ScheduleData.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
      sb.append("basicSchedule");
      sb.append('=');
      sb.append(((this.basicSchedule == null) ? "<null>" : this.basicSchedule));
      sb.append(',');
      sb.append("cron");
      sb.append('=');
      sb.append(((this.cron == null) ? "<null>" : this.cron));
      sb.append(',');
      sb.append("additionalProperties");
      sb.append('=');
      sb.append(((this.additionalProperties == null) ? "<null>" : this.additionalProperties));
      sb.append(',');
      if (sb.charAt((sb.length() - 1)) == ',') {
        sb.setCharAt((sb.length() - 1), ']');
      } else {
        sb.append(']');
      }
      return sb.toString();
    }
  
    @Override
    public int hashCode() {
      int result = 1;
      result = ((result * 31) + ((this.cron == null) ? 0 : this.cron.hashCode()));
      result = ((result * 31) + ((this.basicSchedule == null) ? 0 : this.basicSchedule.hashCode()));
      result = ((result * 31) + ((this.additionalProperties == null) ? 0 : this.additionalProperties.hashCode()));
      return result;
    }
  
    @Override
    public boolean equals(Object other) {
      if (other == this) {
        return true;
      }
      if ((other instanceof ScheduleData) == false) {
        return false;
      }
      ScheduleData rhs = ((ScheduleData) other);
      return ((((this.cron == rhs.cron) || ((this.cron != null) && this.cron.equals(rhs.cron)))
          && ((this.basicSchedule == rhs.basicSchedule) || ((this.basicSchedule != null) && this.basicSchedule.equals(rhs.basicSchedule))))
          && ((this.additionalProperties == rhs.additionalProperties)
              || ((this.additionalProperties != null) && this.additionalProperties.equals(rhs.additionalProperties))));
    }
  
  }
  