Class AtlasEnumElementDef
java.lang.Object
com.azure.analytics.purview.datamap.models.AtlasEnumElementDef
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AtlasEnumElementDef>
public final class AtlasEnumElementDef
extends Object
implements com.azure.json.JsonSerializable<AtlasEnumElementDef>
class that captures details of an enum-element.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AtlasEnumElementDeffromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AtlasEnumElementDef from the JsonReader.Get the description property: The description of the enum element definition.Get the ordinal property: The ordinal of the enum element definition.getValue()Get the value property: The value of the enum element definition.setDescription(String description) Set the description property: The description of the enum element definition.setOrdinal(Integer ordinal) Set the ordinal property: The ordinal of the enum element definition.Set the value property: The value of the enum element definition.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
-
AtlasEnumElementDef
public AtlasEnumElementDef()Creates an instance of AtlasEnumElementDef class.
-
-
Method Details
-
getDescription
Get the description property: The description of the enum element definition.- Returns:
- the description value.
-
setDescription
Set the description property: The description of the enum element definition.- Parameters:
description- the description value to set.- Returns:
- the AtlasEnumElementDef object itself.
-
getOrdinal
Get the ordinal property: The ordinal of the enum element definition.- Returns:
- the ordinal value.
-
setOrdinal
Set the ordinal property: The ordinal of the enum element definition.- Parameters:
ordinal- the ordinal value to set.- Returns:
- the AtlasEnumElementDef object itself.
-
getValue
Get the value property: The value of the enum element definition.- Returns:
- the value value.
-
setValue
Set the value property: The value of the enum element definition.- Parameters:
value- the value value to set.- Returns:
- the AtlasEnumElementDef object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AtlasEnumElementDef>- Throws:
IOException
-
fromJson
Reads an instance of AtlasEnumElementDef from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AtlasEnumElementDef 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 AtlasEnumElementDef.
-