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

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

There is a newer version: 2.3.0
Show newest version
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.api.app;

import com.kintone.client.api.KintoneRequest;

/**
 * A request object for Add App API.
 */
public class AddAppRequest implements KintoneRequest {
    /**
     * The App name (required).
     */
    private String name;
    /**
     * The Space ID of where the App will be created (optional). If set to null, the App will not
     * attached to any Space.
     */
    private Long space;
    /**
     * The Thread ID of the thread in the Space where the App will be created. This parameter is
     * required if the "space" parameter is not null.
     */
    private Long thread;

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

    /**
     * The App name (required).
     */
    @java.lang.SuppressWarnings("all")
    public String getName() {
        return this.name;
    }

    /**
     * The Space ID of where the App will be created (optional). If set to null, the App will not
     * attached to any Space.
     */
    @java.lang.SuppressWarnings("all")
    public Long getSpace() {
        return this.space;
    }

    /**
     * The Thread ID of the thread in the Space where the App will be created. This parameter is
     * required if the "space" parameter is not null.
     */
    @java.lang.SuppressWarnings("all")
    public Long getThread() {
        return this.thread;
    }

    /**
     * The App name (required).
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public AddAppRequest setName(final String name) {
        this.name = name;
        return this;
    }

    /**
     * The Space ID of where the App will be created (optional). If set to null, the App will not
     * attached to any Space.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public AddAppRequest setSpace(final Long space) {
        this.space = space;
        return this;
    }

    /**
     * The Thread ID of the thread in the Space where the App will be created. This parameter is
     * required if the "space" parameter is not null.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public AddAppRequest setThread(final Long thread) {
        this.thread = thread;
        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 AddAppRequest)) return false;
        final AddAppRequest other = (AddAppRequest) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$space = this.getSpace();
        final java.lang.Object other$space = other.getSpace();
        if (this$space == null ? other$space != null : !this$space.equals(other$space)) return false;
        final java.lang.Object this$thread = this.getThread();
        final java.lang.Object other$thread = other.getThread();
        if (this$thread == null ? other$thread != null : !this$thread.equals(other$thread)) return false;
        final java.lang.Object this$name = this.getName();
        final java.lang.Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $space = this.getSpace();
        result = result * PRIME + ($space == null ? 43 : $space.hashCode());
        final java.lang.Object $thread = this.getThread();
        result = result * PRIME + ($thread == null ? 43 : $thread.hashCode());
        final java.lang.Object $name = this.getName();
        result = result * PRIME + ($name == null ? 43 : $name.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "AddAppRequest(name=" + this.getName() + ", space=" + this.getSpace() + ", thread=" + this.getThread() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy