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 Details

  • Constructor Details

    • SensitiveDataScannerTextReplacement

      public SensitiveDataScannerTextReplacement()
  • Method Details

    • numberOfChars

      public SensitiveDataScannerTextReplacement numberOfChars(Long numberOfChars)
    • getNumberOfChars

      @Nullable public Long getNumberOfChars()
      Required if type == 'partial_replacement_from_beginning' or 'partial_replacement_from_end'. It must be > 0. minimum: 0
      Returns:
      numberOfChars
    • setNumberOfChars

      public void setNumberOfChars(Long numberOfChars)
    • replacementString

      public SensitiveDataScannerTextReplacement replacementString(String replacementString)
    • getReplacementString

      @Nullable public String getReplacementString()
      Required if type == 'replacement_string'.
      Returns:
      replacementString
    • setReplacementString

      public void setReplacementString(String replacementString)
    • shouldSaveMatch

      public SensitiveDataScannerTextReplacement shouldSaveMatch(Boolean shouldSaveMatch)
    • getShouldSaveMatch

      @Nullable public Boolean 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

      public void setShouldSaveMatch(Boolean shouldSaveMatch)
    • type

    • getType

      @Nullable public SensitiveDataScannerTextReplacementType 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

      public void setType(SensitiveDataScannerTextReplacementType type)
    • putAdditionalProperty

      public SensitiveDataScannerTextReplacement 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:
      SensitiveDataScannerTextReplacement
    • 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 SensitiveDataScannerTextReplacement 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