DataMaskingPolicyInner Class

public final class DataMaskingPolicyInner
extends ProxyResource

A database data masking policy.

Constructor Summary

Constructor Description
DataMaskingPolicyInner()

Creates an instance of DataMaskingPolicyInner class.

Method Summary

Modifier and Type Method and Description
String applicationPrincipals()

Get the applicationPrincipals property: The list of the application principals.

DataMaskingState dataMaskingState()

Get the dataMaskingState property: The state of the data masking policy.

String exemptPrincipals()

Get the exemptPrincipals property: The list of the exempt principals.

static DataMaskingPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of DataMaskingPolicyInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String kind()

Get the kind property: The kind of Data Masking Policy.

String location()

Get the location property: The location of the data masking policy.

String maskingLevel()

Get the maskingLevel property: The masking level.

String name()

Get the name property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DataMaskingPolicyInner withDataMaskingState(DataMaskingState dataMaskingState)

Set the dataMaskingState property: The state of the data masking policy.

DataMaskingPolicyInner withExemptPrincipals(String exemptPrincipals)

Set the exemptPrincipals property: The list of the exempt principals.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

DataMaskingPolicyInner

public DataMaskingPolicyInner()

Creates an instance of DataMaskingPolicyInner class.

Method Details

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.

dataMaskingState

public DataMaskingState dataMaskingState()

Get the dataMaskingState property: The state of the data masking policy.

Returns:

the dataMaskingState value.

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.

fromJson

public static DataMaskingPolicyInner fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DataMaskingPolicyInner.id()

Returns:

the id value.

kind

public String kind()

Get the kind property: The kind of Data Masking Policy. Metadata, used for Azure portal.

Returns:

the kind value.

location

public String location()

Get the location property: The location of the data masking policy.

Returns:

the location 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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DataMaskingPolicyInner.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DataMaskingPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DataMaskingPolicyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDataMaskingState

public DataMaskingPolicyInner withDataMaskingState(DataMaskingState dataMaskingState)

Set the dataMaskingState property: The state of the data masking policy.

Parameters:

dataMaskingState - the dataMaskingState value to set.

Returns:

the DataMaskingPolicyInner object itself.

withExemptPrincipals

public DataMaskingPolicyInner 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 DataMaskingPolicyInner object itself.

Applies to