Class AtlasRelationship

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

public final class AtlasRelationship extends Object implements com.azure.json.JsonSerializable<AtlasRelationship>
Atlas relationship instance.
  • Constructor Details

    • AtlasRelationship

      public AtlasRelationship()
      Creates an instance of AtlasRelationship class.
  • Method Details

    • getAttributes

      public Map<String,com.azure.core.util.BinaryData> getAttributes()
      Get the attributes property: The attributes of the struct.
      Returns:
      the attributes value.
    • setAttributes

      public AtlasRelationship setAttributes(Map<String,com.azure.core.util.BinaryData> attributes)
      Set the attributes property: The attributes of the struct.
      Parameters:
      attributes - the attributes value to set.
      Returns:
      the AtlasRelationship object itself.
    • getTypeName

      public String getTypeName()
      Get the typeName property: The name of the type.
      Returns:
      the typeName value.
    • setTypeName

      public AtlasRelationship setTypeName(String typeName)
      Set the typeName property: The name of the type.
      Parameters:
      typeName - the typeName value to set.
      Returns:
      the AtlasRelationship object itself.
    • getLastModifiedTS

      public String getLastModifiedTS()
      Get the lastModifiedTS property: ETag for concurrency control.
      Returns:
      the lastModifiedTS value.
    • setLastModifiedTS

      public AtlasRelationship setLastModifiedTS(String lastModifiedTS)
      Set the lastModifiedTS property: ETag for concurrency control.
      Parameters:
      lastModifiedTS - the lastModifiedTS value to set.
      Returns:
      the AtlasRelationship object itself.
    • getCreateTime

      public Long getCreateTime()
      Get the createTime property: The created time of the record.
      Returns:
      the createTime value.
    • setCreateTime

      public AtlasRelationship setCreateTime(Long createTime)
      Set the createTime property: The created time of the record.
      Parameters:
      createTime - the createTime value to set.
      Returns:
      the AtlasRelationship object itself.
    • getCreatedBy

      public String getCreatedBy()
      Get the createdBy property: The user who created the record.
      Returns:
      the createdBy value.
    • setCreatedBy

      public AtlasRelationship setCreatedBy(String createdBy)
      Set the createdBy property: The user who created the record.
      Parameters:
      createdBy - the createdBy value to set.
      Returns:
      the AtlasRelationship object itself.
    • getEnd1

      public AtlasObjectId getEnd1()
      Get the end1 property: Reference to an object-instance of a type - like entity.
      Returns:
      the end1 value.
    • setEnd1

      public AtlasRelationship setEnd1(AtlasObjectId end1)
      Set the end1 property: Reference to an object-instance of a type - like entity.
      Parameters:
      end1 - the end1 value to set.
      Returns:
      the AtlasRelationship object itself.
    • getEnd2

      public AtlasObjectId getEnd2()
      Get the end2 property: Reference to an object-instance of a type - like entity.
      Returns:
      the end2 value.
    • setEnd2

      public AtlasRelationship setEnd2(AtlasObjectId end2)
      Set the end2 property: Reference to an object-instance of a type - like entity.
      Parameters:
      end2 - the end2 value to set.
      Returns:
      the AtlasRelationship object itself.
    • getGuid

      public String getGuid()
      Get the guid property: The GUID of the relationship.
      Returns:
      the guid value.
    • setGuid

      public AtlasRelationship setGuid(String guid)
      Set the guid property: The GUID of the relationship.
      Parameters:
      guid - the guid value to set.
      Returns:
      the AtlasRelationship object itself.
    • getHomeId

      public String getHomeId()
      Get the homeId property: The home ID of the relationship.
      Returns:
      the homeId value.
    • setHomeId

      public AtlasRelationship setHomeId(String homeId)
      Set the homeId property: The home ID of the relationship.
      Parameters:
      homeId - the homeId value to set.
      Returns:
      the AtlasRelationship object itself.
    • getLabel

      public String getLabel()
      Get the label property: The label of the relationship.
      Returns:
      the label value.
    • setLabel

      public AtlasRelationship setLabel(String label)
      Set the label property: The label of the relationship.
      Parameters:
      label - the label value to set.
      Returns:
      the AtlasRelationship object itself.
    • getProvenanceType

      public Integer getProvenanceType()
      Get the provenanceType property: Used to record the provenance of an instance of an entity or relationship.
      Returns:
      the provenanceType value.
    • setProvenanceType

      public AtlasRelationship setProvenanceType(Integer provenanceType)
      Set the provenanceType property: Used to record the provenance of an instance of an entity or relationship.
      Parameters:
      provenanceType - the provenanceType value to set.
      Returns:
      the AtlasRelationship object itself.
    • getStatus

      public StatusAtlasRelationship getStatus()
      Get the status property: The enum of relationship status.
      Returns:
      the status value.
    • setStatus

      public AtlasRelationship setStatus(StatusAtlasRelationship status)
      Set the status property: The enum of relationship status.
      Parameters:
      status - the status value to set.
      Returns:
      the AtlasRelationship object itself.
    • getUpdateTime

      public Long getUpdateTime()
      Get the updateTime property: The update time of the record.
      Returns:
      the updateTime value.
    • setUpdateTime

      public AtlasRelationship setUpdateTime(Long updateTime)
      Set the updateTime property: The update time of the record.
      Parameters:
      updateTime - the updateTime value to set.
      Returns:
      the AtlasRelationship object itself.
    • getUpdatedBy

      public String getUpdatedBy()
      Get the updatedBy property: The user who updated the record.
      Returns:
      the updatedBy value.
    • setUpdatedBy

      public AtlasRelationship setUpdatedBy(String updatedBy)
      Set the updatedBy property: The user who updated the record.
      Parameters:
      updatedBy - the updatedBy value to set.
      Returns:
      the AtlasRelationship object itself.
    • getVersion

      public Long getVersion()
      Get the version property: The version of the relationship.
      Returns:
      the version value.
    • setVersion

      public AtlasRelationship setVersion(Long version)
      Set the version property: The version of the relationship.
      Parameters:
      version - the version value to set.
      Returns:
      the AtlasRelationship object itself.
    • toJson

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

      public static AtlasRelationship fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AtlasRelationship from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AtlasRelationship 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 AtlasRelationship.