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

com.kintone.client.model.record.UpdateKey Maven / Gradle / Ivy

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

/**
 * An object for specifying the record to be updated.
 */
public class UpdateKey {
    /**
     * The field code of the unique key (required).
     */
    private String field;
    /**
     * The value of the unique key (required).
     */
    private Object value;

    public UpdateKey(String field, String value) {
        this.field = field;
        this.value = value;
    }

    public UpdateKey(String field, Number value) {
        this.field = field;
        this.value = value;
    }

    public UpdateKey setValue(String value) {
        this.value = value;
        return this;
    }

    public UpdateKey setValue(Number value) {
        this.value = value;
        return this;
    }

    /**
     * The field code of the unique key (required).
     */
    @java.lang.SuppressWarnings("all")
    public String getField() {
        return this.field;
    }

    /**
     * The value of the unique key (required).
     */
    @java.lang.SuppressWarnings("all")
    public Object getValue() {
        return this.value;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "UpdateKey(field=" + this.getField() + ", value=" + this.getValue() + ")";
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof UpdateKey)) return false;
        final UpdateKey other = (UpdateKey) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$field = this.getField();
        final java.lang.Object other$field = other.getField();
        if (this$field == null ? other$field != null : !this$field.equals(other$field)) return false;
        final java.lang.Object this$value = this.getValue();
        final java.lang.Object other$value = other.getValue();
        if (this$value == null ? other$value != null : !this$value.equals(other$value)) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $field = this.getField();
        result = result * PRIME + ($field == null ? 43 : $field.hashCode());
        final java.lang.Object $value = this.getValue();
        result = result * PRIME + ($value == null ? 43 : $value.hashCode());
        return result;
    }

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

    /**
     * The field code of the unique key (required).
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public UpdateKey setField(final String field) {
        this.field = field;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy