Class CfnListener.ForwardConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.ForwardConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListener.ForwardConfigProperty>
- Enclosing interface:
CfnListener.ForwardConfigProperty
@Stability(Stable)
public static final class CfnListener.ForwardConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListener.ForwardConfigProperty>
A builder for
CfnListener.ForwardConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.targetGroups
(List<? extends Object> targetGroups) Sets the value ofCfnListener.ForwardConfigProperty.getTargetGroups()
targetGroups
(IResolvable targetGroups) Sets the value ofCfnListener.ForwardConfigProperty.getTargetGroups()
targetGroupStickinessConfig
(IResolvable targetGroupStickinessConfig) Sets the value ofCfnListener.ForwardConfigProperty.getTargetGroupStickinessConfig()
targetGroupStickinessConfig
(CfnListener.TargetGroupStickinessConfigProperty targetGroupStickinessConfig) Sets the value ofCfnListener.ForwardConfigProperty.getTargetGroupStickinessConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetGroups
@Stability(Stable) public CfnListener.ForwardConfigProperty.Builder targetGroups(IResolvable targetGroups) Sets the value ofCfnListener.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 CfnListener.ForwardConfigProperty.Builder targetGroups(List<? extends Object> targetGroups) Sets the value ofCfnListener.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 CfnListener.ForwardConfigProperty.Builder targetGroupStickinessConfig(IResolvable targetGroupStickinessConfig) Sets the value ofCfnListener.ForwardConfigProperty.getTargetGroupStickinessConfig()
- Parameters:
targetGroupStickinessConfig
- Information about the target group stickiness for a rule.- Returns:
this
-
targetGroupStickinessConfig
@Stability(Stable) public CfnListener.ForwardConfigProperty.Builder targetGroupStickinessConfig(CfnListener.TargetGroupStickinessConfigProperty targetGroupStickinessConfig) Sets the value ofCfnListener.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<CfnListener.ForwardConfigProperty>
- Returns:
- a new instance of
CfnListener.ForwardConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-