Package com.datadog.api.client.v2.model
Class SensitiveDataScannerTextReplacement
java.lang.Object
com.datadog.api.client.v2.model.SensitiveDataScannerTextReplacement
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SensitiveDataScannerTextReplacement
extends Object
Object describing how the scanned event will be replaced.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this SensitiveDataScannerTextReplacement object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Required if type == 'partial_replacement_from_beginning' or 'partial_replacement_from_end'.Required if type == 'replacement_string'.Only valid when type ==replacement_string.getType()Type of the replacement text.inthashCode()numberOfChars(Long numberOfChars) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.replacementString(String replacementString) voidsetNumberOfChars(Long numberOfChars) voidsetReplacementString(String replacementString) voidsetShouldSaveMatch(Boolean shouldSaveMatch) voidshouldSaveMatch(Boolean shouldSaveMatch) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_NUMBER_OF_CHARS
- See Also:
-
JSON_PROPERTY_REPLACEMENT_STRING
- See Also:
-
JSON_PROPERTY_SHOULD_SAVE_MATCH
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
SensitiveDataScannerTextReplacement
public SensitiveDataScannerTextReplacement()
-
-
Method Details
-
numberOfChars
-
getNumberOfChars
Required if type == 'partial_replacement_from_beginning' or 'partial_replacement_from_end'. It must be > 0. minimum: 0- Returns:
- numberOfChars
-
setNumberOfChars
-
replacementString
-
getReplacementString
Required if type == 'replacement_string'.- Returns:
- replacementString
-
setReplacementString
-
shouldSaveMatch
-
getShouldSaveMatch
Only valid when type ==replacement_string. When enabled, matches can be unmasked in logs by users with ‘Data Scanner Unmask’ permission. As a security best practice, avoid masking for highly-sensitive, long-lived data.- Returns:
- shouldSaveMatch
-
setShouldSaveMatch
-
type
-
getType
Type of the replacement text. None means no replacement. hash means the data will be stubbed. replacement_string means that one can chose a text to replace the data. partial_replacement_from_beginning allows a user to partially replace the data from the beginning, and partial_replacement_from_end on the other hand, allows to replace data from the end.- Returns:
- type
-
setType
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- SensitiveDataScannerTextReplacement
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this SensitiveDataScannerTextReplacement object is equal to o. -
hashCode
public int hashCode() -
toString
-