com.atlan.model.events.AssetUpdatePayload 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.assets.Asset;
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AssetUpdatePayload.AssetUpdatePayloadBuilderImpl.class)
public class AssetUpdatePayload extends AtlanEventPayload {
private static final long serialVersionUID = 2L;
public static final String TYPE_NAME = "ENTITY_UPDATE";
/**
* Fixed type for asset-related events.
*/
String type;
/**
* Fixed operation for asset modification payloads.
*/
String operationType;
/**
* Details of what was updated on the asset.
*/
Asset mutatedDetails;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static String $default$type() {
return "ENTITY_NOTIFICATION_V2";
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static String $default$operationType() {
return TYPE_NAME;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static abstract class AssetUpdatePayloadBuilder> extends AtlanEventPayload.AtlanEventPayloadBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private boolean type$set;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String type$value;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private boolean operationType$set;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String operationType$value;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private Asset mutatedDetails;
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected B $fillValuesFrom(final C instance) {
super.$fillValuesFrom(instance);
AssetUpdatePayload.AssetUpdatePayloadBuilder.$fillValuesFromInstanceIntoBuilder(instance, this);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static void $fillValuesFromInstanceIntoBuilder(final AssetUpdatePayload instance, final AssetUpdatePayload.AssetUpdatePayloadBuilder, ?> b) {
b.type(instance.type);
b.operationType(instance.operationType);
b.mutatedDetails(instance.mutatedDetails);
}
/**
* Fixed type for asset-related events.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B type(final String type) {
this.type$value = type;
type$set = true;
return self();
}
/**
* Fixed operation for asset modification payloads.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B operationType(final String operationType) {
this.operationType$value = operationType;
operationType$set = true;
return self();
}
/**
* Details of what was updated on the asset.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B mutatedDetails(final Asset mutatedDetails) {
this.mutatedDetails = mutatedDetails;
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 "AssetUpdatePayload.AssetUpdatePayloadBuilder(super=" + super.toString() + ", type$value=" + this.type$value + ", operationType$value=" + this.operationType$value + ", mutatedDetails=" + this.mutatedDetails + ")";
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
static final class AssetUpdatePayloadBuilderImpl extends AssetUpdatePayload.AssetUpdatePayloadBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private AssetUpdatePayloadBuilderImpl() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected AssetUpdatePayload.AssetUpdatePayloadBuilderImpl self() {
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public AssetUpdatePayload build() {
return new AssetUpdatePayload(this);
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected AssetUpdatePayload(final AssetUpdatePayload.AssetUpdatePayloadBuilder, ?> b) {
super(b);
if (b.type$set) this.type = b.type$value;
else this.type = AssetUpdatePayload.$default$type();
if (b.operationType$set) this.operationType = b.operationType$value;
else this.operationType = AssetUpdatePayload.$default$operationType();
this.mutatedDetails = b.mutatedDetails;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static AssetUpdatePayload.AssetUpdatePayloadBuilder, ?> builder() {
return new AssetUpdatePayload.AssetUpdatePayloadBuilderImpl();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public AssetUpdatePayload.AssetUpdatePayloadBuilder, ?> toBuilder() {
return new AssetUpdatePayload.AssetUpdatePayloadBuilderImpl().$fillValuesFrom(this);
}
/**
* Details of what was updated on the asset.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Asset getMutatedDetails() {
return this.mutatedDetails;
}
@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 AssetUpdatePayload)) return false;
final AssetUpdatePayload other = (AssetUpdatePayload) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) 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$operationType = this.getOperationType();
final java.lang.Object other$operationType = other.getOperationType();
if (this$operationType == null ? other$operationType != null : !this$operationType.equals(other$operationType)) return false;
final java.lang.Object this$mutatedDetails = this.getMutatedDetails();
final java.lang.Object other$mutatedDetails = other.getMutatedDetails();
if (this$mutatedDetails == null ? other$mutatedDetails != null : !this$mutatedDetails.equals(other$mutatedDetails)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof AssetUpdatePayload;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final java.lang.Object $type = this.getType();
result = result * PRIME + ($type == null ? 43 : $type.hashCode());
final java.lang.Object $operationType = this.getOperationType();
result = result * PRIME + ($operationType == null ? 43 : $operationType.hashCode());
final java.lang.Object $mutatedDetails = this.getMutatedDetails();
result = result * PRIME + ($mutatedDetails == null ? 43 : $mutatedDetails.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public java.lang.String toString() {
return "AssetUpdatePayload(super=" + super.toString() + ", type=" + this.getType() + ", operationType=" + this.getOperationType() + ", mutatedDetails=" + this.getMutatedDetails() + ")";
}
/**
* Fixed type for asset-related events.
*/
@Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getType() {
return this.type;
}
/**
* Fixed operation for asset modification payloads.
*/
@Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getOperationType() {
return this.operationType;
}
}