All Superinterfaces:
Buildable, CopyableBuilder<Rule.Builder,Rule>, SdkBuilder<Rule.Builder,Rule>, SdkPojo
Enclosing class:
Rule

public static interface Rule.Builder extends SdkPojo, CopyableBuilder<Rule.Builder,Rule>
  • Method Details

    • ruleArn

      Rule.Builder ruleArn(String ruleArn)

      The Amazon Resource Name (ARN) of the rule.

      Parameters:
      ruleArn - The Amazon Resource Name (ARN) of the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • priority

      Rule.Builder priority(String priority)

      The priority.

      Parameters:
      priority - The priority.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      Rule.Builder conditions(Collection<RuleCondition> conditions)

      The conditions. Each rule can include zero or one of the following conditions: http-request-method, host-header, path-pattern, and source-ip, and zero or more of the following conditions: http-header and query-string.

      Parameters:
      conditions - The conditions. Each rule can include zero or one of the following conditions: http-request-method, host-header, path-pattern, and source-ip, and zero or more of the following conditions: http-header and query-string.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      Rule.Builder conditions(RuleCondition... conditions)

      The conditions. Each rule can include zero or one of the following conditions: http-request-method, host-header, path-pattern, and source-ip, and zero or more of the following conditions: http-header and query-string.

      Parameters:
      conditions - The conditions. Each rule can include zero or one of the following conditions: http-request-method, host-header, path-pattern, and source-ip, and zero or more of the following conditions: http-header and query-string.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      Rule.Builder conditions(Consumer<RuleCondition.Builder>... conditions)

      The conditions. Each rule can include zero or one of the following conditions: http-request-method, host-header, path-pattern, and source-ip, and zero or more of the following conditions: http-header and query-string.

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

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

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

      Rule.Builder actions(Collection<Action> actions)

      The actions. Each rule must include exactly one of the following types of actions: forward, redirect, or fixed-response, and it must be the last action to be performed.

      Parameters:
      actions - The actions. Each rule must include exactly one of the following types of actions: forward, redirect, or fixed-response, and it must be the last action to be performed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actions

      Rule.Builder actions(Action... actions)

      The actions. Each rule must include exactly one of the following types of actions: forward, redirect, or fixed-response, and it must be the last action to be performed.

      Parameters:
      actions - The actions. Each rule must include exactly one of the following types of actions: forward, redirect, or fixed-response, and it must be the last action to be performed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actions

      Rule.Builder actions(Consumer<Action.Builder>... actions)

      The actions. Each rule must include exactly one of the following types of actions: forward, redirect, or fixed-response, and it must be the last action to be performed.

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

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

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

      Rule.Builder isDefault(Boolean isDefault)

      Indicates whether this is the default rule.

      Parameters:
      isDefault - Indicates whether this is the default rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.