
com.atlan.model.search.CustomMetadataAttributesAuditDetail Maven / Gradle / Ivy
// Generated by delombok at Wed Oct 16 22:16:04 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.model.search;
import com.atlan.model.core.CustomMetadataAttributes;
import com.atlan.serde.CustomMetadataAuditDeserializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
/**
* Capture the attributes and values for custom metadata as tracked through the audit log.
*/
@JsonDeserialize(using = CustomMetadataAuditDeserializer.class)
public class CustomMetadataAttributesAuditDetail extends CustomMetadataAttributes implements AuditDetail {
private static final long serialVersionUID = 2L;
/**
* Unique name of the custom metadata set (structure).
*/
String typeName;
/**
* Indicates whether this custom metadata audit entry is empty,
* typically true when the custom metadata has since been deleted from Atlan.
*/
Boolean empty;
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static abstract class CustomMetadataAttributesAuditDetailBuilder> extends CustomMetadataAttributes.CustomMetadataAttributesBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String typeName;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private Boolean empty;
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected B $fillValuesFrom(final C instance) {
super.$fillValuesFrom(instance);
CustomMetadataAttributesAuditDetail.CustomMetadataAttributesAuditDetailBuilder.$fillValuesFromInstanceIntoBuilder(instance, this);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static void $fillValuesFromInstanceIntoBuilder(final CustomMetadataAttributesAuditDetail instance, final CustomMetadataAttributesAuditDetail.CustomMetadataAttributesAuditDetailBuilder, ?> b) {
b.typeName(instance.typeName);
b.empty(instance.empty);
}
/**
* Unique name of the custom metadata set (structure).
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B typeName(final String typeName) {
this.typeName = typeName;
return self();
}
/**
* Indicates whether this custom metadata audit entry is empty,
* typically true when the custom metadata has since been deleted from Atlan.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B empty(final Boolean empty) {
this.empty = empty;
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 "CustomMetadataAttributesAuditDetail.CustomMetadataAttributesAuditDetailBuilder(super=" + super.toString() + ", typeName=" + this.typeName + ", empty=" + this.empty + ")";
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static final class CustomMetadataAttributesAuditDetailBuilderImpl extends CustomMetadataAttributesAuditDetail.CustomMetadataAttributesAuditDetailBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private CustomMetadataAttributesAuditDetailBuilderImpl() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected CustomMetadataAttributesAuditDetail.CustomMetadataAttributesAuditDetailBuilderImpl self() {
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public CustomMetadataAttributesAuditDetail build() {
return new CustomMetadataAttributesAuditDetail(this);
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected CustomMetadataAttributesAuditDetail(final CustomMetadataAttributesAuditDetail.CustomMetadataAttributesAuditDetailBuilder, ?> b) {
super(b);
this.typeName = b.typeName;
this.empty = b.empty;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static CustomMetadataAttributesAuditDetail.CustomMetadataAttributesAuditDetailBuilder, ?> builder() {
return new CustomMetadataAttributesAuditDetail.CustomMetadataAttributesAuditDetailBuilderImpl();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public CustomMetadataAttributesAuditDetail.CustomMetadataAttributesAuditDetailBuilder, ?> toBuilder() {
return new CustomMetadataAttributesAuditDetail.CustomMetadataAttributesAuditDetailBuilderImpl().$fillValuesFrom(this);
}
/**
* Unique name of the custom metadata set (structure).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getTypeName() {
return this.typeName;
}
/**
* Indicates whether this custom metadata audit entry is empty,
* typically true when the custom metadata has since been deleted from Atlan.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getEmpty() {
return this.empty;
}
@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 CustomMetadataAttributesAuditDetail)) return false;
final CustomMetadataAttributesAuditDetail other = (CustomMetadataAttributesAuditDetail) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$empty = this.getEmpty();
final java.lang.Object other$empty = other.getEmpty();
if (this$empty == null ? other$empty != null : !this$empty.equals(other$empty)) return false;
final java.lang.Object this$typeName = this.getTypeName();
final java.lang.Object other$typeName = other.getTypeName();
if (this$typeName == null ? other$typeName != null : !this$typeName.equals(other$typeName)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof CustomMetadataAttributesAuditDetail;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final java.lang.Object $empty = this.getEmpty();
result = result * PRIME + ($empty == null ? 43 : $empty.hashCode());
final java.lang.Object $typeName = this.getTypeName();
result = result * PRIME + ($typeName == null ? 43 : $typeName.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public java.lang.String toString() {
return "CustomMetadataAttributesAuditDetail(super=" + super.toString() + ", typeName=" + this.getTypeName() + ", empty=" + this.getEmpty() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy