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

com.kintone.client.model.app.report.EveryWeekPeriod 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.DayOfWeek;
import java.time.LocalTime;

@JsonIgnoreProperties(value = "every", allowGetters = true)
public class EveryWeekPeriod implements PeriodicReportPeriod {
    /**
     * The day of the week when the Periodic Report will be generated.
     */
    private DayOfWeek dayOfWeek;
    /**
     * The time when the Periodic Report will be generated.
     */
    @JsonFormat(pattern = "HH:mm")
    private LocalTime time;

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

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

    /**
     * The day of the week when the Periodic Report will be generated.
     */
    @java.lang.SuppressWarnings("all")
    public DayOfWeek getDayOfWeek() {
        return this.dayOfWeek;
    }

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

    /**
     * The day of the week when the Periodic Report will be generated.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public EveryWeekPeriod setDayOfWeek(final DayOfWeek dayOfWeek) {
        this.dayOfWeek = dayOfWeek;
        return this;
    }

    /**
     * The time when the Periodic Report will be generated.
     * @return {@code this}.
     */
    @JsonFormat(pattern = "HH:mm")
    @java.lang.SuppressWarnings("all")
    public EveryWeekPeriod 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 EveryWeekPeriod)) return false;
        final EveryWeekPeriod other = (EveryWeekPeriod) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$dayOfWeek = this.getDayOfWeek();
        final java.lang.Object other$dayOfWeek = other.getDayOfWeek();
        if (this$dayOfWeek == null ? other$dayOfWeek != null : !this$dayOfWeek.equals(other$dayOfWeek)) 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 EveryWeekPeriod;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $dayOfWeek = this.getDayOfWeek();
        result = result * PRIME + ($dayOfWeek == null ? 43 : $dayOfWeek.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 "EveryWeekPeriod(dayOfWeek=" + this.getDayOfWeek() + ", time=" + this.getTime() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy