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 Details

    • AtlasRelationshipEndDef

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

    • getCardinality

      public CardinalityValue getCardinality()
      Get the cardinality property: single-valued attribute or multi-valued attribute.
      Returns:
      the cardinality value.
    • setCardinality

      public AtlasRelationshipEndDef setCardinality(CardinalityValue cardinality)
      Set the cardinality property: single-valued attribute or multi-valued attribute.
      Parameters:
      cardinality - the cardinality value to set.
      Returns:
      the AtlasRelationshipEndDef object itself.
    • getDescription

      public String getDescription()
      Get the description property: The description of the relationship end definition.
      Returns:
      the description value.
    • setDescription

      public AtlasRelationshipEndDef setDescription(String description)
      Set the description property: The description of the relationship end definition.
      Parameters:
      description - the description value to set.
      Returns:
      the AtlasRelationshipEndDef object itself.
    • isContainer

      public Boolean isContainer()
      Get the isContainer property: Determines if it is container.
      Returns:
      the isContainer value.
    • setIsContainer

      public AtlasRelationshipEndDef setIsContainer(Boolean isContainer)
      Set the isContainer property: Determines if it is container.
      Parameters:
      isContainer - the isContainer value to set.
      Returns:
      the AtlasRelationshipEndDef object itself.
    • isLegacyAttribute

      public Boolean isLegacyAttribute()
      Get the isLegacyAttribute property: Determines if it is a legacy attribute.
      Returns:
      the isLegacyAttribute value.
    • setIsLegacyAttribute

      public AtlasRelationshipEndDef setIsLegacyAttribute(Boolean isLegacyAttribute)
      Set the isLegacyAttribute property: Determines if it is a legacy attribute.
      Parameters:
      isLegacyAttribute - the isLegacyAttribute value to set.
      Returns:
      the AtlasRelationshipEndDef object itself.
    • getName

      public String getName()
      Get the name property: The name of the relationship end definition.
      Returns:
      the name value.
    • setName

      public AtlasRelationshipEndDef setName(String name)
      Set the name property: The name of the relationship end definition.
      Parameters:
      name - the name value to set.
      Returns:
      the AtlasRelationshipEndDef object itself.
    • getType

      public String getType()
      Get the type property: The type of the relationship end.
      Returns:
      the type value.
    • setType

      public AtlasRelationshipEndDef setType(String type)
      Set the type property: The type of the relationship end.
      Parameters:
      type - the type value to set.
      Returns:
      the AtlasRelationshipEndDef 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<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.