Class AtlasEntity
java.lang.Object
com.azure.analytics.purview.datamap.models.AtlasEntity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AtlasEntity>
public final class AtlasEntity
extends Object
implements com.azure.json.JsonSerializable<AtlasEntity>
An instance of an entity - like hive_table, hive_database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AtlasEntityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AtlasEntity from the JsonReader.Get the attributes property: The attributes of the struct.Get the businessAttributes property: Business attributes.Get the classifications property: An array of classifications.Get the collectionId property: The collection ID of the entity.Get the contacts property: The dictionary of contacts for entities.Get the createdBy property: The user who created the record.Get the createTime property: The created time of the record.Get the customAttributes property: Custom Attribute.getGuid()Get the guid property: The GUID of the entity.Get the homeId property: The home ID of the entity.Get the labels property: labels.Get the lastModifiedTS property: ETag for concurrency control.Get the meanings property: An array of term assignment headers indicating the meanings of the entity.Get the provenanceType property: Used to record the provenance of an instance of an entity or relationship.Get the relationshipAttributes property: The attributes of relationship.Get the status property: Status of the entity - can be active or deleted.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 entity.Get the isIncomplete property: Whether it is a shell entity.isProxy()Get the proxy property: Determines if there's a proxy.setAttributes(Map<String, com.azure.core.util.BinaryData> attributes) Set the attributes property: The attributes of the struct.setBusinessAttributes(Map<String, com.azure.core.util.BinaryData> businessAttributes) Set the businessAttributes property: Business attributes.setClassifications(List<AtlasClassification> classifications) Set the classifications property: An array of classifications.setContacts(Map<String, List<ContactInfo>> contacts) Set the contacts property: The dictionary of contacts for entities.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.setCustomAttributes(Map<String, String> customAttributes) Set the customAttributes property: Custom Attribute.Set the guid property: The GUID of the entity.Set the homeId property: The home ID of the entity.setIsIncomplete(Boolean isIncomplete) Set the isIncomplete property: Whether it is a shell entity.Set the labels property: labels.setLastModifiedTS(String lastModifiedTS) Set the lastModifiedTS property: ETag for concurrency control.setMeanings(List<AtlasTermAssignmentHeader> meanings) Set the meanings property: An array of term assignment headers indicating the meanings of the entity.setProvenanceType(Integer provenanceType) Set the provenanceType property: Used to record the provenance of an instance of an entity or relationship.Set the proxy property: Determines if there's a proxy.setRelationshipAttributes(Map<String, com.azure.core.util.BinaryData> relationshipAttributes) Set the relationshipAttributes property: The attributes of relationship.setStatus(EntityStatus status) Set the status property: Status of the entity - can be active or deleted.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 entity.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
-
AtlasEntity
public AtlasEntity()Creates an instance of AtlasEntity 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 AtlasEntity 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 AtlasEntity 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 AtlasEntity object itself.
-
getBusinessAttributes
Get the businessAttributes property: Business attributes.- Returns:
- the businessAttributes value.
-
setBusinessAttributes
public AtlasEntity setBusinessAttributes(Map<String, com.azure.core.util.BinaryData> businessAttributes) Set the businessAttributes property: Business attributes.- Parameters:
businessAttributes- the businessAttributes value to set.- Returns:
- the AtlasEntity object itself.
-
getClassifications
Get the classifications property: An array of classifications.- Returns:
- the classifications value.
-
setClassifications
Set the classifications property: An array of classifications.- Parameters:
classifications- the classifications value to set.- Returns:
- the AtlasEntity 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 AtlasEntity 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 AtlasEntity object itself.
-
getCustomAttributes
Get the customAttributes property: Custom Attribute.- Returns:
- the customAttributes value.
-
setCustomAttributes
Set the customAttributes property: Custom Attribute.- Parameters:
customAttributes- the customAttributes value to set.- Returns:
- the AtlasEntity object itself.
-
getGuid
Get the guid property: The GUID of the entity.- Returns:
- the guid value.
-
setGuid
Set the guid property: The GUID of the entity.- Parameters:
guid- the guid value to set.- Returns:
- the AtlasEntity object itself.
-
getHomeId
Get the homeId property: The home ID of the entity.- Returns:
- the homeId value.
-
setHomeId
Set the homeId property: The home ID of the entity.- Parameters:
homeId- the homeId value to set.- Returns:
- the AtlasEntity object itself.
-
getCollectionId
Get the collectionId property: The collection ID of the entity.- Returns:
- the collectionId value.
-
isIncomplete
Get the isIncomplete property: Whether it is a shell entity.- Returns:
- the isIncomplete value.
-
setIsIncomplete
Set the isIncomplete property: Whether it is a shell entity.- Parameters:
isIncomplete- the isIncomplete value to set.- Returns:
- the AtlasEntity object itself.
-
getLabels
Get the labels property: labels.- Returns:
- the labels value.
-
setLabels
Set the labels property: labels.- Parameters:
labels- the labels value to set.- Returns:
- the AtlasEntity object itself.
-
getMeanings
Get the meanings property: An array of term assignment headers indicating the meanings of the entity.- Returns:
- the meanings value.
-
setMeanings
Set the meanings property: An array of term assignment headers indicating the meanings of the entity.- Parameters:
meanings- the meanings value to set.- Returns:
- the AtlasEntity 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 AtlasEntity object itself.
-
isProxy
Get the proxy property: Determines if there's a proxy.- Returns:
- the proxy value.
-
setProxy
Set the proxy property: Determines if there's a proxy.- Parameters:
proxy- the proxy value to set.- Returns:
- the AtlasEntity object itself.
-
getRelationshipAttributes
Get the relationshipAttributes property: The attributes of relationship.- Returns:
- the relationshipAttributes value.
-
setRelationshipAttributes
public AtlasEntity setRelationshipAttributes(Map<String, com.azure.core.util.BinaryData> relationshipAttributes) Set the relationshipAttributes property: The attributes of relationship.- Parameters:
relationshipAttributes- the relationshipAttributes value to set.- Returns:
- the AtlasEntity object itself.
-
getStatus
Get the status property: Status of the entity - can be active or deleted. Deleted entities are not removed.- Returns:
- the status value.
-
setStatus
Set the status property: Status of the entity - can be active or deleted. Deleted entities are not removed.- Parameters:
status- the status value to set.- Returns:
- the AtlasEntity 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 AtlasEntity 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 AtlasEntity object itself.
-
getVersion
Get the version property: The version of the entity.- Returns:
- the version value.
-
setVersion
Set the version property: The version of the entity.- Parameters:
version- the version value to set.- Returns:
- the AtlasEntity object itself.
-
getContacts
Get the contacts property: The dictionary of contacts for entities. Key could be Expert or Owner.- Returns:
- the contacts value.
-
setContacts
Set the contacts property: The dictionary of contacts for entities. Key could be Expert or Owner.- Parameters:
contacts- the contacts value to set.- Returns:
- the AtlasEntity object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AtlasEntity>- Throws:
IOException
-
fromJson
Reads an instance of AtlasEntity from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AtlasEntity 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 AtlasEntity.
-