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

com.kintone.client.api.space.UpdateSpaceGuestsRequest Maven / Gradle / Ivy

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

import com.kintone.client.api.KintoneRequest;
import java.util.List;

/**
 * A request object for Update Guest Members API.
 */
public class UpdateSpaceGuestsRequest implements KintoneRequest {
    /**
     * The Guest Space ID (required).
     */
    private Long id;
    /**
     * A list of email addresses of Guest users (required).
     */
    private List guests;

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

    /**
     * The Guest Space ID (required).
     */
    @java.lang.SuppressWarnings("all")
    public Long getId() {
        return this.id;
    }

    /**
     * A list of email addresses of Guest users (required).
     */
    @java.lang.SuppressWarnings("all")
    public List getGuests() {
        return this.guests;
    }

    /**
     * The Guest Space ID (required).
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public UpdateSpaceGuestsRequest setId(final Long id) {
        this.id = id;
        return this;
    }

    /**
     * A list of email addresses of Guest users (required).
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public UpdateSpaceGuestsRequest setGuests(final List guests) {
        this.guests = guests;
        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 UpdateSpaceGuestsRequest)) return false;
        final UpdateSpaceGuestsRequest other = (UpdateSpaceGuestsRequest) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$id = this.getId();
        final java.lang.Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
        final java.lang.Object this$guests = this.getGuests();
        final java.lang.Object other$guests = other.getGuests();
        if (this$guests == null ? other$guests != null : !this$guests.equals(other$guests)) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $id = this.getId();
        result = result * PRIME + ($id == null ? 43 : $id.hashCode());
        final java.lang.Object $guests = this.getGuests();
        result = result * PRIME + ($guests == null ? 43 : $guests.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "UpdateSpaceGuestsRequest(id=" + this.getId() + ", guests=" + this.getGuests() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy