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 -
Method Summary
Modifier and TypeMethodDescriptionstatic AtlasConstraintDeffromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AtlasConstraintDef from the JsonReader.Get the params property: The parameters of the constraint definition.getType()Get the type property: The type of the constraint.Set the params property: The parameters of the constraint definition.Set the type property: The type of the constraint.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
-
AtlasConstraintDef
public AtlasConstraintDef()Creates an instance of AtlasConstraintDef class.
-
-
Method Details
-
getParams
Get the params property: The parameters of the constraint definition.- Returns:
- the params value.
-
setParams
Set the params property: The parameters of the constraint definition.- Parameters:
params- the params value to set.- Returns:
- the AtlasConstraintDef object itself.
-
getType
Get the type property: The type of the constraint.- Returns:
- the type value.
-
setType
Set the type property: The type of the constraint.- Parameters:
type- the type value to set.- Returns:
- the AtlasConstraintDef object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AtlasConstraintDef>- Throws:
IOException
-
fromJson
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.
-