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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction(IResolvable action) Sets the value ofCfnRuleProps.getAction()action(CfnRule.ActionProperty action) Sets the value ofCfnRuleProps.getAction()build()Builds the configured instance.listenerIdentifier(String listenerIdentifier) Sets the value ofCfnRuleProps.getListenerIdentifier()match(IResolvable match) Sets the value ofCfnRuleProps.getMatch()match(CfnRule.MatchProperty match) Sets the value ofCfnRuleProps.getMatch()Sets the value ofCfnRuleProps.getName()Sets the value ofCfnRuleProps.getPriority()serviceIdentifier(String serviceIdentifier) Sets the value ofCfnRuleProps.getServiceIdentifier()Sets the value ofCfnRuleProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnRuleProps.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:forwardorfixed-response, and it must be the last action to be performed.- Returns:
this
-
action
Sets the value ofCfnRuleProps.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:forwardorfixed-response, and it must be the last action to be performed.- Returns:
this
-
match
Sets the value ofCfnRuleProps.getMatch()- Parameters:
match- The rule match. This parameter is required.- Returns:
this
-
match
Sets the value ofCfnRuleProps.getMatch()- Parameters:
match- The rule match. This parameter is required.- Returns:
this
-
priority
Sets the value ofCfnRuleProps.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
Sets the value ofCfnRuleProps.getListenerIdentifier()- Parameters:
listenerIdentifier- The ID or Amazon Resource Name (ARN) of the listener.- Returns:
this
-
name
Sets the value ofCfnRuleProps.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
Sets the value ofCfnRuleProps.getServiceIdentifier()- Parameters:
serviceIdentifier- The ID or Amazon Resource Name (ARN) of the service.- Returns:
this
-
tags
Sets the value ofCfnRuleProps.getTags()- Parameters:
tags- The tags for the rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleProps>- Returns:
- a new instance of
CfnRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-