Class AtlasAttributeDef
java.lang.Object
com.azure.analytics.purview.datamap.models.AtlasAttributeDef
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AtlasAttributeDef>
public final class AtlasAttributeDef
extends Object
implements com.azure.json.JsonSerializable<AtlasAttributeDef>
class that captures details of a struct-attribute.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AtlasAttributeDeffromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AtlasAttributeDef from the JsonReader.Get the cardinality property: single-valued attribute or multi-valued attribute.Get the constraints property: An array of constraints.Get the defaultValue property: The default value of the attribute.Get the description property: The description of the attribute.getName()Get the name property: The name of the attribute.Get the options property: The options for the attribute.Get the typeName property: The name of the type.Get the valuesMaxCount property: The maximum count of the values.Get the valuesMinCount property: The minimum count of the values.Get the includeInNotification property: Determines if it is included in notification.Get the isIndexable property: Determines if it is indexable.Get the isOptional property: Determines if it is optional.isUnique()Get the isUnique property: Determines if it unique.setCardinality(CardinalityValue cardinality) Set the cardinality property: single-valued attribute or multi-valued attribute.setConstraints(List<AtlasConstraintDef> constraints) Set the constraints property: An array of constraints.setDefaultValue(String defaultValue) Set the defaultValue property: The default value of the attribute.setDescription(String description) Set the description property: The description of the attribute.setIncludeInNotification(Boolean includeInNotification) Set the includeInNotification property: Determines if it is included in notification.setIsIndexable(Boolean isIndexable) Set the isIndexable property: Determines if it is indexable.setIsOptional(Boolean isOptional) Set the isOptional property: Determines if it is optional.setIsUnique(Boolean isUnique) Set the isUnique property: Determines if it unique.Set the name property: The name of the attribute.setOptions(Map<String, String> options) Set the options property: The options for the attribute.setTypeName(String typeName) Set the typeName property: The name of the type.setValuesMaxCount(Integer valuesMaxCount) Set the valuesMaxCount property: The maximum count of the values.setValuesMinCount(Integer valuesMinCount) Set the valuesMinCount property: The minimum count of the values.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
-
AtlasAttributeDef
public AtlasAttributeDef()Creates an instance of AtlasAttributeDef 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 AtlasAttributeDef object itself.
-
getConstraints
Get the constraints property: An array of constraints.- Returns:
- the constraints value.
-
setConstraints
Set the constraints property: An array of constraints.- Parameters:
constraints- the constraints value to set.- Returns:
- the AtlasAttributeDef object itself.
-
getDefaultValue
Get the defaultValue property: The default value of the attribute.- Returns:
- the defaultValue value.
-
setDefaultValue
Set the defaultValue property: The default value of the attribute.- Parameters:
defaultValue- the defaultValue value to set.- Returns:
- the AtlasAttributeDef object itself.
-
getDescription
Get the description property: The description of the attribute.- Returns:
- the description value.
-
setDescription
Set the description property: The description of the attribute.- Parameters:
description- the description value to set.- Returns:
- the AtlasAttributeDef object itself.
-
isIncludeInNotification
Get the includeInNotification property: Determines if it is included in notification.- Returns:
- the includeInNotification value.
-
setIncludeInNotification
Set the includeInNotification property: Determines if it is included in notification.- Parameters:
includeInNotification- the includeInNotification value to set.- Returns:
- the AtlasAttributeDef object itself.
-
isIndexable
Get the isIndexable property: Determines if it is indexable.- Returns:
- the isIndexable value.
-
setIsIndexable
Set the isIndexable property: Determines if it is indexable.- Parameters:
isIndexable- the isIndexable value to set.- Returns:
- the AtlasAttributeDef object itself.
-
isOptional
Get the isOptional property: Determines if it is optional.- Returns:
- the isOptional value.
-
setIsOptional
Set the isOptional property: Determines if it is optional.- Parameters:
isOptional- the isOptional value to set.- Returns:
- the AtlasAttributeDef object itself.
-
isUnique
Get the isUnique property: Determines if it unique.- Returns:
- the isUnique value.
-
setIsUnique
Set the isUnique property: Determines if it unique.- Parameters:
isUnique- the isUnique value to set.- Returns:
- the AtlasAttributeDef object itself.
-
getName
Get the name property: The name of the attribute.- Returns:
- the name value.
-
setName
Set the name property: The name of the attribute.- Parameters:
name- the name value to set.- Returns:
- the AtlasAttributeDef object itself.
-
getOptions
Get the options property: The options for the attribute.- Returns:
- the options value.
-
setOptions
Set the options property: The options for the attribute.- Parameters:
options- the options value to set.- Returns:
- the AtlasAttributeDef 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 AtlasAttributeDef object itself.
-
getValuesMaxCount
Get the valuesMaxCount property: The maximum count of the values.- Returns:
- the valuesMaxCount value.
-
setValuesMaxCount
Set the valuesMaxCount property: The maximum count of the values.- Parameters:
valuesMaxCount- the valuesMaxCount value to set.- Returns:
- the AtlasAttributeDef object itself.
-
getValuesMinCount
Get the valuesMinCount property: The minimum count of the values.- Returns:
- the valuesMinCount value.
-
setValuesMinCount
Set the valuesMinCount property: The minimum count of the values.- Parameters:
valuesMinCount- the valuesMinCount value to set.- Returns:
- the AtlasAttributeDef object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AtlasAttributeDef>- Throws:
IOException
-
fromJson
Reads an instance of AtlasAttributeDef from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AtlasAttributeDef 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 AtlasAttributeDef.
-