Class ForwardOptions.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.ForwardOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ForwardOptions>
- Enclosing interface:
ForwardOptions
@Stability(Stable)
public static final class ForwardOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ForwardOptions>
A builder for
ForwardOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.stickinessDuration
(Duration stickinessDuration) Sets the value ofForwardOptions.getStickinessDuration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stickinessDuration
Sets the value ofForwardOptions.getStickinessDuration()
- Parameters:
stickinessDuration
- For how long clients should be directed to the same target group. Range between 1 second and 7 days.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ForwardOptions>
- Returns:
- a new instance of
ForwardOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-