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

com.kintone.client.model.app.field.FieldMapping Maven / Gradle / Ivy

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

/**
 * The "Field Mappings" setting of a Lookup field.
 */
public class FieldMapping {
    /**
     * The field code of the field set for the mapping endpoint.
     */
    private String field;
    /**
     * The field code of the field selected for "Field in datasource app".
     */
    private String relatedField;

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

    /**
     * The field code of the field set for the mapping endpoint.
     */
    @java.lang.SuppressWarnings("all")
    public String getField() {
        return this.field;
    }

    /**
     * The field code of the field selected for "Field in datasource app".
     */
    @java.lang.SuppressWarnings("all")
    public String getRelatedField() {
        return this.relatedField;
    }

    /**
     * The field code of the field set for the mapping endpoint.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public FieldMapping setField(final String field) {
        this.field = field;
        return this;
    }

    /**
     * The field code of the field selected for "Field in datasource app".
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public FieldMapping setRelatedField(final String relatedField) {
        this.relatedField = relatedField;
        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 FieldMapping)) return false;
        final FieldMapping other = (FieldMapping) 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$relatedField = this.getRelatedField();
        final java.lang.Object other$relatedField = other.getRelatedField();
        if (this$relatedField == null ? other$relatedField != null : !this$relatedField.equals(other$relatedField)) return false;
        return true;
    }

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

    @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 $relatedField = this.getRelatedField();
        result = result * PRIME + ($relatedField == null ? 43 : $relatedField.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "FieldMapping(field=" + this.getField() + ", relatedField=" + this.getRelatedField() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy