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

com.atlan.model.admin.AuthDetails Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
// Generated by delombok at Wed Oct 16 22:16:02 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
   Copyright 2023 Atlan Pte. Ltd. */
package com.atlan.model.admin;

import com.atlan.model.core.AtlanObject;

@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AuthDetails.AuthDetailsBuilderImpl.class)
public class AuthDetails extends AtlanObject {
    private static final long serialVersionUID = 2L;
    /**
     * Unique identifier (GUID) of the client that carried out the operation.
     */
    String clientId;
    /**
     * IP address from which the operation was carried out.
     */
    String ipAddress;
    /**
     * Unique name of the realm from which the operation was carried out.
     */
    String realmId;
    /**
     * Unique identifier (GUID) of the user who carried out the operation.
     */
    String userId;


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static abstract class AuthDetailsBuilder> extends AtlanObject.AtlanObjectBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String clientId;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String ipAddress;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String realmId;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String userId;

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

        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private static void $fillValuesFromInstanceIntoBuilder(final AuthDetails instance, final AuthDetails.AuthDetailsBuilder b) {
            b.clientId(instance.clientId);
            b.ipAddress(instance.ipAddress);
            b.realmId(instance.realmId);
            b.userId(instance.userId);
        }

        /**
         * Unique identifier (GUID) of the client that carried out the operation.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B clientId(final String clientId) {
            this.clientId = clientId;
            return self();
        }

        /**
         * IP address from which the operation was carried out.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B ipAddress(final String ipAddress) {
            this.ipAddress = ipAddress;
            return self();
        }

        /**
         * Unique name of the realm from which the operation was carried out.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B realmId(final String realmId) {
            this.realmId = realmId;
            return self();
        }

        /**
         * Unique identifier (GUID) of the user who carried out the operation.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B userId(final String userId) {
            this.userId = userId;
            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 "AuthDetails.AuthDetailsBuilder(super=" + super.toString() + ", clientId=" + this.clientId + ", ipAddress=" + this.ipAddress + ", realmId=" + this.realmId + ", userId=" + this.userId + ")";
        }
    }


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

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

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

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected AuthDetails(final AuthDetails.AuthDetailsBuilder b) {
        super(b);
        this.clientId = b.clientId;
        this.ipAddress = b.ipAddress;
        this.realmId = b.realmId;
        this.userId = b.userId;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static AuthDetails.AuthDetailsBuilder builder() {
        return new AuthDetails.AuthDetailsBuilderImpl();
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public AuthDetails.AuthDetailsBuilder toBuilder() {
        return new AuthDetails.AuthDetailsBuilderImpl().$fillValuesFrom(this);
    }

    /**
     * Unique identifier (GUID) of the client that carried out the operation.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getClientId() {
        return this.clientId;
    }

    /**
     * IP address from which the operation was carried out.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getIpAddress() {
        return this.ipAddress;
    }

    /**
     * Unique name of the realm from which the operation was carried out.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getRealmId() {
        return this.realmId;
    }

    /**
     * Unique identifier (GUID) of the user who carried out the operation.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getUserId() {
        return this.userId;
    }

    @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 AuthDetails)) return false;
        final AuthDetails other = (AuthDetails) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (!super.equals(o)) return false;
        final java.lang.Object this$clientId = this.getClientId();
        final java.lang.Object other$clientId = other.getClientId();
        if (this$clientId == null ? other$clientId != null : !this$clientId.equals(other$clientId)) return false;
        final java.lang.Object this$ipAddress = this.getIpAddress();
        final java.lang.Object other$ipAddress = other.getIpAddress();
        if (this$ipAddress == null ? other$ipAddress != null : !this$ipAddress.equals(other$ipAddress)) return false;
        final java.lang.Object this$realmId = this.getRealmId();
        final java.lang.Object other$realmId = other.getRealmId();
        if (this$realmId == null ? other$realmId != null : !this$realmId.equals(other$realmId)) return false;
        final java.lang.Object this$userId = this.getUserId();
        final java.lang.Object other$userId = other.getUserId();
        if (this$userId == null ? other$userId != null : !this$userId.equals(other$userId)) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final java.lang.Object $clientId = this.getClientId();
        result = result * PRIME + ($clientId == null ? 43 : $clientId.hashCode());
        final java.lang.Object $ipAddress = this.getIpAddress();
        result = result * PRIME + ($ipAddress == null ? 43 : $ipAddress.hashCode());
        final java.lang.Object $realmId = this.getRealmId();
        result = result * PRIME + ($realmId == null ? 43 : $realmId.hashCode());
        final java.lang.Object $userId = this.getUserId();
        result = result * PRIME + ($userId == null ? 43 : $userId.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "AuthDetails(super=" + super.toString() + ", clientId=" + this.getClientId() + ", ipAddress=" + this.getIpAddress() + ", realmId=" + this.getRealmId() + ", userId=" + this.getUserId() + ")";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy