Class DataMaskingPolicyInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.DataMaskingPolicyInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class DataMaskingPolicyInner
extends com.azure.core.management.ProxyResource
A database data masking policy.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataMaskingPolicyInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the applicationPrincipals property: The list of the application principals.Get the dataMaskingState property: The state of the data masking policy.Get the exemptPrincipals property: The list of the exempt principals.static DataMaskingPolicyInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DataMaskingPolicyInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.kind()Get the kind property: The kind of Data Masking Policy.location()Get the location property: The location of the data masking policy.Get the maskingLevel property: The masking level.name()Get the name property: The name of the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withDataMaskingState(DataMaskingState dataMaskingState) Set the dataMaskingState property: The state of the data masking policy.withExemptPrincipals(String exemptPrincipals) Set the exemptPrincipals property: The list of the exempt principals.Methods inherited from class 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
-
DataMaskingPolicyInner
public DataMaskingPolicyInner()Creates an instance of DataMaskingPolicyInner class.
-
-
Method Details
-
location
Get the location property: The location of the data masking policy.- Returns:
- the location value.
-
kind
Get the kind property: The kind of Data Masking Policy. Metadata, used for Azure portal.- Returns:
- the kind value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
dataMaskingState
Get the dataMaskingState property: The state of the data masking policy.- Returns:
- the dataMaskingState value.
-
withDataMaskingState
Set the dataMaskingState property: The state of the data masking policy.- Parameters:
dataMaskingState- the dataMaskingState value to set.- Returns:
- the DataMaskingPolicyInner object itself.
-
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
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 DataMaskingPolicyInner object itself.
-
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static DataMaskingPolicyInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DataMaskingPolicyInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DataMaskingPolicyInner 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 DataMaskingPolicyInner.
-