Class AtlasRelationshipEndDef
java.lang.Object
com.azure.analytics.purview.datamap.models.AtlasRelationshipEndDef
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AtlasRelationshipEndDef>
public final class AtlasRelationshipEndDef
extends Object
implements com.azure.json.JsonSerializable<AtlasRelationshipEndDef>
The relationshipEndDef represents an end of the relationship. The end of the
relationship is defined by a type, an
attribute name, cardinality and whether
it is the container end of the relationship.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AtlasRelationshipEndDef class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AtlasRelationshipEndDeffromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AtlasRelationshipEndDef from the JsonReader.Get the cardinality property: single-valued attribute or multi-valued attribute.Get the description property: The description of the relationship end definition.getName()Get the name property: The name of the relationship end definition.getType()Get the type property: The type of the relationship end.Get the isContainer property: Determines if it is container.Get the isLegacyAttribute property: Determines if it is a legacy attribute.setCardinality(CardinalityValue cardinality) Set the cardinality property: single-valued attribute or multi-valued attribute.setDescription(String description) Set the description property: The description of the relationship end definition.setIsContainer(Boolean isContainer) Set the isContainer property: Determines if it is container.setIsLegacyAttribute(Boolean isLegacyAttribute) Set the isLegacyAttribute property: Determines if it is a legacy attribute.Set the name property: The name of the relationship end definition.Set the type property: The type of the relationship end.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
-
AtlasRelationshipEndDef
public AtlasRelationshipEndDef()Creates an instance of AtlasRelationshipEndDef class.
-
-
Method Details
-
getCardinality
Get the cardinality property: single-valued attribute or multi-valued attribute.- Returns:
- the cardinality value.
-
setCardinality
Set the cardinality property: single-valued attribute or multi-valued attribute.- Parameters:
cardinality- the cardinality value to set.- Returns:
- the AtlasRelationshipEndDef object itself.
-
getDescription
Get the description property: The description of the relationship end definition.- Returns:
- the description value.
-
setDescription
Set the description property: The description of the relationship end definition.- Parameters:
description- the description value to set.- Returns:
- the AtlasRelationshipEndDef object itself.
-
isContainer
Get the isContainer property: Determines if it is container.- Returns:
- the isContainer value.
-
setIsContainer
Set the isContainer property: Determines if it is container.- Parameters:
isContainer- the isContainer value to set.- Returns:
- the AtlasRelationshipEndDef object itself.
-
isLegacyAttribute
Get the isLegacyAttribute property: Determines if it is a legacy attribute.- Returns:
- the isLegacyAttribute value.
-
setIsLegacyAttribute
Set the isLegacyAttribute property: Determines if it is a legacy attribute.- Parameters:
isLegacyAttribute- the isLegacyAttribute value to set.- Returns:
- the AtlasRelationshipEndDef object itself.
-
getName
Get the name property: The name of the relationship end definition.- Returns:
- the name value.
-
setName
Set the name property: The name of the relationship end definition.- Parameters:
name- the name value to set.- Returns:
- the AtlasRelationshipEndDef object itself.
-
getType
Get the type property: The type of the relationship end.- Returns:
- the type value.
-
setType
Set the type property: The type of the relationship end.- Parameters:
type- the type value to set.- Returns:
- the AtlasRelationshipEndDef object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AtlasRelationshipEndDef>- Throws:
IOException
-
fromJson
public static AtlasRelationshipEndDef fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AtlasRelationshipEndDef from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AtlasRelationshipEndDef 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 AtlasRelationshipEndDef.
-