// Generated by delombok at Tue Dec 16 19:34:32 UTC 2025
package net.md_5.bungee.api.dialog.action;

import com.google.gson.JsonElement;
import lombok.NonNull;

/**
 * Submits the dialog with the given ID and values as a payload.
 */
public class CustomClickAction implements Action {
    /**
     * The namespaced key of the submission.
     */
    @NonNull
    private String id;
    /**
     * Fields to be added to the submission payload.
     */
    private JsonElement additions;

    /**
     * Creates a new {@code CustomClickAction} instance.
     *
     * @param id The namespaced key of the submission.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public CustomClickAction(@NonNull final String id) {
        if (id == null) {
            throw new java.lang.NullPointerException("id is marked non-null but is null");
        }
        this.id = id;
    }

    /**
     * The namespaced key of the submission.
     */
    @NonNull
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String id() {
        return this.id;
    }

    /**
     * Fields to be added to the submission payload.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public JsonElement additions() {
        return this.additions;
    }

    /**
     * The namespaced key of the submission.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public CustomClickAction id(@NonNull final String id) {
        if (id == null) {
            throw new java.lang.NullPointerException("id is marked non-null but is null");
        }
        this.id = id;
        return this;
    }

    /**
     * Fields to be added to the submission payload.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public CustomClickAction additions(final JsonElement additions) {
        this.additions = additions;
        return this;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof CustomClickAction)) return false;
        final CustomClickAction other = (CustomClickAction) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$id = this.id();
        final java.lang.Object other$id = other.id();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
        final java.lang.Object this$additions = this.additions();
        final java.lang.Object other$additions = other.additions();
        if (this$additions == null ? other$additions != null : !this$additions.equals(other$additions)) return false;
        return true;
    }

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

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "CustomClickAction(super=" + super.toString() + ", id=" + this.id() + ", additions=" + this.additions() + ")";
    }
}
