Class DataMaskingEntity
java.lang.Object
com.azure.resourcemanager.apimanagement.models.DataMaskingEntity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DataMaskingEntity>
public final class DataMaskingEntity
extends Object
implements com.azure.json.JsonSerializable<DataMaskingEntity>
The DataMaskingEntity model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataMaskingEntityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DataMaskingEntity from the JsonReader.mode()Get the mode property: Data masking mode.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: The name of an entity to mask (e.g. a name of a header or a query parameter).withMode(DataMaskingMode mode) Set the mode property: Data masking mode.Set the value property: The name of an entity to mask (e.g. a name of a header or a query parameter).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
-
DataMaskingEntity
public DataMaskingEntity()Creates an instance of DataMaskingEntity class.
-
-
Method Details
-
value
Get the value property: The name of an entity to mask (e.g. a name of a header or a query parameter).- Returns:
- the value value.
-
withValue
Set the value property: The name of an entity to mask (e.g. a name of a header or a query parameter).- Parameters:
value- the value value to set.- Returns:
- the DataMaskingEntity object itself.
-
mode
Get the mode property: Data masking mode.- Returns:
- the mode value.
-
withMode
Set the mode property: Data masking mode.- Parameters:
mode- the mode value to set.- Returns:
- the DataMaskingEntity object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DataMaskingEntity>- Throws:
IOException
-
fromJson
Reads an instance of DataMaskingEntity from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DataMaskingEntity 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 DataMaskingEntity.
-