com.kintone.client.model.app.report.AggregationSetting 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 "Function" setting of Graphs
*/
public class AggregationSetting {
/**
* The type of the "Function" option of the Graph.
*/
private AggregationFunction type;
/**
* The field code of the field used in the "Function" option of the Graph.
*/
private String code;
@java.lang.SuppressWarnings("all")
public AggregationSetting() {
}
/**
* The type of the "Function" option of the Graph.
*/
@java.lang.SuppressWarnings("all")
public AggregationFunction getType() {
return this.type;
}
/**
* The field code of the field used in the "Function" option of the Graph.
*/
@java.lang.SuppressWarnings("all")
public String getCode() {
return this.code;
}
/**
* The type of the "Function" option of the Graph.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AggregationSetting setType(final AggregationFunction type) {
this.type = type;
return this;
}
/**
* The field code of the field used in the "Function" option of the Graph.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AggregationSetting setCode(final String code) {
this.code = code;
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 AggregationSetting)) return false;
final AggregationSetting other = (AggregationSetting) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$type = this.getType();
final java.lang.Object other$type = other.getType();
if (this$type == null ? other$type != null : !this$type.equals(other$type)) 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;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof AggregationSetting;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $type = this.getType();
result = result * PRIME + ($type == null ? 43 : $type.hashCode());
final java.lang.Object $code = this.getCode();
result = result * PRIME + ($code == null ? 43 : $code.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "AggregationSetting(type=" + this.getType() + ", code=" + this.getCode() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy