Class CfnLoadBalancerMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lightsail.CfnLoadBalancerMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoadBalancerMixinProps>
- Enclosing interface:
CfnLoadBalancerMixinProps
@Stability(Stable)
public static final class CfnLoadBalancerMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLoadBalancerMixinProps>
A builder for
CfnLoadBalancerMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachedInstances(List<String> attachedInstances) Sets the value ofCfnLoadBalancerMixinProps.getAttachedInstances()build()Builds the configured instance.healthCheckPath(String healthCheckPath) Sets the value ofCfnLoadBalancerMixinProps.getHealthCheckPath()instancePort(Number instancePort) Sets the value ofCfnLoadBalancerMixinProps.getInstancePort()ipAddressType(String ipAddressType) Sets the value ofCfnLoadBalancerMixinProps.getIpAddressType()loadBalancerName(String loadBalancerName) Sets the value ofCfnLoadBalancerMixinProps.getLoadBalancerName()sessionStickinessEnabled(Boolean sessionStickinessEnabled) Sets the value ofCfnLoadBalancerMixinProps.getSessionStickinessEnabled()sessionStickinessEnabled(IResolvable sessionStickinessEnabled) Sets the value ofCfnLoadBalancerMixinProps.getSessionStickinessEnabled()sessionStickinessLbCookieDurationSeconds(String sessionStickinessLbCookieDurationSeconds) Sets the value ofCfnLoadBalancerMixinProps.getSessionStickinessLbCookieDurationSeconds()Sets the value ofCfnLoadBalancerMixinProps.getTags()tlsPolicyName(String tlsPolicyName) Sets the value ofCfnLoadBalancerMixinProps.getTlsPolicyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attachedInstances
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder attachedInstances(List<String> attachedInstances) Sets the value ofCfnLoadBalancerMixinProps.getAttachedInstances()- Parameters:
attachedInstances- The Lightsail instances to attach to the load balancer.- Returns:
this
-
healthCheckPath
Sets the value ofCfnLoadBalancerMixinProps.getHealthCheckPath()- Parameters:
healthCheckPath- The path on the attached instance where the health check will be performed. If no path is specified, the load balancer tries to make a request to the default (root) page (/index.html).- Returns:
this
-
instancePort
Sets the value ofCfnLoadBalancerMixinProps.getInstancePort()- Parameters:
instancePort- The port that the load balancer uses to direct traffic to your Lightsail instances. For HTTP traffic, specify port80. For HTTPS traffic, specify port443.- Returns:
this
-
ipAddressType
Sets the value ofCfnLoadBalancerMixinProps.getIpAddressType()- Parameters:
ipAddressType- The IP address type of the load balancer. The possible values areipv4for IPv4 only, anddualstackfor both IPv4 and IPv6.- Returns:
this
-
loadBalancerName
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder loadBalancerName(String loadBalancerName) Sets the value ofCfnLoadBalancerMixinProps.getLoadBalancerName()- Parameters:
loadBalancerName- The name of the load balancer.- Returns:
this
-
sessionStickinessEnabled
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder sessionStickinessEnabled(Boolean sessionStickinessEnabled) Sets the value ofCfnLoadBalancerMixinProps.getSessionStickinessEnabled()- Parameters:
sessionStickinessEnabled- A Boolean value indicating whether session stickiness is enabled. Enable session stickiness (also known as session affinity ) to bind a user's session to a specific instance. This ensures that all requests from the user during the session are sent to the same instance.- Returns:
this
-
sessionStickinessEnabled
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder sessionStickinessEnabled(IResolvable sessionStickinessEnabled) Sets the value ofCfnLoadBalancerMixinProps.getSessionStickinessEnabled()- Parameters:
sessionStickinessEnabled- A Boolean value indicating whether session stickiness is enabled. Enable session stickiness (also known as session affinity ) to bind a user's session to a specific instance. This ensures that all requests from the user during the session are sent to the same instance.- Returns:
this
-
sessionStickinessLbCookieDurationSeconds
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder sessionStickinessLbCookieDurationSeconds(String sessionStickinessLbCookieDurationSeconds) Sets the value ofCfnLoadBalancerMixinProps.getSessionStickinessLbCookieDurationSeconds()- Parameters:
sessionStickinessLbCookieDurationSeconds- The time period, in seconds, after which the load balancer session stickiness cookie should be considered stale. If you do not specify this parameter, the default value is 0, which indicates that the sticky session should last for the duration of the browser session.- Returns:
this
-
tags
Sets the value ofCfnLoadBalancerMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag in the AWS CloudFormation User Guide .The
ValueofTagsis optional for Lightsail resources.- Returns:
this
-
tlsPolicyName
Sets the value ofCfnLoadBalancerMixinProps.getTlsPolicyName()- Parameters:
tlsPolicyName- The name of the TLS security policy for the load balancer.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLoadBalancerMixinProps>- Returns:
- a new instance of
CfnLoadBalancerMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-