Class LineageRelation

java.lang.Object
com.azure.analytics.purview.datamap.models.LineageRelation
All Implemented Interfaces:
com.azure.json.JsonSerializable<LineageRelation>

public final class LineageRelation extends Object implements com.azure.json.JsonSerializable<LineageRelation>
The lineage relation with GUID of the from and to entity.
  • Method Details

    • getFromEntityId

      public String getFromEntityId()
      Get the fromEntityId property: The GUID of from-entity.
      Returns:
      the fromEntityId value.
    • getRelationshipId

      public String getRelationshipId()
      Get the relationshipId property: The GUID of relationship.
      Returns:
      the relationshipId value.
    • getToEntityId

      public String getToEntityId()
      Get the toEntityId property: The GUID of to-entity.
      Returns:
      the toEntityId value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<LineageRelation>
      Throws:
      IOException
    • fromJson

      public static LineageRelation fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of LineageRelation from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of LineageRelation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the LineageRelation.