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

com.clinia.model.datacatalog.V1CalendarSpec 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.ArrayList;
import java.util.List;
import java.util.Objects;

/** V1CalendarSpec */
public class V1CalendarSpec {

  @JsonProperty("second")
  private List second = new ArrayList<>();

  @JsonProperty("minute")
  private List minute = new ArrayList<>();

  @JsonProperty("hour")
  private List hour = new ArrayList<>();

  @JsonProperty("dayOfMonth")
  private List dayOfMonth = new ArrayList<>();

  @JsonProperty("month")
  private List month = new ArrayList<>();

  @JsonProperty("year")
  private List year = new ArrayList<>();

  @JsonProperty("dayOfWeek")
  private List dayOfWeek = new ArrayList<>();

  public V1CalendarSpec setSecond(List second) {
    this.second = second;
    return this;
  }

  public V1CalendarSpec addSecond(V1ScheduleRange secondItem) {
    this.second.add(secondItem);
    return this;
  }

  /** Get second */
  @javax.annotation.Nonnull
  public List getSecond() {
    return second;
  }

  public V1CalendarSpec setMinute(List minute) {
    this.minute = minute;
    return this;
  }

  public V1CalendarSpec addMinute(V1ScheduleRange minuteItem) {
    this.minute.add(minuteItem);
    return this;
  }

  /** Get minute */
  @javax.annotation.Nonnull
  public List getMinute() {
    return minute;
  }

  public V1CalendarSpec setHour(List hour) {
    this.hour = hour;
    return this;
  }

  public V1CalendarSpec addHour(V1ScheduleRange hourItem) {
    this.hour.add(hourItem);
    return this;
  }

  /** Get hour */
  @javax.annotation.Nonnull
  public List getHour() {
    return hour;
  }

  public V1CalendarSpec setDayOfMonth(List dayOfMonth) {
    this.dayOfMonth = dayOfMonth;
    return this;
  }

  public V1CalendarSpec addDayOfMonth(V1ScheduleRange dayOfMonthItem) {
    this.dayOfMonth.add(dayOfMonthItem);
    return this;
  }

  /** Get dayOfMonth */
  @javax.annotation.Nonnull
  public List getDayOfMonth() {
    return dayOfMonth;
  }

  public V1CalendarSpec setMonth(List month) {
    this.month = month;
    return this;
  }

  public V1CalendarSpec addMonth(V1ScheduleRange monthItem) {
    this.month.add(monthItem);
    return this;
  }

  /** Get month */
  @javax.annotation.Nonnull
  public List getMonth() {
    return month;
  }

  public V1CalendarSpec setYear(List year) {
    this.year = year;
    return this;
  }

  public V1CalendarSpec addYear(V1ScheduleRange yearItem) {
    this.year.add(yearItem);
    return this;
  }

  /** Get year */
  @javax.annotation.Nonnull
  public List getYear() {
    return year;
  }

  public V1CalendarSpec setDayOfWeek(List dayOfWeek) {
    this.dayOfWeek = dayOfWeek;
    return this;
  }

  public V1CalendarSpec addDayOfWeek(V1ScheduleRange dayOfWeekItem) {
    this.dayOfWeek.add(dayOfWeekItem);
    return this;
  }

  /** Get dayOfWeek */
  @javax.annotation.Nonnull
  public List getDayOfWeek() {
    return dayOfWeek;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V1CalendarSpec v1CalendarSpec = (V1CalendarSpec) o;
    return (
      Objects.equals(this.second, v1CalendarSpec.second) &&
      Objects.equals(this.minute, v1CalendarSpec.minute) &&
      Objects.equals(this.hour, v1CalendarSpec.hour) &&
      Objects.equals(this.dayOfMonth, v1CalendarSpec.dayOfMonth) &&
      Objects.equals(this.month, v1CalendarSpec.month) &&
      Objects.equals(this.year, v1CalendarSpec.year) &&
      Objects.equals(this.dayOfWeek, v1CalendarSpec.dayOfWeek)
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(second, minute, hour, dayOfMonth, month, year, dayOfWeek);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V1CalendarSpec {\n");
    sb.append("    second: ").append(toIndentedString(second)).append("\n");
    sb.append("    minute: ").append(toIndentedString(minute)).append("\n");
    sb.append("    hour: ").append(toIndentedString(hour)).append("\n");
    sb.append("    dayOfMonth: ").append(toIndentedString(dayOfMonth)).append("\n");
    sb.append("    month: ").append(toIndentedString(month)).append("\n");
    sb.append("    year: ").append(toIndentedString(year)).append("\n");
    sb.append("    dayOfWeek: ").append(toIndentedString(dayOfWeek)).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