Class AddApplicationActionProps.Builder

java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.AddApplicationActionProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<AddApplicationActionProps>
Enclosing interface:
AddApplicationActionProps

@Stability(Stable) public static final class AddApplicationActionProps.Builder extends Object implements software.amazon.jsii.Builder<AddApplicationActionProps>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • action

      @Stability(Stable) public AddApplicationActionProps.Builder action(ListenerAction action)
      Parameters:
      action - Action to perform. This parameter is required.
      Returns:
      this
    • removeSuffix

      @Stability(Stable) public AddApplicationActionProps.Builder removeSuffix(Boolean removeSuffix)
      Parameters:
      removeSuffix - ListenerRules have a Rule suffix on their logicalId by default. This allows you to remove that suffix. Legacy behavior of the addTargetGroups() convenience method did not include the Rule suffix on the logicalId of the generated ListenerRule. At some point, increasing complexity of requirements can require users to switch from the addTargetGroups() method to the addAction() method. When migrating ListenerRules deployed by a legacy version of addTargetGroups(), you will need to enable this flag to avoid changing the logicalId of your resource. Otherwise Cfn will attempt to replace the ListenerRule and fail.
      Returns:
      this
    • conditions

      @Stability(Stable) public AddApplicationActionProps.Builder conditions(List<? extends ListenerCondition> conditions)
      Parameters:
      conditions - Rule applies if matches the conditions.
      Returns:
      this
    • priority

      @Stability(Stable) public AddApplicationActionProps.Builder priority(Number priority)
      Sets the value of AddRuleProps.getPriority()
      Parameters:
      priority - Priority of this target group. The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions.

      Priorities must be unique.

      Returns:
      this
    • build

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