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 Details

    • AtlasEnumElementDef

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

    • getDescription

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

      public AtlasEnumElementDef setDescription(String description)
      Set the description property: The description of the enum element definition.
      Parameters:
      description - the description value to set.
      Returns:
      the AtlasEnumElementDef object itself.
    • getOrdinal

      public Integer getOrdinal()
      Get the ordinal property: The ordinal of the enum element definition.
      Returns:
      the ordinal value.
    • setOrdinal

      public AtlasEnumElementDef setOrdinal(Integer ordinal)
      Set the ordinal property: The ordinal of the enum element definition.
      Parameters:
      ordinal - the ordinal value to set.
      Returns:
      the AtlasEnumElementDef object itself.
    • getValue

      public String getValue()
      Get the value property: The value of the enum element definition.
      Returns:
      the value value.
    • setValue

      public AtlasEnumElementDef setValue(String value)
      Set the value property: The value of the enum element definition.
      Parameters:
      value - the value value to set.
      Returns:
      the AtlasEnumElementDef 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<AtlasEnumElementDef>
      Throws:
      IOException
    • fromJson

      public static AtlasEnumElementDef fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.