
com.atlan.model.admin.KeycloakEvent Maven / Gradle / Ivy
// Generated by delombok at Wed Oct 16 22:16:03 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
Copyright 2023 Atlan Pte. Ltd. */
package com.atlan.model.admin;
import com.atlan.model.core.AtlanObject;
import com.atlan.model.enums.KeycloakEventType;
import com.fasterxml.jackson.annotation.JsonIgnore;
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = KeycloakEvent.KeycloakEventBuilderImpl.class)
public class KeycloakEvent extends AtlanObject {
private static final long serialVersionUID = 2L;
/**
* Where the event occurred (usually {@code atlan-frontend}).
*/
String clientId;
/**
* TBC
*/
@JsonIgnore
String details;
/**
* IP address from which the user logged in.
*/
String ipAddress;
/**
* Unique identifier of the realm in which the event was logged (usually {@code default}.
*/
String realmId;
/**
* Unique identifier (GUID) of the session for the event.
*/
String sessionId;
/**
* Time (epoch) when the event occurred, in milliseconds.
*/
Long time;
/**
* Type of event that occurred.
*/
KeycloakEventType type;
/**
* Unique identifier (GUID) of the user that triggered the event.
*/
String userId;
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static abstract class KeycloakEventBuilder> extends AtlanObject.AtlanObjectBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String clientId;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String details;
@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 sessionId;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private Long time;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private KeycloakEventType type;
@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);
KeycloakEvent.KeycloakEventBuilder.$fillValuesFromInstanceIntoBuilder(instance, this);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static void $fillValuesFromInstanceIntoBuilder(final KeycloakEvent instance, final KeycloakEvent.KeycloakEventBuilder, ?> b) {
b.clientId(instance.clientId);
b.details(instance.details);
b.ipAddress(instance.ipAddress);
b.realmId(instance.realmId);
b.sessionId(instance.sessionId);
b.time(instance.time);
b.type(instance.type);
b.userId(instance.userId);
}
/**
* Where the event occurred (usually {@code atlan-frontend}).
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B clientId(final String clientId) {
this.clientId = clientId;
return self();
}
/**
* TBC
* @return {@code this}.
*/
@JsonIgnore
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B details(final String details) {
this.details = details;
return self();
}
/**
* IP address from which the user logged in.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B ipAddress(final String ipAddress) {
this.ipAddress = ipAddress;
return self();
}
/**
* Unique identifier of the realm in which the event was logged (usually {@code default}.
* @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 session for the event.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B sessionId(final String sessionId) {
this.sessionId = sessionId;
return self();
}
/**
* Time (epoch) when the event occurred, in milliseconds.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B time(final Long time) {
this.time = time;
return self();
}
/**
* Type of event that occurred.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B type(final KeycloakEventType type) {
this.type = type;
return self();
}
/**
* Unique identifier (GUID) of the user that triggered the event.
* @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 "KeycloakEvent.KeycloakEventBuilder(super=" + super.toString() + ", clientId=" + this.clientId + ", details=" + this.details + ", ipAddress=" + this.ipAddress + ", realmId=" + this.realmId + ", sessionId=" + this.sessionId + ", time=" + this.time + ", type=" + this.type + ", userId=" + this.userId + ")";
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
static final class KeycloakEventBuilderImpl extends KeycloakEvent.KeycloakEventBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private KeycloakEventBuilderImpl() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected KeycloakEvent.KeycloakEventBuilderImpl self() {
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public KeycloakEvent build() {
return new KeycloakEvent(this);
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected KeycloakEvent(final KeycloakEvent.KeycloakEventBuilder, ?> b) {
super(b);
this.clientId = b.clientId;
this.details = b.details;
this.ipAddress = b.ipAddress;
this.realmId = b.realmId;
this.sessionId = b.sessionId;
this.time = b.time;
this.type = b.type;
this.userId = b.userId;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static KeycloakEvent.KeycloakEventBuilder, ?> builder() {
return new KeycloakEvent.KeycloakEventBuilderImpl();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public KeycloakEvent.KeycloakEventBuilder, ?> toBuilder() {
return new KeycloakEvent.KeycloakEventBuilderImpl().$fillValuesFrom(this);
}
/**
* Where the event occurred (usually {@code atlan-frontend}).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getClientId() {
return this.clientId;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getDetails() {
return this.details;
}
/**
* IP address from which the user logged in.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getIpAddress() {
return this.ipAddress;
}
/**
* Unique identifier of the realm in which the event was logged (usually {@code default}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getRealmId() {
return this.realmId;
}
/**
* Unique identifier (GUID) of the session for the event.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getSessionId() {
return this.sessionId;
}
/**
* Time (epoch) when the event occurred, in milliseconds.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Long getTime() {
return this.time;
}
/**
* Type of event that occurred.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public KeycloakEventType getType() {
return this.type;
}
/**
* Unique identifier (GUID) of the user that triggered the event.
*/
@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 KeycloakEvent)) return false;
final KeycloakEvent other = (KeycloakEvent) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$time = this.getTime();
final java.lang.Object other$time = other.getTime();
if (this$time == null ? other$time != null : !this$time.equals(other$time)) 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$details = this.getDetails();
final java.lang.Object other$details = other.getDetails();
if (this$details == null ? other$details != null : !this$details.equals(other$details)) 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$sessionId = this.getSessionId();
final java.lang.Object other$sessionId = other.getSessionId();
if (this$sessionId == null ? other$sessionId != null : !this$sessionId.equals(other$sessionId)) return false;
final java.lang.Object this$type = this.getType();
final java.lang.Object other$type = other.getType();
if (this$type == null ? other$type != null : !this$type.equals(other$type)) 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 KeycloakEvent;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final java.lang.Object $time = this.getTime();
result = result * PRIME + ($time == null ? 43 : $time.hashCode());
final java.lang.Object $clientId = this.getClientId();
result = result * PRIME + ($clientId == null ? 43 : $clientId.hashCode());
final java.lang.Object $details = this.getDetails();
result = result * PRIME + ($details == null ? 43 : $details.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 $sessionId = this.getSessionId();
result = result * PRIME + ($sessionId == null ? 43 : $sessionId.hashCode());
final java.lang.Object $type = this.getType();
result = result * PRIME + ($type == null ? 43 : $type.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 "KeycloakEvent(super=" + super.toString() + ", clientId=" + this.getClientId() + ", details=" + this.getDetails() + ", ipAddress=" + this.getIpAddress() + ", realmId=" + this.getRealmId() + ", sessionId=" + this.getSessionId() + ", time=" + this.getTime() + ", type=" + this.getType() + ", userId=" + this.getUserId() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy