Interface StatelessRulesAndCustomActions.Builder

    • Method Detail

      • statelessRules

        StatelessRulesAndCustomActions.Builder statelessRules​(Collection<StatelessRule> statelessRules)

        Defines the set of stateless rules for use in a stateless rule group.

        Parameters:
        statelessRules - Defines the set of stateless rules for use in a stateless rule group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statelessRules

        StatelessRulesAndCustomActions.Builder statelessRules​(StatelessRule... statelessRules)

        Defines the set of stateless rules for use in a stateless rule group.

        Parameters:
        statelessRules - Defines the set of stateless rules for use in a stateless rule group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • customActions

        StatelessRulesAndCustomActions.Builder customActions​(Collection<CustomAction> customActions)

        Defines an array of individual custom action definitions that are available for use by the stateless rules in this StatelessRulesAndCustomActions specification. You name each custom action that you define, and then you can use it by name in your StatelessRule RuleDefinition Actions specification.

        Parameters:
        customActions - Defines an array of individual custom action definitions that are available for use by the stateless rules in this StatelessRulesAndCustomActions specification. You name each custom action that you define, and then you can use it by name in your StatelessRule RuleDefinition Actions specification.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • customActions

        StatelessRulesAndCustomActions.Builder customActions​(CustomAction... customActions)

        Defines an array of individual custom action definitions that are available for use by the stateless rules in this StatelessRulesAndCustomActions specification. You name each custom action that you define, and then you can use it by name in your StatelessRule RuleDefinition Actions specification.

        Parameters:
        customActions - Defines an array of individual custom action definitions that are available for use by the stateless rules in this StatelessRulesAndCustomActions specification. You name each custom action that you define, and then you can use it by name in your StatelessRule RuleDefinition Actions specification.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • customActions

        StatelessRulesAndCustomActions.Builder customActions​(Consumer<CustomAction.Builder>... customActions)

        Defines an array of individual custom action definitions that are available for use by the stateless rules in this StatelessRulesAndCustomActions specification. You name each custom action that you define, and then you can use it by name in your StatelessRule RuleDefinition Actions specification.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #customActions(List).

        Parameters:
        customActions - a consumer that will call methods on CustomAction.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #customActions(java.util.Collection)