Class CfnListenerRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListenerRuleProps>
- Enclosing interface:
CfnListenerRuleProps
@Stability(Stable)
public static final class CfnListenerRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListenerRuleProps>
A builder for
CfnListenerRuleProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnListenerRuleProps.getActions()
actions
(IResolvable actions) Sets the value ofCfnListenerRuleProps.getActions()
build()
Builds the configured instance.conditions
(List<? extends Object> conditions) Sets the value ofCfnListenerRuleProps.getConditions()
conditions
(IResolvable conditions) Sets the value ofCfnListenerRuleProps.getConditions()
listenerArn
(String listenerArn) Sets the value ofCfnListenerRuleProps.getListenerArn()
Sets the value ofCfnListenerRuleProps.getPriority()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
Sets the value ofCfnListenerRuleProps.getActions()
- Parameters:
actions
- The actions. This parameter is required. The rule must include exactly one of the following types of actions:forward
,fixed-response
, orredirect
, and it must be the last action to be performed. If the rule is for an HTTPS listener, it can also optionally include an authentication action.- Returns:
this
-
actions
Sets the value ofCfnListenerRuleProps.getActions()
- Parameters:
actions
- The actions. This parameter is required. The rule must include exactly one of the following types of actions:forward
,fixed-response
, orredirect
, and it must be the last action to be performed. If the rule is for an HTTPS listener, it can also optionally include an authentication action.- Returns:
this
-
conditions
Sets the value ofCfnListenerRuleProps.getConditions()
- Parameters:
conditions
- The conditions. This parameter is required. The rule can optionally include up to one of each of the following conditions:http-request-method
,host-header
,path-pattern
, andsource-ip
. A rule can also optionally include one or more of each of the following conditions:http-header
andquery-string
.- Returns:
this
-
conditions
@Stability(Stable) public CfnListenerRuleProps.Builder conditions(List<? extends Object> conditions) Sets the value ofCfnListenerRuleProps.getConditions()
- Parameters:
conditions
- The conditions. This parameter is required. The rule can optionally include up to one of each of the following conditions:http-request-method
,host-header
,path-pattern
, andsource-ip
. A rule can also optionally include one or more of each of the following conditions:http-header
andquery-string
.- Returns:
this
-
priority
Sets the value ofCfnListenerRuleProps.getPriority()
- Parameters:
priority
- The rule priority. A listener can't have multiple rules with the same priority. This parameter is required. If you try to reorder rules by updating their priorities, do not specify a new priority if an existing rule already uses this priority, as this can cause an error. If you need to reuse a priority with a different rule, you must remove it as a priority first, and then specify it in a subsequent update.- Returns:
this
-
listenerArn
Sets the value ofCfnListenerRuleProps.getListenerArn()
- Parameters:
listenerArn
- The Amazon Resource Name (ARN) of the listener.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnListenerRuleProps>
- Returns:
- a new instance of
CfnListenerRuleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-