DataMaskingRuleInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. fluent. models. DataMaskingRuleInner
- com.
- com.
public final class DataMaskingRuleInner
extends ProxyResource
A database data masking rule.
Constructor Summary
Constructor | Description |
---|---|
DataMaskingRuleInner() |
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: Fully qualified resource Id for the resource. |
String |
idPropertiesId()
Get the id property: The rule Id. |
String |
kind()
Get the kind property: The kind of Data Masking Rule. |
String |
location()
Get the location property: The location of the data masking rule. |
Data |
maskingFunction()
Get the masking |
String |
name()
Get the name property: The name of the resource. |
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) |
String |
type()
Get the type property: The type of the resource. |
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 ProxyResource
Methods inherited from java.lang.Object
Constructor Details
DataMaskingRuleInner
public DataMaskingRuleInner()
Creates an instance of DataMaskingRuleInner 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 DataMaskingRuleInner fromJson(JsonReader jsonReader)
Reads an instance of DataMaskingRuleInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
DataMaskingRuleInner.id()Returns:
idPropertiesId
public String idPropertiesId()
Get the id property: The rule Id.
Returns:
kind
public String kind()
Get the kind property: The kind of Data Masking Rule. Metadata, used for Azure portal.
Returns:
location
public String location()
Get the location property: The location of the data masking rule.
Returns:
maskingFunction
public DataMaskingFunction maskingFunction()
Get the maskingFunction property: The masking function that is used for the data masking rule.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
DataMaskingRuleInner.name()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
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DataMaskingRuleInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
DataMaskingRuleInner.type()Returns:
validate
public void validate()
Validates the instance.
withAliasName
public DataMaskingRuleInner withAliasName(String aliasName)
Set the aliasName property: The alias name. This is a legacy parameter and is no longer used.
Parameters:
Returns:
withColumnName
public DataMaskingRuleInner withColumnName(String columnName)
Set the columnName property: The column name on which the data masking rule is applied.
Parameters:
Returns:
withMaskingFunction
public DataMaskingRuleInner withMaskingFunction(DataMaskingFunction maskingFunction)
Set the maskingFunction property: The masking function that is used for the data masking rule.
Parameters:
Returns:
withNumberFrom
public DataMaskingRuleInner 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 DataMaskingRuleInner 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 DataMaskingRuleInner 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 DataMaskingRuleInner 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 DataMaskingRuleInner 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 DataMaskingRuleInner withSchemaName(String schemaName)
Set the schemaName property: The schema name on which the data masking rule is applied.
Parameters:
Returns:
withSuffixSize
public DataMaskingRuleInner 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 DataMaskingRuleInner withTableName(String tableName)
Set the tableName property: The table name on which the data masking rule is applied.
Parameters:
Returns:
Applies to
Azure SDK for Java