Class DataMasking
java.lang.Object
com.azure.resourcemanager.apimanagement.models.DataMasking
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DataMasking>
public final class DataMasking
extends Object
implements com.azure.json.JsonSerializable<DataMasking>
The DataMasking model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataMaskingfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DataMasking from the JsonReader.headers()Get the headers property: Masking settings for headers.Get the queryParams property: Masking settings for Url query parameters.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withHeaders(List<DataMaskingEntity> headers) Set the headers property: Masking settings for headers.withQueryParams(List<DataMaskingEntity> queryParams) Set the queryParams property: Masking settings for Url query parameters.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
-
DataMasking
public DataMasking()Creates an instance of DataMasking class.
-
-
Method Details
-
queryParams
Get the queryParams property: Masking settings for Url query parameters.- Returns:
- the queryParams value.
-
withQueryParams
Set the queryParams property: Masking settings for Url query parameters.- Parameters:
queryParams- the queryParams value to set.- Returns:
- the DataMasking object itself.
-
headers
Get the headers property: Masking settings for headers.- Returns:
- the headers value.
-
withHeaders
Set the headers property: Masking settings for headers.- Parameters:
headers- the headers value to set.- Returns:
- the DataMasking 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<DataMasking>- Throws:
IOException
-
fromJson
Reads an instance of DataMasking from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DataMasking 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 DataMasking.
-