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

com.kintone.client.model.schema.Schema Maven / Gradle / Ivy

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

import java.util.List;
import java.util.Map;

/**
 * The schema information common within all APIs, which retrieved by Get API Schema API.
 */
public final class Schema {
    /**
     * The properties of this schema.
     */
    private final Map properties;
    /**
     * The type of this schema object.
     */
    private final String type;
    /**
     * The list of required properties.
     */
    private final List required;

    @java.beans.ConstructorProperties({"properties", "type", "required"})
    @java.lang.SuppressWarnings("all")
    public Schema(final Map properties, final String type, final List required) {
        this.properties = properties;
        this.type = type;
        this.required = required;
    }

    /**
     * The properties of this schema.
     */
    @java.lang.SuppressWarnings("all")
    public Map getProperties() {
        return this.properties;
    }

    /**
     * The type of this schema object.
     */
    @java.lang.SuppressWarnings("all")
    public String getType() {
        return this.type;
    }

    /**
     * The list of required properties.
     */
    @java.lang.SuppressWarnings("all")
    public List getRequired() {
        return this.required;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof Schema)) return false;
        final Schema other = (Schema) o;
        final java.lang.Object this$properties = this.getProperties();
        final java.lang.Object other$properties = other.getProperties();
        if (this$properties == null ? other$properties != null : !this$properties.equals(other$properties)) 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$required = this.getRequired();
        final java.lang.Object other$required = other.getRequired();
        if (this$required == null ? other$required != null : !this$required.equals(other$required)) return false;
        return true;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $properties = this.getProperties();
        result = result * PRIME + ($properties == null ? 43 : $properties.hashCode());
        final java.lang.Object $type = this.getType();
        result = result * PRIME + ($type == null ? 43 : $type.hashCode());
        final java.lang.Object $required = this.getRequired();
        result = result * PRIME + ($required == null ? 43 : $required.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "Schema(properties=" + this.getProperties() + ", type=" + this.getType() + ", required=" + this.getRequired() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy