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

com.atlan.model.search.AuditDetail Maven / Gradle / Ivy

There is a newer version: 4.2.1
Show newest version
/* SPDX-License-Identifier: Apache-2.0
   Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.model.search;

import com.atlan.serde.AuditDetailDeserializer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

/**
 * An interface used to describe the detailed information within an audit entry.
 * In practice this can be either details about an Atlan tag or about an Entity.
 * (You should be able to type-check through instanceof and then explicitly cast
 * to either of these more detailed objects.)
 */
@JsonDeserialize(using = AuditDetailDeserializer.class)
public interface AuditDetail {

    /** Returns the type of the instance details in the audit entry. */
    String getTypeName();

    /**
     * Returns the raw JsonNode exposed by the Jackson library. This can be used to access properties
     * that are not directly exposed by Atlan's Java library.
     *
     * 

Note: You should always prefer using the standard property accessors whenever possible. * Because this method exposes Jackson's underlying API, it is not considered fully stable. Atlan's * Java library might move off Jackson in the future and this method would be removed or change * significantly.

* * @return The raw JsonNode. */ @JsonIgnore JsonNode getRawJsonObject(); /** * Sets the raw response from the API. This is used to expose properties that are not * directly exposed by Atlan's Java library. * * @param rawJsonObject the raw JSON from the API response */ @JsonIgnore void setRawJsonObject(JsonNode rawJsonObject); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy