Class CfnRuleProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • action

      @Stability(Stable) public CfnRuleProps.Builder action(IResolvable action)
      Sets the value of CfnRuleProps.getAction()
      Parameters:
      action - Describes the action for a rule. This parameter is required. Each rule must include exactly one of the following types of actions: forward or fixed-response , and it must be the last action to be performed.
      Returns:
      this
    • action

      @Stability(Stable) public CfnRuleProps.Builder action(CfnRule.ActionProperty action)
      Sets the value of CfnRuleProps.getAction()
      Parameters:
      action - Describes the action for a rule. This parameter is required. Each rule must include exactly one of the following types of actions: forward or fixed-response , and it must be the last action to be performed.
      Returns:
      this
    • match

      @Stability(Stable) public CfnRuleProps.Builder match(IResolvable match)
      Sets the value of CfnRuleProps.getMatch()
      Parameters:
      match - The rule match. This parameter is required.
      Returns:
      this
    • match

      @Stability(Stable) public CfnRuleProps.Builder match(CfnRule.MatchProperty match)
      Sets the value of CfnRuleProps.getMatch()
      Parameters:
      match - The rule match. This parameter is required.
      Returns:
      this
    • priority

      @Stability(Stable) public CfnRuleProps.Builder priority(Number priority)
      Sets the value of CfnRuleProps.getPriority()
      Parameters:
      priority - The priority assigned to the rule. This parameter is required. Each rule for a specific listener must have a unique priority. The lower the priority number the higher the priority.
      Returns:
      this
    • listenerIdentifier

      @Stability(Stable) public CfnRuleProps.Builder listenerIdentifier(String listenerIdentifier)
      Parameters:
      listenerIdentifier - The ID or Amazon Resource Name (ARN) of the listener.
      Returns:
      this
    • name

      @Stability(Stable) public CfnRuleProps.Builder name(String name)
      Sets the value of CfnRuleProps.getName()
      Parameters:
      name - The name of the rule. The name must be unique within the listener. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.

      If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.

      Returns:
      this
    • serviceIdentifier

      @Stability(Stable) public CfnRuleProps.Builder serviceIdentifier(String serviceIdentifier)
      Parameters:
      serviceIdentifier - The ID or Amazon Resource Name (ARN) of the service.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnRuleProps.Builder tags(List<? extends CfnTag> tags)
      Sets the value of CfnRuleProps.getTags()
      Parameters:
      tags - The tags for the rule.
      Returns:
      this
    • build

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