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

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

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

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.kintone.client.model.record.FieldType;

/**
 * An object containing the properties of a Text field for getting and setting the field settings.
 */
@JsonIgnoreProperties(value = "type", allowGetters = true)
public class SingleLineTextFieldProperty implements FieldProperty {
    /**
     * The field code of the field.
     */
    private String code;
    /**
     * The field name.
     */
    private String label;
    /**
     * The "Hide field name" option.
     */
    private Boolean noLabel;
    /**
     * The "Required field" option.
     */
    private Boolean required;
    /**
     * The "Prohibit duplicate values" option.
     */
    private Boolean unique;
    /**
     * The maximum number of digits for the field.
     */
    private Long maxLength;
    /**
     * The minimum number of digits for the field.
     */
    private Long minLength;
    /**
     * The default value.
     */
    private String defaultValue;
    /**
     * The formula expression used in the field.
     */
    private String expression;
    /**
     * The "Hide formula" settings for the field.
     */
    private Boolean hideExpression;

    /**
     * {@inheritDoc}
     */
    @Override
    public FieldType getType() {
        return FieldType.SINGLE_LINE_TEXT;
    }

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

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

    /**
     * The field name.
     */
    @java.lang.SuppressWarnings("all")
    public String getLabel() {
        return this.label;
    }

    /**
     * The "Hide field name" option.
     *
     * @return true if the field's name will be hidden
     */
    @java.lang.SuppressWarnings("all")
    public Boolean getNoLabel() {
        return this.noLabel;
    }

    /**
     * The "Required field" option.
     *
     * @return true if the field will be a required field.
     */
    @java.lang.SuppressWarnings("all")
    public Boolean getRequired() {
        return this.required;
    }

    /**
     * The "Prohibit duplicate values" option.
     *
     * @return true if duplicate values will be prohibited.
     */
    @java.lang.SuppressWarnings("all")
    public Boolean getUnique() {
        return this.unique;
    }

    /**
     * The maximum number of digits for the field.
     */
    @java.lang.SuppressWarnings("all")
    public Long getMaxLength() {
        return this.maxLength;
    }

    /**
     * The minimum number of digits for the field.
     */
    @java.lang.SuppressWarnings("all")
    public Long getMinLength() {
        return this.minLength;
    }

    /**
     * The default value.
     */
    @java.lang.SuppressWarnings("all")
    public String getDefaultValue() {
        return this.defaultValue;
    }

    /**
     * The formula expression used in the field.
     */
    @java.lang.SuppressWarnings("all")
    public String getExpression() {
        return this.expression;
    }

    /**
     * The "Hide formula" settings for the field.
     *
     * @return true if the formula will be hidden.
     */
    @java.lang.SuppressWarnings("all")
    public Boolean getHideExpression() {
        return this.hideExpression;
    }

    /**
     * The field code of the field.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public SingleLineTextFieldProperty setCode(final String code) {
        this.code = code;
        return this;
    }

    /**
     * The field name.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public SingleLineTextFieldProperty setLabel(final String label) {
        this.label = label;
        return this;
    }

    /**
     * The "Hide field name" option.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public SingleLineTextFieldProperty setNoLabel(final Boolean noLabel) {
        this.noLabel = noLabel;
        return this;
    }

    /**
     * The "Required field" option.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public SingleLineTextFieldProperty setRequired(final Boolean required) {
        this.required = required;
        return this;
    }

    /**
     * The "Prohibit duplicate values" option.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public SingleLineTextFieldProperty setUnique(final Boolean unique) {
        this.unique = unique;
        return this;
    }

    /**
     * The maximum number of digits for the field.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public SingleLineTextFieldProperty setMaxLength(final Long maxLength) {
        this.maxLength = maxLength;
        return this;
    }

    /**
     * The minimum number of digits for the field.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public SingleLineTextFieldProperty setMinLength(final Long minLength) {
        this.minLength = minLength;
        return this;
    }

    /**
     * The default value.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public SingleLineTextFieldProperty setDefaultValue(final String defaultValue) {
        this.defaultValue = defaultValue;
        return this;
    }

    /**
     * The formula expression used in the field.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public SingleLineTextFieldProperty setExpression(final String expression) {
        this.expression = expression;
        return this;
    }

    /**
     * The "Hide formula" settings for the field.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public SingleLineTextFieldProperty setHideExpression(final Boolean hideExpression) {
        this.hideExpression = hideExpression;
        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 SingleLineTextFieldProperty)) return false;
        final SingleLineTextFieldProperty other = (SingleLineTextFieldProperty) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$noLabel = this.getNoLabel();
        final java.lang.Object other$noLabel = other.getNoLabel();
        if (this$noLabel == null ? other$noLabel != null : !this$noLabel.equals(other$noLabel)) 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;
        final java.lang.Object this$unique = this.getUnique();
        final java.lang.Object other$unique = other.getUnique();
        if (this$unique == null ? other$unique != null : !this$unique.equals(other$unique)) return false;
        final java.lang.Object this$maxLength = this.getMaxLength();
        final java.lang.Object other$maxLength = other.getMaxLength();
        if (this$maxLength == null ? other$maxLength != null : !this$maxLength.equals(other$maxLength)) return false;
        final java.lang.Object this$minLength = this.getMinLength();
        final java.lang.Object other$minLength = other.getMinLength();
        if (this$minLength == null ? other$minLength != null : !this$minLength.equals(other$minLength)) return false;
        final java.lang.Object this$hideExpression = this.getHideExpression();
        final java.lang.Object other$hideExpression = other.getHideExpression();
        if (this$hideExpression == null ? other$hideExpression != null : !this$hideExpression.equals(other$hideExpression)) 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$label = this.getLabel();
        final java.lang.Object other$label = other.getLabel();
        if (this$label == null ? other$label != null : !this$label.equals(other$label)) return false;
        final java.lang.Object this$defaultValue = this.getDefaultValue();
        final java.lang.Object other$defaultValue = other.getDefaultValue();
        if (this$defaultValue == null ? other$defaultValue != null : !this$defaultValue.equals(other$defaultValue)) return false;
        final java.lang.Object this$expression = this.getExpression();
        final java.lang.Object other$expression = other.getExpression();
        if (this$expression == null ? other$expression != null : !this$expression.equals(other$expression)) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $noLabel = this.getNoLabel();
        result = result * PRIME + ($noLabel == null ? 43 : $noLabel.hashCode());
        final java.lang.Object $required = this.getRequired();
        result = result * PRIME + ($required == null ? 43 : $required.hashCode());
        final java.lang.Object $unique = this.getUnique();
        result = result * PRIME + ($unique == null ? 43 : $unique.hashCode());
        final java.lang.Object $maxLength = this.getMaxLength();
        result = result * PRIME + ($maxLength == null ? 43 : $maxLength.hashCode());
        final java.lang.Object $minLength = this.getMinLength();
        result = result * PRIME + ($minLength == null ? 43 : $minLength.hashCode());
        final java.lang.Object $hideExpression = this.getHideExpression();
        result = result * PRIME + ($hideExpression == null ? 43 : $hideExpression.hashCode());
        final java.lang.Object $code = this.getCode();
        result = result * PRIME + ($code == null ? 43 : $code.hashCode());
        final java.lang.Object $label = this.getLabel();
        result = result * PRIME + ($label == null ? 43 : $label.hashCode());
        final java.lang.Object $defaultValue = this.getDefaultValue();
        result = result * PRIME + ($defaultValue == null ? 43 : $defaultValue.hashCode());
        final java.lang.Object $expression = this.getExpression();
        result = result * PRIME + ($expression == null ? 43 : $expression.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "SingleLineTextFieldProperty(code=" + this.getCode() + ", label=" + this.getLabel() + ", noLabel=" + this.getNoLabel() + ", required=" + this.getRequired() + ", unique=" + this.getUnique() + ", maxLength=" + this.getMaxLength() + ", minLength=" + this.getMinLength() + ", defaultValue=" + this.getDefaultValue() + ", expression=" + this.getExpression() + ", hideExpression=" + this.getHideExpression() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy