Class AtlasRelationshipAttributeDef

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

public final class AtlasRelationshipAttributeDef extends Object implements com.azure.json.JsonSerializable<AtlasRelationshipAttributeDef>
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

    • AtlasRelationshipAttributeDef

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

    • getCardinality

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

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

      public List<AtlasConstraintDef> getConstraints()
      Get the constraints property: An array of constraints.
      Returns:
      the constraints value.
    • setConstraints

      public AtlasRelationshipAttributeDef setConstraints(List<AtlasConstraintDef> constraints)
      Set the constraints property: An array of constraints.
      Parameters:
      constraints - the constraints value to set.
      Returns:
      the AtlasRelationshipAttributeDef object itself.
    • getDefaultValue

      public String getDefaultValue()
      Get the defaultValue property: The default value of the attribute.
      Returns:
      the defaultValue value.
    • setDefaultValue

      public AtlasRelationshipAttributeDef setDefaultValue(String defaultValue)
      Set the defaultValue property: The default value of the attribute.
      Parameters:
      defaultValue - the defaultValue value to set.
      Returns:
      the AtlasRelationshipAttributeDef object itself.
    • getDescription

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

      public AtlasRelationshipAttributeDef setDescription(String description)
      Set the description property: The description of the attribute.
      Parameters:
      description - the description value to set.
      Returns:
      the AtlasRelationshipAttributeDef object itself.
    • isIncludeInNotification

      public Boolean isIncludeInNotification()
      Get the includeInNotification property: Determines if it is included in notification.
      Returns:
      the includeInNotification value.
    • setIncludeInNotification

      public AtlasRelationshipAttributeDef setIncludeInNotification(Boolean includeInNotification)
      Set the includeInNotification property: Determines if it is included in notification.
      Parameters:
      includeInNotification - the includeInNotification value to set.
      Returns:
      the AtlasRelationshipAttributeDef object itself.
    • isIndexable

      public Boolean isIndexable()
      Get the isIndexable property: Determines if it is indexable.
      Returns:
      the isIndexable value.
    • setIsIndexable

      public AtlasRelationshipAttributeDef setIsIndexable(Boolean isIndexable)
      Set the isIndexable property: Determines if it is indexable.
      Parameters:
      isIndexable - the isIndexable value to set.
      Returns:
      the AtlasRelationshipAttributeDef object itself.
    • isOptional

      public Boolean isOptional()
      Get the isOptional property: Determines if it is optional.
      Returns:
      the isOptional value.
    • setIsOptional

      public AtlasRelationshipAttributeDef setIsOptional(Boolean isOptional)
      Set the isOptional property: Determines if it is optional.
      Parameters:
      isOptional - the isOptional value to set.
      Returns:
      the AtlasRelationshipAttributeDef object itself.
    • isUnique

      public Boolean isUnique()
      Get the isUnique property: Determines if it unique.
      Returns:
      the isUnique value.
    • setIsUnique

      public AtlasRelationshipAttributeDef setIsUnique(Boolean isUnique)
      Set the isUnique property: Determines if it unique.
      Parameters:
      isUnique - the isUnique value to set.
      Returns:
      the AtlasRelationshipAttributeDef object itself.
    • getName

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

      public AtlasRelationshipAttributeDef setName(String name)
      Set the name property: The name of the attribute.
      Parameters:
      name - the name value to set.
      Returns:
      the AtlasRelationshipAttributeDef object itself.
    • getOptions

      public Map<String,String> getOptions()
      Get the options property: The options for the attribute.
      Returns:
      the options value.
    • setOptions

      public AtlasRelationshipAttributeDef setOptions(Map<String,String> options)
      Set the options property: The options for the attribute.
      Parameters:
      options - the options value to set.
      Returns:
      the AtlasRelationshipAttributeDef object itself.
    • getTypeName

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

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

      public Integer getValuesMaxCount()
      Get the valuesMaxCount property: The maximum count of the values.
      Returns:
      the valuesMaxCount value.
    • setValuesMaxCount

      public AtlasRelationshipAttributeDef setValuesMaxCount(Integer valuesMaxCount)
      Set the valuesMaxCount property: The maximum count of the values.
      Parameters:
      valuesMaxCount - the valuesMaxCount value to set.
      Returns:
      the AtlasRelationshipAttributeDef object itself.
    • getValuesMinCount

      public Integer getValuesMinCount()
      Get the valuesMinCount property: The minimum count of the values.
      Returns:
      the valuesMinCount value.
    • setValuesMinCount

      public AtlasRelationshipAttributeDef setValuesMinCount(Integer valuesMinCount)
      Set the valuesMinCount property: The minimum count of the values.
      Parameters:
      valuesMinCount - the valuesMinCount value to set.
      Returns:
      the AtlasRelationshipAttributeDef object itself.
    • isLegacyAttribute

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

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

      public String getRelationshipTypeName()
      Get the relationshipTypeName property: The name of the relationship type.
      Returns:
      the relationshipTypeName value.
    • setRelationshipTypeName

      public AtlasRelationshipAttributeDef setRelationshipTypeName(String relationshipTypeName)
      Set the relationshipTypeName property: The name of the relationship type.
      Parameters:
      relationshipTypeName - the relationshipTypeName value to set.
      Returns:
      the AtlasRelationshipAttributeDef 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<AtlasRelationshipAttributeDef>
      Throws:
      IOException
    • fromJson

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