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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AtlasRelationshipfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AtlasRelationship from the JsonReader.Get the attributes property: The attributes of the struct.Get the createdBy property: The user who created the record.Get the createTime property: The created time of the record.getEnd1()Get the end1 property: Reference to an object-instance of a type - like entity.getEnd2()Get the end2 property: Reference to an object-instance of a type - like entity.getGuid()Get the guid property: The GUID of the relationship.Get the homeId property: The home ID of the relationship.getLabel()Get the label property: The label of the relationship.Get the lastModifiedTS property: ETag for concurrency control.Get the provenanceType property: Used to record the provenance of an instance of an entity or relationship.Get the status property: The enum of relationship status.Get the typeName property: The name of the type.Get the updatedBy property: The user who updated the record.Get the updateTime property: The update time of the record.Get the version property: The version of the relationship.setAttributes(Map<String, com.azure.core.util.BinaryData> attributes) Set the attributes property: The attributes of the struct.setCreatedBy(String createdBy) Set the createdBy property: The user who created the record.setCreateTime(Long createTime) Set the createTime property: The created time of the record.setEnd1(AtlasObjectId end1) Set the end1 property: Reference to an object-instance of a type - like entity.setEnd2(AtlasObjectId end2) Set the end2 property: Reference to an object-instance of a type - like entity.Set the guid property: The GUID of the relationship.Set the homeId property: The home ID of the relationship.Set the label property: The label of the relationship.setLastModifiedTS(String lastModifiedTS) Set the lastModifiedTS property: ETag for concurrency control.setProvenanceType(Integer provenanceType) Set the provenanceType property: Used to record the provenance of an instance of an entity or relationship.setStatus(StatusAtlasRelationship status) Set the status property: The enum of relationship status.setTypeName(String typeName) Set the typeName property: The name of the type.setUpdatedBy(String updatedBy) Set the updatedBy property: The user who updated the record.setUpdateTime(Long updateTime) Set the updateTime property: The update time of the record.setVersion(Long version) Set the version property: The version of the relationship.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AtlasRelationship
public AtlasRelationship()Creates an instance of AtlasRelationship class.
-
-
Method Details
-
getAttributes
Get the attributes property: The attributes of the struct.- Returns:
- the attributes value.
-
setAttributes
Set the attributes property: The attributes of the struct.- Parameters:
attributes- the attributes value to set.- Returns:
- the AtlasRelationship object itself.
-
getTypeName
Get the typeName property: The name of the type.- Returns:
- the typeName value.
-
setTypeName
Set the typeName property: The name of the type.- Parameters:
typeName- the typeName value to set.- Returns:
- the AtlasRelationship object itself.
-
getLastModifiedTS
Get the lastModifiedTS property: ETag for concurrency control.- Returns:
- the lastModifiedTS value.
-
setLastModifiedTS
Set the lastModifiedTS property: ETag for concurrency control.- Parameters:
lastModifiedTS- the lastModifiedTS value to set.- Returns:
- the AtlasRelationship object itself.
-
getCreateTime
Get the createTime property: The created time of the record.- Returns:
- the createTime value.
-
setCreateTime
Set the createTime property: The created time of the record.- Parameters:
createTime- the createTime value to set.- Returns:
- the AtlasRelationship object itself.
-
getCreatedBy
Get the createdBy property: The user who created the record.- Returns:
- the createdBy value.
-
setCreatedBy
Set the createdBy property: The user who created the record.- Parameters:
createdBy- the createdBy value to set.- Returns:
- the AtlasRelationship object itself.
-
getEnd1
Get the end1 property: Reference to an object-instance of a type - like entity.- Returns:
- the end1 value.
-
setEnd1
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
Get the end2 property: Reference to an object-instance of a type - like entity.- Returns:
- the end2 value.
-
setEnd2
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
Get the guid property: The GUID of the relationship.- Returns:
- the guid value.
-
setGuid
Set the guid property: The GUID of the relationship.- Parameters:
guid- the guid value to set.- Returns:
- the AtlasRelationship object itself.
-
getHomeId
Get the homeId property: The home ID of the relationship.- Returns:
- the homeId value.
-
setHomeId
Set the homeId property: The home ID of the relationship.- Parameters:
homeId- the homeId value to set.- Returns:
- the AtlasRelationship object itself.
-
getLabel
Get the label property: The label of the relationship.- Returns:
- the label value.
-
setLabel
Set the label property: The label of the relationship.- Parameters:
label- the label value to set.- Returns:
- the AtlasRelationship object itself.
-
getProvenanceType
Get the provenanceType property: Used to record the provenance of an instance of an entity or relationship.- Returns:
- the provenanceType value.
-
setProvenanceType
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
Get the status property: The enum of relationship status.- Returns:
- the status value.
-
setStatus
Set the status property: The enum of relationship status.- Parameters:
status- the status value to set.- Returns:
- the AtlasRelationship object itself.
-
getUpdateTime
Get the updateTime property: The update time of the record.- Returns:
- the updateTime value.
-
setUpdateTime
Set the updateTime property: The update time of the record.- Parameters:
updateTime- the updateTime value to set.- Returns:
- the AtlasRelationship object itself.
-
getUpdatedBy
Get the updatedBy property: The user who updated the record.- Returns:
- the updatedBy value.
-
setUpdatedBy
Set the updatedBy property: The user who updated the record.- Parameters:
updatedBy- the updatedBy value to set.- Returns:
- the AtlasRelationship object itself.
-
getVersion
Get the version property: The version of the relationship.- Returns:
- the version value.
-
setVersion
Set the version property: The version of the relationship.- Parameters:
version- the version value to set.- Returns:
- the AtlasRelationship object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AtlasRelationship>- Throws:
IOException
-
fromJson
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.
-