Class CfnListenerRule.TargetGroupStickinessConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.TargetGroupStickinessConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListenerRule.TargetGroupStickinessConfigProperty>
- Enclosing interface:
CfnListenerRule.TargetGroupStickinessConfigProperty
@Stability(Stable)
public static final class CfnListenerRule.TargetGroupStickinessConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListenerRule.TargetGroupStickinessConfigProperty>
A builder for
CfnListenerRule.TargetGroupStickinessConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.durationSeconds(Number durationSeconds) Sets the value ofCfnListenerRule.TargetGroupStickinessConfigProperty.getDurationSeconds()Sets the value ofCfnListenerRule.TargetGroupStickinessConfigProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnListenerRule.TargetGroupStickinessConfigProperty.getEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
durationSeconds
@Stability(Stable) public CfnListenerRule.TargetGroupStickinessConfigProperty.Builder durationSeconds(Number durationSeconds) Sets the value ofCfnListenerRule.TargetGroupStickinessConfigProperty.getDurationSeconds()- Parameters:
durationSeconds- The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days).- Returns:
this
-
enabled
@Stability(Stable) public CfnListenerRule.TargetGroupStickinessConfigProperty.Builder enabled(Boolean enabled) Sets the value ofCfnListenerRule.TargetGroupStickinessConfigProperty.getEnabled()- Parameters:
enabled- Indicates whether target group stickiness is enabled.- Returns:
this
-
enabled
@Stability(Stable) public CfnListenerRule.TargetGroupStickinessConfigProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnListenerRule.TargetGroupStickinessConfigProperty.getEnabled()- Parameters:
enabled- Indicates whether target group stickiness is enabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnListenerRule.TargetGroupStickinessConfigProperty>- Returns:
- a new instance of
CfnListenerRule.TargetGroupStickinessConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-