public static final class CfnListener.TargetGroupStickinessConfigProperty.Builder
extends java.lang.Object
CfnListener.TargetGroupStickinessConfigProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnListener.TargetGroupStickinessConfigProperty |
build()
Builds the configured instance.
|
CfnListener.TargetGroupStickinessConfigProperty.Builder |
durationSeconds(java.lang.Number durationSeconds)
Sets the value of
CfnListener.TargetGroupStickinessConfigProperty.getDurationSeconds() |
CfnListener.TargetGroupStickinessConfigProperty.Builder |
enabled(java.lang.Boolean enabled)
Sets the value of
CfnListener.TargetGroupStickinessConfigProperty.getEnabled() |
CfnListener.TargetGroupStickinessConfigProperty.Builder |
enabled(IResolvable enabled)
Sets the value of
CfnListener.TargetGroupStickinessConfigProperty.getEnabled() |
public CfnListener.TargetGroupStickinessConfigProperty.Builder durationSeconds(java.lang.Number durationSeconds)
CfnListener.TargetGroupStickinessConfigProperty.getDurationSeconds()
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).this
public CfnListener.TargetGroupStickinessConfigProperty.Builder enabled(java.lang.Boolean enabled)
CfnListener.TargetGroupStickinessConfigProperty.getEnabled()
enabled
- Indicates whether target group stickiness is enabled.this
public CfnListener.TargetGroupStickinessConfigProperty.Builder enabled(IResolvable enabled)
CfnListener.TargetGroupStickinessConfigProperty.getEnabled()
enabled
- Indicates whether target group stickiness is enabled.this
public CfnListener.TargetGroupStickinessConfigProperty build()
CfnListener.TargetGroupStickinessConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided