Class AtlasConstraintDef

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

public final class AtlasConstraintDef extends Object implements com.azure.json.JsonSerializable<AtlasConstraintDef>
class that captures details of a constraint.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of AtlasConstraintDef class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of AtlasConstraintDef from the JsonReader.
    Map<String,com.azure.core.util.BinaryData>
    Get the params property: The parameters of the constraint definition.
    Get the type property: The type of the constraint.
    setParams(Map<String,com.azure.core.util.BinaryData> params)
    Set the params property: The parameters of the constraint definition.
    Set the type property: The type of the constraint.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • AtlasConstraintDef

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

    • getParams

      public Map<String,com.azure.core.util.BinaryData> getParams()
      Get the params property: The parameters of the constraint definition.
      Returns:
      the params value.
    • setParams

      public AtlasConstraintDef setParams(Map<String,com.azure.core.util.BinaryData> params)
      Set the params property: The parameters of the constraint definition.
      Parameters:
      params - the params value to set.
      Returns:
      the AtlasConstraintDef object itself.
    • getType

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

      public AtlasConstraintDef setType(String type)
      Set the type property: The type of the constraint.
      Parameters:
      type - the type value to set.
      Returns:
      the AtlasConstraintDef 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<AtlasConstraintDef>
      Throws:
      IOException
    • fromJson

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