DataMaskingRuleProperties Class
- java.
lang. Object - com.
azure. resourcemanager. sql. fluent. models. DataMaskingRuleProperties
- com.
Implements
public final class DataMaskingRuleProperties
implements JsonSerializable<DataMaskingRuleProperties>
The properties of a database data masking rule.
Constructor Summary
| Constructor | Description |
|---|---|
| DataMaskingRuleProperties() |
Creates an instance of Data |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
aliasName()
Get the alias |
| String |
columnName()
Get the column |
|
static
Data |
fromJson(JsonReader jsonReader)
Reads an instance of Data |
| String |
id()
Get the id property: The rule Id. |
|
Data |
maskingFunction()
Get the masking |
| String |
numberFrom()
Get the number |
| String |
numberTo()
Get the number |
| String |
prefixSize()
Get the prefix |
| String |
replacementString()
Get the replacement |
|
Data |
ruleState()
Get the rule |
| String |
schemaName()
Get the schema |
| String |
suffixSize()
Get the suffix |
| String |
tableName()
Get the table |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Data |
withAliasName(String aliasName)
Set the alias |
|
Data |
withColumnName(String columnName)
Set the column |
|
Data |
withMaskingFunction(DataMaskingFunction maskingFunction)
Set the masking |
|
Data |
withNumberFrom(String numberFrom)
Set the number |
|
Data |
withNumberTo(String numberTo)
Set the number |
|
Data |
withPrefixSize(String prefixSize)
Set the prefix |
|
Data |
withReplacementString(String replacementString)
Set the replacement |
|
Data |
withRuleState(DataMaskingRuleState ruleState)
Set the rule |
|
Data |
withSchemaName(String schemaName)
Set the schema |
|
Data |
withSuffixSize(String suffixSize)
Set the suffix |
|
Data |
withTableName(String tableName)
Set the table |
Methods inherited from java.lang.Object
Constructor Details
DataMaskingRuleProperties
public DataMaskingRuleProperties()
Creates an instance of DataMaskingRuleProperties class.
Method Details
aliasName
public String aliasName()
Get the aliasName property: The alias name. This is a legacy parameter and is no longer used.
Returns:
columnName
public String columnName()
Get the columnName property: The column name on which the data masking rule is applied.
Returns:
fromJson
public static DataMaskingRuleProperties fromJson(JsonReader jsonReader)
Reads an instance of DataMaskingRuleProperties from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The rule Id.
Returns:
maskingFunction
public DataMaskingFunction maskingFunction()
Get the maskingFunction property: The masking function that is used for the data masking rule.
Returns:
numberFrom
public String 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:
numberTo
public String 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:
prefixSize
public String 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:
replacementString
public String 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:
ruleState
public DataMaskingRuleState 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:
schemaName
public String schemaName()
Get the schemaName property: The schema name on which the data masking rule is applied.
Returns:
suffixSize
public String 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:
tableName
public String tableName()
Get the tableName property: The table name on which the data masking rule is applied.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAliasName
public DataMaskingRuleProperties withAliasName(String aliasName)
Set the aliasName property: The alias name. This is a legacy parameter and is no longer used.
Parameters:
Returns:
withColumnName
public DataMaskingRuleProperties withColumnName(String columnName)
Set the columnName property: The column name on which the data masking rule is applied.
Parameters:
Returns:
withMaskingFunction
public DataMaskingRuleProperties withMaskingFunction(DataMaskingFunction maskingFunction)
Set the maskingFunction property: The masking function that is used for the data masking rule.
Parameters:
Returns:
withNumberFrom
public DataMaskingRuleProperties withNumberFrom(String numberFrom)
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:
Returns:
withNumberTo
public DataMaskingRuleProperties withNumberTo(String numberTo)
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:
Returns:
withPrefixSize
public DataMaskingRuleProperties 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. Otherwise, this parameter will be ignored.
Parameters:
Returns:
withReplacementString
public DataMaskingRuleProperties 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. Otherwise, this parameter will be ignored.
Parameters:
Returns:
withRuleState
public DataMaskingRuleProperties withRuleState(DataMaskingRuleState ruleState)
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:
Returns:
withSchemaName
public DataMaskingRuleProperties withSchemaName(String schemaName)
Set the schemaName property: The schema name on which the data masking rule is applied.
Parameters:
Returns:
withSuffixSize
public DataMaskingRuleProperties 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. Otherwise, this parameter will be ignored.
Parameters:
Returns:
withTableName
public DataMaskingRuleProperties withTableName(String tableName)
Set the tableName property: The table name on which the data masking rule is applied.
Parameters:
Returns: