com.atlan.model.events.AssetCreatePayload 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;
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AssetCreatePayload.AssetCreatePayloadBuilderImpl.class)
public class AssetCreatePayload extends AtlanEventPayload {
private static final long serialVersionUID = 2L;
public static final String TYPE_NAME = "ENTITY_CREATE";
/**
* Fixed type for asset-related events.
*/
String type;
/**
* Fixed operation for asset creation payloads.
*/
String operationType;
@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 AssetCreatePayloadBuilder> 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.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected B $fillValuesFrom(final C instance) {
super.$fillValuesFrom(instance);
AssetCreatePayload.AssetCreatePayloadBuilder.$fillValuesFromInstanceIntoBuilder(instance, this);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static void $fillValuesFromInstanceIntoBuilder(final AssetCreatePayload instance, final AssetCreatePayload.AssetCreatePayloadBuilder, ?> b) {
b.type(instance.type);
b.operationType(instance.operationType);
}
/**
* 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 creation 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();
}
@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 "AssetCreatePayload.AssetCreatePayloadBuilder(super=" + super.toString() + ", type$value=" + this.type$value + ", operationType$value=" + this.operationType$value + ")";
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
static final class AssetCreatePayloadBuilderImpl extends AssetCreatePayload.AssetCreatePayloadBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private AssetCreatePayloadBuilderImpl() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected AssetCreatePayload.AssetCreatePayloadBuilderImpl self() {
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public AssetCreatePayload build() {
return new AssetCreatePayload(this);
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected AssetCreatePayload(final AssetCreatePayload.AssetCreatePayloadBuilder, ?> b) {
super(b);
if (b.type$set) this.type = b.type$value;
else this.type = AssetCreatePayload.$default$type();
if (b.operationType$set) this.operationType = b.operationType$value;
else this.operationType = AssetCreatePayload.$default$operationType();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static AssetCreatePayload.AssetCreatePayloadBuilder, ?> builder() {
return new AssetCreatePayload.AssetCreatePayloadBuilderImpl();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public AssetCreatePayload.AssetCreatePayloadBuilder, ?> toBuilder() {
return new AssetCreatePayload.AssetCreatePayloadBuilderImpl().$fillValuesFrom(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 AssetCreatePayload)) return false;
final AssetCreatePayload other = (AssetCreatePayload) 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;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof AssetCreatePayload;
}
@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());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public java.lang.String toString() {
return "AssetCreatePayload(super=" + super.toString() + ", type=" + this.getType() + ", operationType=" + this.getOperationType() + ")";
}
/**
* Fixed type for asset-related events.
*/
@Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getType() {
return this.type;
}
/**
* Fixed operation for asset creation payloads.
*/
@Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getOperationType() {
return this.operationType;
}
}