Interface InlineRedactionConfiguration.Builder

  • Method Details

    • globalConfidenceLevel

      InlineRedactionConfiguration.Builder globalConfidenceLevel(Integer globalConfidenceLevel)

      The global confidence level for the inline redaction configuration. This indicates the certainty of data type matches in the redaction process. Confidence level 3 means high confidence, and requires a formatted text pattern match in order for content to be redacted. Confidence level 2 means medium confidence, and redaction considers both formatted and unformatted text, and adds keyword associate to the logic. Confidence level 1 means low confidence, and redaction is enforced for both formatted pattern + unformatted pattern without keyword. This is applied to patterns that do not have a pattern-level confidence level. Defaults to confidence level 2.

      Parameters:
      globalConfidenceLevel - The global confidence level for the inline redaction configuration. This indicates the certainty of data type matches in the redaction process. Confidence level 3 means high confidence, and requires a formatted text pattern match in order for content to be redacted. Confidence level 2 means medium confidence, and redaction considers both formatted and unformatted text, and adds keyword associate to the logic. Confidence level 1 means low confidence, and redaction is enforced for both formatted pattern + unformatted pattern without keyword. This is applied to patterns that do not have a pattern-level confidence level. Defaults to confidence level 2.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • globalEnforcedUrls

      InlineRedactionConfiguration.Builder globalEnforcedUrls(Collection<String> globalEnforcedUrls)

      The global enforced URL configuration for the inline redaction configuration. This is applied to patterns that do not have a pattern-level enforced URL list.

      Parameters:
      globalEnforcedUrls - The global enforced URL configuration for the inline redaction configuration. This is applied to patterns that do not have a pattern-level enforced URL list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • globalEnforcedUrls

      InlineRedactionConfiguration.Builder globalEnforcedUrls(String... globalEnforcedUrls)

      The global enforced URL configuration for the inline redaction configuration. This is applied to patterns that do not have a pattern-level enforced URL list.

      Parameters:
      globalEnforcedUrls - The global enforced URL configuration for the inline redaction configuration. This is applied to patterns that do not have a pattern-level enforced URL list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • globalExemptUrls

      InlineRedactionConfiguration.Builder globalExemptUrls(Collection<String> globalExemptUrls)

      The global exempt URL configuration for the inline redaction configuration. This is applied to patterns that do not have a pattern-level exempt URL list.

      Parameters:
      globalExemptUrls - The global exempt URL configuration for the inline redaction configuration. This is applied to patterns that do not have a pattern-level exempt URL list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • globalExemptUrls

      InlineRedactionConfiguration.Builder globalExemptUrls(String... globalExemptUrls)

      The global exempt URL configuration for the inline redaction configuration. This is applied to patterns that do not have a pattern-level exempt URL list.

      Parameters:
      globalExemptUrls - The global exempt URL configuration for the inline redaction configuration. This is applied to patterns that do not have a pattern-level exempt URL list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inlineRedactionPatterns

      InlineRedactionConfiguration.Builder inlineRedactionPatterns(Collection<InlineRedactionPattern> inlineRedactionPatterns)

      The inline redaction patterns to be enabled for the inline redaction configuration.

      Parameters:
      inlineRedactionPatterns - The inline redaction patterns to be enabled for the inline redaction configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inlineRedactionPatterns

      InlineRedactionConfiguration.Builder inlineRedactionPatterns(InlineRedactionPattern... inlineRedactionPatterns)

      The inline redaction patterns to be enabled for the inline redaction configuration.

      Parameters:
      inlineRedactionPatterns - The inline redaction patterns to be enabled for the inline redaction configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inlineRedactionPatterns

      InlineRedactionConfiguration.Builder inlineRedactionPatterns(Consumer<InlineRedactionPattern.Builder>... inlineRedactionPatterns)

      The inline redaction patterns to be enabled for the inline redaction configuration.

      This is a convenience method that creates an instance of the InlineRedactionPattern.Builder avoiding the need to create one manually via InlineRedactionPattern.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to inlineRedactionPatterns(List<InlineRedactionPattern>).

      Parameters:
      inlineRedactionPatterns - a consumer that will call methods on InlineRedactionPattern.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: