Class DataMaskingPolicyProperties

java.lang.Object
com.azure.resourcemanager.sql.fluent.models.DataMaskingPolicyProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<DataMaskingPolicyProperties>

public final class DataMaskingPolicyProperties extends Object implements com.azure.json.JsonSerializable<DataMaskingPolicyProperties>
The properties of a database data masking policy.
  • Constructor Details

    • DataMaskingPolicyProperties

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

    • dataMaskingState

      public DataMaskingState dataMaskingState()
      Get the dataMaskingState property: The state of the data masking policy.
      Returns:
      the dataMaskingState value.
    • withDataMaskingState

      public DataMaskingPolicyProperties withDataMaskingState(DataMaskingState dataMaskingState)
      Set the dataMaskingState property: The state of the data masking policy.
      Parameters:
      dataMaskingState - the dataMaskingState value to set.
      Returns:
      the DataMaskingPolicyProperties object itself.
    • exemptPrincipals

      public String exemptPrincipals()
      Get the exemptPrincipals property: The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries.
      Returns:
      the exemptPrincipals value.
    • withExemptPrincipals

      public DataMaskingPolicyProperties withExemptPrincipals(String exemptPrincipals)
      Set the exemptPrincipals property: The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries.
      Parameters:
      exemptPrincipals - the exemptPrincipals value to set.
      Returns:
      the DataMaskingPolicyProperties object itself.
    • applicationPrincipals

      public String applicationPrincipals()
      Get the applicationPrincipals property: The list of the application principals. This is a legacy parameter and is no longer used.
      Returns:
      the applicationPrincipals value.
    • maskingLevel

      public String maskingLevel()
      Get the maskingLevel property: The masking level. This is a legacy parameter and is no longer used.
      Returns:
      the maskingLevel value.
    • 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<DataMaskingPolicyProperties>
      Throws:
      IOException
    • fromJson

      public static DataMaskingPolicyProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DataMaskingPolicyProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DataMaskingPolicyProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the DataMaskingPolicyProperties.