All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clinia.model.datacatalog.V1ScheduleRange 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.util.Objects;

/** V1ScheduleRange */
public class V1ScheduleRange {

  @JsonProperty("start")
  private Integer start;

  @JsonProperty("end")
  private Integer end;

  @JsonProperty("step")
  private Integer step;

  public V1ScheduleRange setStart(Integer start) {
    this.start = start;
    return this;
  }

  /** The start of the range. */
  @javax.annotation.Nonnull
  public Integer getStart() {
    return start;
  }

  public V1ScheduleRange setEnd(Integer end) {
    this.end = end;
    return this;
  }

  /** The end of the range. */
  @javax.annotation.Nonnull
  public Integer getEnd() {
    return end;
  }

  public V1ScheduleRange setStep(Integer step) {
    this.step = step;
    return this;
  }

  /** The step inside range. */
  @javax.annotation.Nonnull
  public Integer getStep() {
    return step;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V1ScheduleRange v1ScheduleRange = (V1ScheduleRange) o;
    return (
      Objects.equals(this.start, v1ScheduleRange.start) &&
      Objects.equals(this.end, v1ScheduleRange.end) &&
      Objects.equals(this.step, v1ScheduleRange.step)
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(start, end, step);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V1ScheduleRange {\n");
    sb.append("    start: ").append(toIndentedString(start)).append("\n");
    sb.append("    end: ").append(toIndentedString(end)).append("\n");
    sb.append("    step: ").append(toIndentedString(step)).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    ");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy