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

com.atlan.model.events.AtlanEvent Maven / Gradle / Ivy

// Generated by delombok at Thu Oct 10 18:56:33 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
   Copyright 2023 Atlan Pte. Ltd. */
package com.atlan.model.events;

import com.atlan.model.core.AtlanObject;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AtlanEvent.AtlanEventBuilderImpl.class)
public class AtlanEvent extends AtlanObject {
    private static final long serialVersionUID = 2L;
    /**
     * TBC
     */
    @JsonIgnore
    Object source;
    /**
     * TBC
     */
    @JsonIgnore
    Object version;
    /**
     * TBC
     */
    String msgCompressionKind;
    /**
     * TBC
     */
    Long msgSplitIdx;
    /**
     * TBC
     */
    Long msgSplitCount;
    /**
     * Originating IP address for the event.
     */
    String msgSourceIP;
    /**
     * TBC
     */
    String msgCreatedBy;
    /**
     * Timestamp (epoch) for when the event was created, in milliseconds.
     */
    Long msgCreationTime;
    /**
     * TBC
     */
    Boolean spooled;
    /**
     * Detailed contents (payload) of the event.
     */
    @JsonProperty("message")
    AtlanEventPayload payload;

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    private static String $default$msgCompressionKind() {
        return "NONE";
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    private static Long $default$msgSplitIdx() {
        return 1L;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    private static Long $default$msgSplitCount() {
        return 1L;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    private static Boolean $default$spooled() {
        return false;
    }


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static abstract class AtlanEventBuilder> extends AtlanObject.AtlanObjectBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Object source;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Object version;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private boolean msgCompressionKind$set;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String msgCompressionKind$value;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private boolean msgSplitIdx$set;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Long msgSplitIdx$value;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private boolean msgSplitCount$set;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Long msgSplitCount$value;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String msgSourceIP;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String msgCreatedBy;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Long msgCreationTime;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private boolean spooled$set;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Boolean spooled$value;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private AtlanEventPayload payload;

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        protected B $fillValuesFrom(final C instance) {
            super.$fillValuesFrom(instance);
            AtlanEvent.AtlanEventBuilder.$fillValuesFromInstanceIntoBuilder(instance, this);
            return self();
        }

        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private static void $fillValuesFromInstanceIntoBuilder(final AtlanEvent instance, final AtlanEvent.AtlanEventBuilder b) {
            b.source(instance.source);
            b.version(instance.version);
            b.msgCompressionKind(instance.msgCompressionKind);
            b.msgSplitIdx(instance.msgSplitIdx);
            b.msgSplitCount(instance.msgSplitCount);
            b.msgSourceIP(instance.msgSourceIP);
            b.msgCreatedBy(instance.msgCreatedBy);
            b.msgCreationTime(instance.msgCreationTime);
            b.spooled(instance.spooled);
            b.payload(instance.payload);
        }

        /**
         * TBC
         * @return {@code this}.
         */
        @JsonIgnore
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B source(final Object source) {
            this.source = source;
            return self();
        }

        /**
         * TBC
         * @return {@code this}.
         */
        @JsonIgnore
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B version(final Object version) {
            this.version = version;
            return self();
        }

        /**
         * TBC
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B msgCompressionKind(final String msgCompressionKind) {
            this.msgCompressionKind$value = msgCompressionKind;
            msgCompressionKind$set = true;
            return self();
        }

        /**
         * TBC
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B msgSplitIdx(final Long msgSplitIdx) {
            this.msgSplitIdx$value = msgSplitIdx;
            msgSplitIdx$set = true;
            return self();
        }

        /**
         * TBC
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B msgSplitCount(final Long msgSplitCount) {
            this.msgSplitCount$value = msgSplitCount;
            msgSplitCount$set = true;
            return self();
        }

        /**
         * Originating IP address for the event.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B msgSourceIP(final String msgSourceIP) {
            this.msgSourceIP = msgSourceIP;
            return self();
        }

        /**
         * TBC
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B msgCreatedBy(final String msgCreatedBy) {
            this.msgCreatedBy = msgCreatedBy;
            return self();
        }

        /**
         * Timestamp (epoch) for when the event was created, in milliseconds.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B msgCreationTime(final Long msgCreationTime) {
            this.msgCreationTime = msgCreationTime;
            return self();
        }

        /**
         * TBC
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B spooled(final Boolean spooled) {
            this.spooled$value = spooled;
            spooled$set = true;
            return self();
        }

        /**
         * Detailed contents (payload) of the event.
         * @return {@code this}.
         */
        @JsonProperty("message")
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B payload(final AtlanEventPayload payload) {
            this.payload = payload;
            return self();
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        protected abstract B self();

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public abstract C build();

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public java.lang.String toString() {
            return "AtlanEvent.AtlanEventBuilder(super=" + super.toString() + ", source=" + this.source + ", version=" + this.version + ", msgCompressionKind$value=" + this.msgCompressionKind$value + ", msgSplitIdx$value=" + this.msgSplitIdx$value + ", msgSplitCount$value=" + this.msgSplitCount$value + ", msgSourceIP=" + this.msgSourceIP + ", msgCreatedBy=" + this.msgCreatedBy + ", msgCreationTime=" + this.msgCreationTime + ", spooled$value=" + this.spooled$value + ", payload=" + this.payload + ")";
        }
    }


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
    static final class AtlanEventBuilderImpl extends AtlanEvent.AtlanEventBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private AtlanEventBuilderImpl() {
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        protected AtlanEvent.AtlanEventBuilderImpl self() {
            return this;
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanEvent build() {
            return new AtlanEvent(this);
        }
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected AtlanEvent(final AtlanEvent.AtlanEventBuilder b) {
        super(b);
        this.source = b.source;
        this.version = b.version;
        if (b.msgCompressionKind$set) this.msgCompressionKind = b.msgCompressionKind$value;
         else this.msgCompressionKind = AtlanEvent.$default$msgCompressionKind();
        if (b.msgSplitIdx$set) this.msgSplitIdx = b.msgSplitIdx$value;
         else this.msgSplitIdx = AtlanEvent.$default$msgSplitIdx();
        if (b.msgSplitCount$set) this.msgSplitCount = b.msgSplitCount$value;
         else this.msgSplitCount = AtlanEvent.$default$msgSplitCount();
        this.msgSourceIP = b.msgSourceIP;
        this.msgCreatedBy = b.msgCreatedBy;
        this.msgCreationTime = b.msgCreationTime;
        if (b.spooled$set) this.spooled = b.spooled$value;
         else this.spooled = AtlanEvent.$default$spooled();
        this.payload = b.payload;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static AtlanEvent.AtlanEventBuilder builder() {
        return new AtlanEvent.AtlanEventBuilderImpl();
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public AtlanEvent.AtlanEventBuilder toBuilder() {
        return new AtlanEvent.AtlanEventBuilderImpl().$fillValuesFrom(this);
    }

    /**
     * TBC
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Object getSource() {
        return this.source;
    }

    /**
     * TBC
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Object getVersion() {
        return this.version;
    }

    /**
     * TBC
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getMsgCompressionKind() {
        return this.msgCompressionKind;
    }

    /**
     * TBC
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Long getMsgSplitIdx() {
        return this.msgSplitIdx;
    }

    /**
     * TBC
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Long getMsgSplitCount() {
        return this.msgSplitCount;
    }

    /**
     * Originating IP address for the event.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getMsgSourceIP() {
        return this.msgSourceIP;
    }

    /**
     * TBC
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getMsgCreatedBy() {
        return this.msgCreatedBy;
    }

    /**
     * Timestamp (epoch) for when the event was created, in milliseconds.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Long getMsgCreationTime() {
        return this.msgCreationTime;
    }

    /**
     * TBC
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Boolean getSpooled() {
        return this.spooled;
    }

    /**
     * Detailed contents (payload) of the event.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public AtlanEventPayload getPayload() {
        return this.payload;
    }

    @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 AtlanEvent)) return false;
        final AtlanEvent other = (AtlanEvent) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (!super.equals(o)) return false;
        final java.lang.Object this$msgSplitIdx = this.getMsgSplitIdx();
        final java.lang.Object other$msgSplitIdx = other.getMsgSplitIdx();
        if (this$msgSplitIdx == null ? other$msgSplitIdx != null : !this$msgSplitIdx.equals(other$msgSplitIdx)) return false;
        final java.lang.Object this$msgSplitCount = this.getMsgSplitCount();
        final java.lang.Object other$msgSplitCount = other.getMsgSplitCount();
        if (this$msgSplitCount == null ? other$msgSplitCount != null : !this$msgSplitCount.equals(other$msgSplitCount)) return false;
        final java.lang.Object this$msgCreationTime = this.getMsgCreationTime();
        final java.lang.Object other$msgCreationTime = other.getMsgCreationTime();
        if (this$msgCreationTime == null ? other$msgCreationTime != null : !this$msgCreationTime.equals(other$msgCreationTime)) return false;
        final java.lang.Object this$spooled = this.getSpooled();
        final java.lang.Object other$spooled = other.getSpooled();
        if (this$spooled == null ? other$spooled != null : !this$spooled.equals(other$spooled)) return false;
        final java.lang.Object this$source = this.getSource();
        final java.lang.Object other$source = other.getSource();
        if (this$source == null ? other$source != null : !this$source.equals(other$source)) return false;
        final java.lang.Object this$version = this.getVersion();
        final java.lang.Object other$version = other.getVersion();
        if (this$version == null ? other$version != null : !this$version.equals(other$version)) return false;
        final java.lang.Object this$msgCompressionKind = this.getMsgCompressionKind();
        final java.lang.Object other$msgCompressionKind = other.getMsgCompressionKind();
        if (this$msgCompressionKind == null ? other$msgCompressionKind != null : !this$msgCompressionKind.equals(other$msgCompressionKind)) return false;
        final java.lang.Object this$msgSourceIP = this.getMsgSourceIP();
        final java.lang.Object other$msgSourceIP = other.getMsgSourceIP();
        if (this$msgSourceIP == null ? other$msgSourceIP != null : !this$msgSourceIP.equals(other$msgSourceIP)) return false;
        final java.lang.Object this$msgCreatedBy = this.getMsgCreatedBy();
        final java.lang.Object other$msgCreatedBy = other.getMsgCreatedBy();
        if (this$msgCreatedBy == null ? other$msgCreatedBy != null : !this$msgCreatedBy.equals(other$msgCreatedBy)) return false;
        final java.lang.Object this$payload = this.getPayload();
        final java.lang.Object other$payload = other.getPayload();
        if (this$payload == null ? other$payload != null : !this$payload.equals(other$payload)) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final java.lang.Object $msgSplitIdx = this.getMsgSplitIdx();
        result = result * PRIME + ($msgSplitIdx == null ? 43 : $msgSplitIdx.hashCode());
        final java.lang.Object $msgSplitCount = this.getMsgSplitCount();
        result = result * PRIME + ($msgSplitCount == null ? 43 : $msgSplitCount.hashCode());
        final java.lang.Object $msgCreationTime = this.getMsgCreationTime();
        result = result * PRIME + ($msgCreationTime == null ? 43 : $msgCreationTime.hashCode());
        final java.lang.Object $spooled = this.getSpooled();
        result = result * PRIME + ($spooled == null ? 43 : $spooled.hashCode());
        final java.lang.Object $source = this.getSource();
        result = result * PRIME + ($source == null ? 43 : $source.hashCode());
        final java.lang.Object $version = this.getVersion();
        result = result * PRIME + ($version == null ? 43 : $version.hashCode());
        final java.lang.Object $msgCompressionKind = this.getMsgCompressionKind();
        result = result * PRIME + ($msgCompressionKind == null ? 43 : $msgCompressionKind.hashCode());
        final java.lang.Object $msgSourceIP = this.getMsgSourceIP();
        result = result * PRIME + ($msgSourceIP == null ? 43 : $msgSourceIP.hashCode());
        final java.lang.Object $msgCreatedBy = this.getMsgCreatedBy();
        result = result * PRIME + ($msgCreatedBy == null ? 43 : $msgCreatedBy.hashCode());
        final java.lang.Object $payload = this.getPayload();
        result = result * PRIME + ($payload == null ? 43 : $payload.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "AtlanEvent(super=" + super.toString() + ", source=" + this.getSource() + ", version=" + this.getVersion() + ", msgCompressionKind=" + this.getMsgCompressionKind() + ", msgSplitIdx=" + this.getMsgSplitIdx() + ", msgSplitCount=" + this.getMsgSplitCount() + ", msgSourceIP=" + this.getMsgSourceIP() + ", msgCreatedBy=" + this.getMsgCreatedBy() + ", msgCreationTime=" + this.getMsgCreationTime() + ", spooled=" + this.getSpooled() + ", payload=" + this.getPayload() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy