Class DataMaskingRuleInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.synapse.fluent.models.DataMaskingRuleInner
public final class DataMaskingRuleInner
extends com.azure.core.management.ProxyResource
Represents a Sql pool data masking rule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the aliasName property: The alias name.Get the columnName property: The column name on which the data masking rule is applied.Get the id property: The rule Id.kind()
Get the kind property: The kind of Data Masking Rule.location()
Get the location property: The location of the data masking rule.Get the maskingFunction property: The masking function that is used for the data masking rule.Get the numberFrom property: The numberFrom property of the masking rule.numberTo()
Get the numberTo property: The numberTo property of the data masking rule.Get the prefixSize property: If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string.Get the replacementString property: If maskingFunction is set to Text, the character to use for masking the unexposed part of the string.Get the ruleState property: The rule state.Get the schemaName property: The schema name on which the data masking rule is applied.Get the suffixSize property: If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string.Get the tableName property: The table name on which the data masking rule is applied.void
validate()
Validates the instance.withAliasName
(String aliasName) Set the aliasName property: The alias name.withColumnName
(String columnName) Set the columnName property: The column name on which the data masking rule is applied.withMaskingFunction
(DataMaskingFunction maskingFunction) Set the maskingFunction property: The masking function that is used for the data masking rule.withNumberFrom
(String numberFrom) Set the numberFrom property: The numberFrom property of the masking rule.withNumberTo
(String numberTo) Set the numberTo property: The numberTo property of the data masking rule.withPrefixSize
(String prefixSize) Set the prefixSize property: If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string.withReplacementString
(String replacementString) Set the replacementString property: If maskingFunction is set to Text, the character to use for masking the unexposed part of the string.withRuleState
(DataMaskingRuleState ruleState) Set the ruleState property: The rule state.withSchemaName
(String schemaName) Set the schemaName property: The schema name on which the data masking rule is applied.withSuffixSize
(String suffixSize) Set the suffixSize property: If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string.withTableName
(String tableName) Set the tableName property: The table name on which the data masking rule is applied.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
DataMaskingRuleInner
public DataMaskingRuleInner()Creates an instance of DataMaskingRuleInner class.
-
-
Method Details
-
location
Get the location property: The location of the data masking rule.- Returns:
- the location value.
-
kind
Get the kind property: The kind of Data Masking Rule. Metadata, used for Azure portal.- Returns:
- the kind value.
-
idPropertiesId
Get the id property: The rule Id.- Returns:
- the id value.
-
aliasName
Get the aliasName property: The alias name. This is a legacy parameter and is no longer used.- Returns:
- the aliasName value.
-
withAliasName
Set the aliasName property: The alias name. This is a legacy parameter and is no longer used.- Parameters:
aliasName
- the aliasName value to set.- Returns:
- the DataMaskingRuleInner object itself.
-
ruleState
Get the ruleState property: The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value of ruleState.- Returns:
- the ruleState value.
-
withRuleState
Set the ruleState property: The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value of ruleState.- Parameters:
ruleState
- the ruleState value to set.- Returns:
- the DataMaskingRuleInner object itself.
-
schemaName
Get the schemaName property: The schema name on which the data masking rule is applied.- Returns:
- the schemaName value.
-
withSchemaName
Set the schemaName property: The schema name on which the data masking rule is applied.- Parameters:
schemaName
- the schemaName value to set.- Returns:
- the DataMaskingRuleInner object itself.
-
tableName
Get the tableName property: The table name on which the data masking rule is applied.- Returns:
- the tableName value.
-
withTableName
Set the tableName property: The table name on which the data masking rule is applied.- Parameters:
tableName
- the tableName value to set.- Returns:
- the DataMaskingRuleInner object itself.
-
columnName
Get the columnName property: The column name on which the data masking rule is applied.- Returns:
- the columnName value.
-
withColumnName
Set the columnName property: The column name on which the data masking rule is applied.- Parameters:
columnName
- the columnName value to set.- Returns:
- the DataMaskingRuleInner object itself.
-
maskingFunction
Get the maskingFunction property: The masking function that is used for the data masking rule.- Returns:
- the maskingFunction value.
-
withMaskingFunction
Set the maskingFunction property: The masking function that is used for the data masking rule.- Parameters:
maskingFunction
- the maskingFunction value to set.- Returns:
- the DataMaskingRuleInner object itself.
-
numberFrom
Get the numberFrom property: The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored.- Returns:
- the numberFrom value.
-
withNumberFrom
Set the numberFrom property: The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored.- Parameters:
numberFrom
- the numberFrom value to set.- Returns:
- the DataMaskingRuleInner object itself.
-
numberTo
Get the numberTo property: The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored.- Returns:
- the numberTo value.
-
withNumberTo
Set the numberTo property: The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored.- Parameters:
numberTo
- the numberTo value to set.- Returns:
- the DataMaskingRuleInner object itself.
-
prefixSize
Get the prefixSize property: If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string. Otherwise, this parameter will be ignored.- Returns:
- the prefixSize value.
-
withPrefixSize
Set the prefixSize property: If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string. Otherwise, this parameter will be ignored.- Parameters:
prefixSize
- the prefixSize value to set.- Returns:
- the DataMaskingRuleInner object itself.
-
suffixSize
Get the suffixSize property: If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string. Otherwise, this parameter will be ignored.- Returns:
- the suffixSize value.
-
withSuffixSize
Set the suffixSize property: If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string. Otherwise, this parameter will be ignored.- Parameters:
suffixSize
- the suffixSize value to set.- Returns:
- the DataMaskingRuleInner object itself.
-
replacementString
Get the replacementString property: If maskingFunction is set to Text, the character to use for masking the unexposed part of the string. Otherwise, this parameter will be ignored.- Returns:
- the replacementString value.
-
withReplacementString
Set the replacementString property: If maskingFunction is set to Text, the character to use for masking the unexposed part of the string. Otherwise, this parameter will be ignored.- Parameters:
replacementString
- the replacementString value to set.- Returns:
- the DataMaskingRuleInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-