Class CfnListenerRule.ForwardConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.ForwardConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListenerRule.ForwardConfigProperty>
- Enclosing interface:
CfnListenerRule.ForwardConfigProperty
@Stability(Stable)
public static final class CfnListenerRule.ForwardConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListenerRule.ForwardConfigProperty>
A builder for
CfnListenerRule.ForwardConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.targetGroups
(List<? extends Object> targetGroups) Sets the value ofCfnListenerRule.ForwardConfigProperty.getTargetGroups()
targetGroups
(IResolvable targetGroups) Sets the value ofCfnListenerRule.ForwardConfigProperty.getTargetGroups()
targetGroupStickinessConfig
(IResolvable targetGroupStickinessConfig) Sets the value ofCfnListenerRule.ForwardConfigProperty.getTargetGroupStickinessConfig()
targetGroupStickinessConfig
(CfnListenerRule.TargetGroupStickinessConfigProperty targetGroupStickinessConfig) Sets the value ofCfnListenerRule.ForwardConfigProperty.getTargetGroupStickinessConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetGroups
@Stability(Stable) public CfnListenerRule.ForwardConfigProperty.Builder targetGroups(IResolvable targetGroups) Sets the value ofCfnListenerRule.ForwardConfigProperty.getTargetGroups()
- Parameters:
targetGroups
- Information about how traffic will be distributed between multiple target groups in a forward rule.- Returns:
this
-
targetGroups
@Stability(Stable) public CfnListenerRule.ForwardConfigProperty.Builder targetGroups(List<? extends Object> targetGroups) Sets the value ofCfnListenerRule.ForwardConfigProperty.getTargetGroups()
- Parameters:
targetGroups
- Information about how traffic will be distributed between multiple target groups in a forward rule.- Returns:
this
-
targetGroupStickinessConfig
@Stability(Stable) public CfnListenerRule.ForwardConfigProperty.Builder targetGroupStickinessConfig(IResolvable targetGroupStickinessConfig) Sets the value ofCfnListenerRule.ForwardConfigProperty.getTargetGroupStickinessConfig()
- Parameters:
targetGroupStickinessConfig
- Information about the target group stickiness for a rule.- Returns:
this
-
targetGroupStickinessConfig
@Stability(Stable) public CfnListenerRule.ForwardConfigProperty.Builder targetGroupStickinessConfig(CfnListenerRule.TargetGroupStickinessConfigProperty targetGroupStickinessConfig) Sets the value ofCfnListenerRule.ForwardConfigProperty.getTargetGroupStickinessConfig()
- Parameters:
targetGroupStickinessConfig
- Information about the target group stickiness for a rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnListenerRule.ForwardConfigProperty>
- Returns:
- a new instance of
CfnListenerRule.ForwardConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-