Class CfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.elasticloadbalancing.CfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty>
- Enclosing interface:
CfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty
@Stability(Stable)
public static final class CfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty.getEnabled()Sets the value ofCfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty.Builder enabled(Boolean enabled) Sets the value ofCfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty.getEnabled()- Parameters:
enabled- Specifies whether connection draining is enabled for the load balancer.- Returns:
this
-
enabled
@Stability(Stable) public CfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty.getEnabled()- Parameters:
enabled- Specifies whether connection draining is enabled for the load balancer.- Returns:
this
-
timeout
@Stability(Stable) public CfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty.Builder timeout(Number timeout) Sets the value ofCfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty.getTimeout()- Parameters:
timeout- The maximum time, in seconds, to keep the existing connections open before deregistering the instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty>- Returns:
- a new instance of
CfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-