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

com.kintone.client.api.app.UpdateAppCustomizeRequest Maven / Gradle / Ivy

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

import com.kintone.client.api.KintoneRequest;
import com.kintone.client.model.app.CustomizeBody;
import com.kintone.client.model.app.CustomizeScope;

/**
 * A request object for Update App Customize API.
 */
public class UpdateAppCustomizeRequest implements KintoneRequest {
    /**
     * The App ID (required).
     */
    private Long app;
    /**
     * The scope of customization (optional). If set to null, leaves this setting unchanged.
     */
    private CustomizeScope scope;
    /**
     * An object containing data of JavaScript and CSS files for the desktop (optional). If set to
     * null, leaves this setting unchanged.
     */
    private CustomizeBody desktop;
    /**
     * An object containing data of JavaScript and CSS files for the mobile (optional). If set to
     * null, leaves this setting unchanged.
     */
    private CustomizeBody mobile;
    /**
     * The expected revision number of the App settings (optional). The request will fail if the
     * revision number is not the latest revision. The revision will not be checked if this parameter
     * is null, or -1 is specified.
     */
    private Long revision;

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

    /**
     * The App ID (required).
     */
    @java.lang.SuppressWarnings("all")
    public Long getApp() {
        return this.app;
    }

    /**
     * The scope of customization (optional). If set to null, leaves this setting unchanged.
     */
    @java.lang.SuppressWarnings("all")
    public CustomizeScope getScope() {
        return this.scope;
    }

    /**
     * An object containing data of JavaScript and CSS files for the desktop (optional). If set to
     * null, leaves this setting unchanged.
     */
    @java.lang.SuppressWarnings("all")
    public CustomizeBody getDesktop() {
        return this.desktop;
    }

    /**
     * An object containing data of JavaScript and CSS files for the mobile (optional). If set to
     * null, leaves this setting unchanged.
     */
    @java.lang.SuppressWarnings("all")
    public CustomizeBody getMobile() {
        return this.mobile;
    }

    /**
     * The expected revision number of the App settings (optional). The request will fail if the
     * revision number is not the latest revision. The revision will not be checked if this parameter
     * is null, or -1 is specified.
     */
    @java.lang.SuppressWarnings("all")
    public Long getRevision() {
        return this.revision;
    }

    /**
     * The App ID (required).
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public UpdateAppCustomizeRequest setApp(final Long app) {
        this.app = app;
        return this;
    }

    /**
     * The scope of customization (optional). If set to null, leaves this setting unchanged.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public UpdateAppCustomizeRequest setScope(final CustomizeScope scope) {
        this.scope = scope;
        return this;
    }

    /**
     * An object containing data of JavaScript and CSS files for the desktop (optional). If set to
     * null, leaves this setting unchanged.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public UpdateAppCustomizeRequest setDesktop(final CustomizeBody desktop) {
        this.desktop = desktop;
        return this;
    }

    /**
     * An object containing data of JavaScript and CSS files for the mobile (optional). If set to
     * null, leaves this setting unchanged.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public UpdateAppCustomizeRequest setMobile(final CustomizeBody mobile) {
        this.mobile = mobile;
        return this;
    }

    /**
     * The expected revision number of the App settings (optional). The request will fail if the
     * revision number is not the latest revision. The revision will not be checked if this parameter
     * is null, or -1 is specified.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public UpdateAppCustomizeRequest setRevision(final Long revision) {
        this.revision = revision;
        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 UpdateAppCustomizeRequest)) return false;
        final UpdateAppCustomizeRequest other = (UpdateAppCustomizeRequest) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$app = this.getApp();
        final java.lang.Object other$app = other.getApp();
        if (this$app == null ? other$app != null : !this$app.equals(other$app)) return false;
        final java.lang.Object this$revision = this.getRevision();
        final java.lang.Object other$revision = other.getRevision();
        if (this$revision == null ? other$revision != null : !this$revision.equals(other$revision)) return false;
        final java.lang.Object this$scope = this.getScope();
        final java.lang.Object other$scope = other.getScope();
        if (this$scope == null ? other$scope != null : !this$scope.equals(other$scope)) return false;
        final java.lang.Object this$desktop = this.getDesktop();
        final java.lang.Object other$desktop = other.getDesktop();
        if (this$desktop == null ? other$desktop != null : !this$desktop.equals(other$desktop)) return false;
        final java.lang.Object this$mobile = this.getMobile();
        final java.lang.Object other$mobile = other.getMobile();
        if (this$mobile == null ? other$mobile != null : !this$mobile.equals(other$mobile)) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $app = this.getApp();
        result = result * PRIME + ($app == null ? 43 : $app.hashCode());
        final java.lang.Object $revision = this.getRevision();
        result = result * PRIME + ($revision == null ? 43 : $revision.hashCode());
        final java.lang.Object $scope = this.getScope();
        result = result * PRIME + ($scope == null ? 43 : $scope.hashCode());
        final java.lang.Object $desktop = this.getDesktop();
        result = result * PRIME + ($desktop == null ? 43 : $desktop.hashCode());
        final java.lang.Object $mobile = this.getMobile();
        result = result * PRIME + ($mobile == null ? 43 : $mobile.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "UpdateAppCustomizeRequest(app=" + this.getApp() + ", scope=" + this.getScope() + ", desktop=" + this.getDesktop() + ", mobile=" + this.getMobile() + ", revision=" + this.getRevision() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy