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 Details

    • DataMasking

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

    • queryParams

      public List<DataMaskingEntity> queryParams()
      Get the queryParams property: Masking settings for Url query parameters.
      Returns:
      the queryParams value.
    • withQueryParams

      public DataMasking withQueryParams(List<DataMaskingEntity> queryParams)
      Set the queryParams property: Masking settings for Url query parameters.
      Parameters:
      queryParams - the queryParams value to set.
      Returns:
      the DataMasking object itself.
    • headers

      public List<DataMaskingEntity> headers()
      Get the headers property: Masking settings for headers.
      Returns:
      the headers value.
    • withHeaders

      public DataMasking withHeaders(List<DataMaskingEntity> headers)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DataMasking>
      Throws:
      IOException
    • fromJson

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