
com.kintone.client.model.app.report.AggregationGroup Maven / Gradle / Ivy
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.model.app.report;
/**
* An object containing a "Group by" setting of Graphs
*/
public class AggregationGroup {
/**
* The field code of the field used to determine the "Group by" option.
*/
private String code;
/**
* The time unit used for the "Group by" option.
*/
private AggregationTimeUnit per;
@java.lang.SuppressWarnings("all")
public AggregationGroup() {
}
/**
* The field code of the field used to determine the "Group by" option.
*/
@java.lang.SuppressWarnings("all")
public String getCode() {
return this.code;
}
/**
* The time unit used for the "Group by" option.
*/
@java.lang.SuppressWarnings("all")
public AggregationTimeUnit getPer() {
return this.per;
}
/**
* The field code of the field used to determine the "Group by" option.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AggregationGroup setCode(final String code) {
this.code = code;
return this;
}
/**
* The time unit used for the "Group by" option.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AggregationGroup setPer(final AggregationTimeUnit per) {
this.per = per;
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 AggregationGroup)) return false;
final AggregationGroup other = (AggregationGroup) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$code = this.getCode();
final java.lang.Object other$code = other.getCode();
if (this$code == null ? other$code != null : !this$code.equals(other$code)) return false;
final java.lang.Object this$per = this.getPer();
final java.lang.Object other$per = other.getPer();
if (this$per == null ? other$per != null : !this$per.equals(other$per)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof AggregationGroup;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $code = this.getCode();
result = result * PRIME + ($code == null ? 43 : $code.hashCode());
final java.lang.Object $per = this.getPer();
result = result * PRIME + ($per == null ? 43 : $per.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "AggregationGroup(code=" + this.getCode() + ", per=" + this.getPer() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy