Class ManagedRule.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<ManagedRule>
    Enclosing interface:
    ManagedRule

    @Stability(Experimental)
    public static final class ManagedRule.Builder
    extends Object
    implements software.amazon.jsii.Builder<ManagedRule>
    A builder for ManagedRule
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        @Stability(Experimental)
        public ManagedRule.Builder name​(String name)
        Sets the value of ManagedRule.getName()
        Parameters:
        name - The name of the managed rule group. This parameter is required. You use this, along with the vendor name, to identify the rule group.
        Returns:
        this
      • vendor

        @Stability(Experimental)
        public ManagedRule.Builder vendor​(String vendor)
        Sets the value of ManagedRule.getVendor()
        Parameters:
        vendor - The name of the managed rule group vendor. This parameter is required. You use this, along with the rule group name, to identify the rule group.
        Returns:
        this
      • build

        @Stability(Experimental)
        public ManagedRule build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<ManagedRule>
        Returns:
        a new instance of ManagedRule
        Throws:
        NullPointerException - if any required attribute was not provided