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

import lombok.NonNull;
import net.md_5.bungee.api.chat.ClickEvent;

/**
 * Represents a static dialog action.
 */
public class StaticAction implements Action {
    @NonNull
    private ClickEvent clickEvent;

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public StaticAction(@NonNull final ClickEvent clickEvent) {
        if (clickEvent == null) {
            throw new java.lang.NullPointerException("clickEvent is marked non-null but is null");
        }
        this.clickEvent = clickEvent;
    }

    @NonNull
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public ClickEvent clickEvent() {
        return this.clickEvent;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public StaticAction clickEvent(@NonNull final ClickEvent clickEvent) {
        if (clickEvent == null) {
            throw new java.lang.NullPointerException("clickEvent is marked non-null but is null");
        }
        this.clickEvent = clickEvent;
        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 StaticAction)) return false;
        final StaticAction other = (StaticAction) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$clickEvent = this.clickEvent();
        final java.lang.Object other$clickEvent = other.clickEvent();
        if (this$clickEvent == null ? other$clickEvent != null : !this$clickEvent.equals(other$clickEvent)) return false;
        return true;
    }

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

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

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