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 Details

    • DataMaskingEntity

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

    • value

      public String 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

      public DataMaskingEntity withValue(String value)
      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

      public DataMaskingMode mode()
      Get the mode property: Data masking mode.
      Returns:
      the mode value.
    • withMode

      public DataMaskingEntity withMode(DataMaskingMode mode)
      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

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

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