Class CfnLoadBalancer.LBCookieStickinessPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.LBCookieStickinessPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoadBalancer.LBCookieStickinessPolicyProperty>
- Enclosing interface:
CfnLoadBalancer.LBCookieStickinessPolicyProperty
@Stability(Stable)
public static final class CfnLoadBalancer.LBCookieStickinessPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLoadBalancer.LBCookieStickinessPolicyProperty>
A builder for
CfnLoadBalancer.LBCookieStickinessPolicyProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cookieExpirationPeriod
(String cookieExpirationPeriod) policyName
(String policyName) Sets the value ofCfnLoadBalancer.LBCookieStickinessPolicyProperty.getPolicyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cookieExpirationPeriod
@Stability(Stable) public CfnLoadBalancer.LBCookieStickinessPolicyProperty.Builder cookieExpirationPeriod(String cookieExpirationPeriod) - Parameters:
cookieExpirationPeriod
- The time period, in seconds, after which the cookie should be considered stale. If this parameter is not specified, the stickiness session lasts for the duration of the browser session.- Returns:
this
-
policyName
@Stability(Stable) public CfnLoadBalancer.LBCookieStickinessPolicyProperty.Builder policyName(String policyName) Sets the value ofCfnLoadBalancer.LBCookieStickinessPolicyProperty.getPolicyName()
- Parameters:
policyName
- The name of the policy. This name must be unique within the set of policies for this load balancer.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLoadBalancer.LBCookieStickinessPolicyProperty>
- Returns:
- a new instance of
CfnLoadBalancer.LBCookieStickinessPolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-