Class SensitiveDataScannerIncludedKeywordConfiguration

java.lang.Object
com.datadog.api.client.v2.model.SensitiveDataScannerIncludedKeywordConfiguration

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SensitiveDataScannerIncludedKeywordConfiguration extends Object
Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check, the match is kept. If none are found, the match is discarded.
  • Field Details

  • Constructor Details

    • SensitiveDataScannerIncludedKeywordConfiguration

      public SensitiveDataScannerIncludedKeywordConfiguration()
    • SensitiveDataScannerIncludedKeywordConfiguration

      public SensitiveDataScannerIncludedKeywordConfiguration(Long characterCount, List<String> keywords)
  • Method Details

    • characterCount

      public SensitiveDataScannerIncludedKeywordConfiguration characterCount(Long characterCount)
    • getCharacterCount

      public Long getCharacterCount()
      The number of characters behind a match detected by Sensitive Data Scanner to look for the keywords defined. character_count should be greater than the maximum length of a keyword defined for a rule. minimum: 1 maximum: 50
      Returns:
      characterCount
    • setCharacterCount

      public void setCharacterCount(Long characterCount)
    • keywords

    • addKeywordsItem

      public SensitiveDataScannerIncludedKeywordConfiguration addKeywordsItem(String keywordsItem)
    • getKeywords

      public List<String> getKeywords()
      Keyword list that will be checked during scanning in order to validate a match. The number of keywords in the list must be less than or equal to 30.
      Returns:
      keywords
    • setKeywords

      public void setKeywords(List<String> keywords)
    • useRecommendedKeywords

      public SensitiveDataScannerIncludedKeywordConfiguration useRecommendedKeywords(Boolean useRecommendedKeywords)
    • getUseRecommendedKeywords

      @Nullable public Boolean getUseRecommendedKeywords()
      Should the rule use the underlying standard pattern keyword configuration. If set to true , the rule must be tied to a standard pattern. If set to false, the specified keywords and character_count are applied.
      Returns:
      useRecommendedKeywords
    • setUseRecommendedKeywords

      public void setUseRecommendedKeywords(Boolean useRecommendedKeywords)
    • putAdditionalProperty

      public SensitiveDataScannerIncludedKeywordConfiguration putAdditionalProperty(String key, Object value)
      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 set
      value - The associated value
      Returns:
      SensitiveDataScannerIncludedKeywordConfiguration
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      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

      public boolean equals(Object o)
      Return true if this SensitiveDataScannerIncludedKeywordConfiguration object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object