Interface DataProtectionConfig.Builder

  • Method Details

    • dataProtections

      DataProtectionConfig.Builder dataProtections(Collection<DataProtection> dataProtections)

      An array of data protection configurations for specific web request field types. This is defined for each web ACL. WAF applies the specified protection to all web requests that the web ACL inspects.

      Parameters:
      dataProtections - An array of data protection configurations for specific web request field types. This is defined for each web ACL. WAF applies the specified protection to all web requests that the web ACL inspects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataProtections

      DataProtectionConfig.Builder dataProtections(DataProtection... dataProtections)

      An array of data protection configurations for specific web request field types. This is defined for each web ACL. WAF applies the specified protection to all web requests that the web ACL inspects.

      Parameters:
      dataProtections - An array of data protection configurations for specific web request field types. This is defined for each web ACL. WAF applies the specified protection to all web requests that the web ACL inspects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataProtections

      DataProtectionConfig.Builder dataProtections(Consumer<DataProtection.Builder>... dataProtections)

      An array of data protection configurations for specific web request field types. This is defined for each web ACL. WAF applies the specified protection to all web requests that the web ACL inspects.

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

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

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