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

com.kintone.client.model.app.report.EveryYearPeriod Maven / Gradle / Ivy

// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.model.app.report;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.time.LocalTime;

@JsonIgnoreProperties(value = "every", allowGetters = true)
public class EveryYearPeriod implements PeriodicReportPeriod {
    /**
     * The month when the Periodic Report will be generated. The month is returned as an integer,
     * ranging from 1 (January) to 12 (December).
     */
    private Integer month;
    /**
     * The day when the Periodic Report will be generated. The day is returned as an integer, ranging
     * from 1 to 31.
     */
    private Integer dayOfMonth;
    /**
     * The time when the Periodic Report will be generated.
     */
    @JsonFormat(pattern = "HH:mm")
    private LocalTime time;

    /**
     * {@inheritDoc}
     */
    @Override
    public IntervalType getEvery() {
        return IntervalType.YEAR;
    }

    @java.lang.SuppressWarnings("all")
    public EveryYearPeriod() {
    }

    /**
     * The month when the Periodic Report will be generated. The month is returned as an integer,
     * ranging from 1 (January) to 12 (December).
     */
    @java.lang.SuppressWarnings("all")
    public Integer getMonth() {
        return this.month;
    }

    /**
     * The day when the Periodic Report will be generated. The day is returned as an integer, ranging
     * from 1 to 31.
     */
    @java.lang.SuppressWarnings("all")
    public Integer getDayOfMonth() {
        return this.dayOfMonth;
    }

    /**
     * The time when the Periodic Report will be generated.
     */
    @java.lang.SuppressWarnings("all")
    public LocalTime getTime() {
        return this.time;
    }

    /**
     * The month when the Periodic Report will be generated. The month is returned as an integer,
     * ranging from 1 (January) to 12 (December).
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public EveryYearPeriod setMonth(final Integer month) {
        this.month = month;
        return this;
    }

    /**
     * The day when the Periodic Report will be generated. The day is returned as an integer, ranging
     * from 1 to 31.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public EveryYearPeriod setDayOfMonth(final Integer dayOfMonth) {
        this.dayOfMonth = dayOfMonth;
        return this;
    }

    /**
     * The time when the Periodic Report will be generated.
     * @return {@code this}.
     */
    @JsonFormat(pattern = "HH:mm")
    @java.lang.SuppressWarnings("all")
    public EveryYearPeriod setTime(final LocalTime time) {
        this.time = time;
        return this;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof EveryYearPeriod)) return false;
        final EveryYearPeriod other = (EveryYearPeriod) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$month = this.getMonth();
        final java.lang.Object other$month = other.getMonth();
        if (this$month == null ? other$month != null : !this$month.equals(other$month)) return false;
        final java.lang.Object this$dayOfMonth = this.getDayOfMonth();
        final java.lang.Object other$dayOfMonth = other.getDayOfMonth();
        if (this$dayOfMonth == null ? other$dayOfMonth != null : !this$dayOfMonth.equals(other$dayOfMonth)) return false;
        final java.lang.Object this$time = this.getTime();
        final java.lang.Object other$time = other.getTime();
        if (this$time == null ? other$time != null : !this$time.equals(other$time)) return false;
        return true;
    }

    @java.lang.SuppressWarnings("all")
    protected boolean canEqual(final java.lang.Object other) {
        return other instanceof EveryYearPeriod;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $month = this.getMonth();
        result = result * PRIME + ($month == null ? 43 : $month.hashCode());
        final java.lang.Object $dayOfMonth = this.getDayOfMonth();
        result = result * PRIME + ($dayOfMonth == null ? 43 : $dayOfMonth.hashCode());
        final java.lang.Object $time = this.getTime();
        result = result * PRIME + ($time == null ? 43 : $time.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "EveryYearPeriod(month=" + this.getMonth() + ", dayOfMonth=" + this.getDayOfMonth() + ", time=" + this.getTime() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy