Class CfnLoadBalancerMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.elasticloadbalancing.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 TypeMethodDescriptionaccessLoggingPolicy(CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty accessLoggingPolicy) Sets the value ofCfnLoadBalancerMixinProps.getAccessLoggingPolicy()accessLoggingPolicy(IResolvable accessLoggingPolicy) Sets the value ofCfnLoadBalancerMixinProps.getAccessLoggingPolicy()appCookieStickinessPolicy(List<? extends Object> appCookieStickinessPolicy) Sets the value ofCfnLoadBalancerMixinProps.getAppCookieStickinessPolicy()appCookieStickinessPolicy(IResolvable appCookieStickinessPolicy) Sets the value ofCfnLoadBalancerMixinProps.getAppCookieStickinessPolicy()availabilityZones(List<String> availabilityZones) Sets the value ofCfnLoadBalancerMixinProps.getAvailabilityZones()build()Builds the configured instance.connectionDrainingPolicy(CfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty connectionDrainingPolicy) Sets the value ofCfnLoadBalancerMixinProps.getConnectionDrainingPolicy()connectionDrainingPolicy(IResolvable connectionDrainingPolicy) Sets the value ofCfnLoadBalancerMixinProps.getConnectionDrainingPolicy()connectionSettings(CfnLoadBalancerPropsMixin.ConnectionSettingsProperty connectionSettings) Sets the value ofCfnLoadBalancerMixinProps.getConnectionSettings()connectionSettings(IResolvable connectionSettings) Sets the value ofCfnLoadBalancerMixinProps.getConnectionSettings()Sets the value ofCfnLoadBalancerMixinProps.getCrossZone()crossZone(IResolvable crossZone) Sets the value ofCfnLoadBalancerMixinProps.getCrossZone()healthCheck(CfnLoadBalancerPropsMixin.HealthCheckProperty healthCheck) Sets the value ofCfnLoadBalancerMixinProps.getHealthCheck()healthCheck(IResolvable healthCheck) Sets the value ofCfnLoadBalancerMixinProps.getHealthCheck()Sets the value ofCfnLoadBalancerMixinProps.getInstances()lbCookieStickinessPolicy(List<? extends Object> lbCookieStickinessPolicy) Sets the value ofCfnLoadBalancerMixinProps.getLbCookieStickinessPolicy()lbCookieStickinessPolicy(IResolvable lbCookieStickinessPolicy) Sets the value ofCfnLoadBalancerMixinProps.getLbCookieStickinessPolicy()Sets the value ofCfnLoadBalancerMixinProps.getListeners()listeners(IResolvable listeners) Sets the value ofCfnLoadBalancerMixinProps.getListeners()loadBalancerName(String loadBalancerName) Sets the value ofCfnLoadBalancerMixinProps.getLoadBalancerName()Sets the value ofCfnLoadBalancerMixinProps.getPolicies()policies(IResolvable policies) Sets the value ofCfnLoadBalancerMixinProps.getPolicies()Sets the value ofCfnLoadBalancerMixinProps.getScheme()securityGroups(List<? extends Object> securityGroups) Sets the value ofCfnLoadBalancerMixinProps.getSecurityGroups()Sets the value ofCfnLoadBalancerMixinProps.getSubnets()Sets the value ofCfnLoadBalancerMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessLoggingPolicy
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder accessLoggingPolicy(IResolvable accessLoggingPolicy) Sets the value ofCfnLoadBalancerMixinProps.getAccessLoggingPolicy()- Parameters:
accessLoggingPolicy- Information about where and how access logs are stored for the load balancer.- Returns:
this
-
accessLoggingPolicy
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder accessLoggingPolicy(CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty accessLoggingPolicy) Sets the value ofCfnLoadBalancerMixinProps.getAccessLoggingPolicy()- Parameters:
accessLoggingPolicy- Information about where and how access logs are stored for the load balancer.- Returns:
this
-
appCookieStickinessPolicy
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder appCookieStickinessPolicy(IResolvable appCookieStickinessPolicy) Sets the value ofCfnLoadBalancerMixinProps.getAppCookieStickinessPolicy()- Parameters:
appCookieStickinessPolicy- Information about a policy for application-controlled session stickiness.- Returns:
this
-
appCookieStickinessPolicy
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder appCookieStickinessPolicy(List<? extends Object> appCookieStickinessPolicy) Sets the value ofCfnLoadBalancerMixinProps.getAppCookieStickinessPolicy()- Parameters:
appCookieStickinessPolicy- Information about a policy for application-controlled session stickiness.- Returns:
this
-
availabilityZones
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder availabilityZones(List<String> availabilityZones) Sets the value ofCfnLoadBalancerMixinProps.getAvailabilityZones()- Parameters:
availabilityZones- The Availability Zones for a load balancer in a default VPC. For a load balancer in a nondefault VPC, specifySubnetsinstead.Update requires replacement if you did not previously specify an Availability Zone or if you are removing all Availability Zones. Otherwise, update requires no interruption.
- Returns:
this
-
connectionDrainingPolicy
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder connectionDrainingPolicy(IResolvable connectionDrainingPolicy) Sets the value ofCfnLoadBalancerMixinProps.getConnectionDrainingPolicy()- Parameters:
connectionDrainingPolicy- If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away from a deregistered or unhealthy instance. For more information, see Configure connection draining in the User Guide for Classic Load Balancers .- Returns:
this
-
connectionDrainingPolicy
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder connectionDrainingPolicy(CfnLoadBalancerPropsMixin.ConnectionDrainingPolicyProperty connectionDrainingPolicy) Sets the value ofCfnLoadBalancerMixinProps.getConnectionDrainingPolicy()- Parameters:
connectionDrainingPolicy- If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away from a deregistered or unhealthy instance. For more information, see Configure connection draining in the User Guide for Classic Load Balancers .- Returns:
this
-
connectionSettings
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder connectionSettings(IResolvable connectionSettings) Sets the value ofCfnLoadBalancerMixinProps.getConnectionSettings()- Parameters:
connectionSettings- If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the specified duration. By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and back-end connections of your load balancer. For more information, see Configure idle connection timeout in the User Guide for Classic Load Balancers .- Returns:
this
-
connectionSettings
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder connectionSettings(CfnLoadBalancerPropsMixin.ConnectionSettingsProperty connectionSettings) Sets the value ofCfnLoadBalancerMixinProps.getConnectionSettings()- Parameters:
connectionSettings- If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the specified duration. By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and back-end connections of your load balancer. For more information, see Configure idle connection timeout in the User Guide for Classic Load Balancers .- Returns:
this
-
crossZone
Sets the value ofCfnLoadBalancerMixinProps.getCrossZone()- Parameters:
crossZone- If enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones. For more information, see Configure cross-zone load balancing in the User Guide for Classic Load Balancers .- Returns:
this
-
crossZone
Sets the value ofCfnLoadBalancerMixinProps.getCrossZone()- Parameters:
crossZone- If enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones. For more information, see Configure cross-zone load balancing in the User Guide for Classic Load Balancers .- Returns:
this
-
healthCheck
Sets the value ofCfnLoadBalancerMixinProps.getHealthCheck()- Parameters:
healthCheck- The health check settings to use when evaluating the health of your EC2 instances. Update requires replacement if you did not previously specify health check settings or if you are removing the health check settings. Otherwise, update requires no interruption.- Returns:
this
-
healthCheck
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder healthCheck(CfnLoadBalancerPropsMixin.HealthCheckProperty healthCheck) Sets the value ofCfnLoadBalancerMixinProps.getHealthCheck()- Parameters:
healthCheck- The health check settings to use when evaluating the health of your EC2 instances. Update requires replacement if you did not previously specify health check settings or if you are removing the health check settings. Otherwise, update requires no interruption.- Returns:
this
-
instances
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder instances(List<? extends Object> instances) Sets the value ofCfnLoadBalancerMixinProps.getInstances()- Parameters:
instances- The IDs of the instances for the load balancer.- Returns:
this
-
lbCookieStickinessPolicy
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder lbCookieStickinessPolicy(IResolvable lbCookieStickinessPolicy) Sets the value ofCfnLoadBalancerMixinProps.getLbCookieStickinessPolicy()- Parameters:
lbCookieStickinessPolicy- Information about a policy for duration-based session stickiness.- Returns:
this
-
lbCookieStickinessPolicy
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder lbCookieStickinessPolicy(List<? extends Object> lbCookieStickinessPolicy) Sets the value ofCfnLoadBalancerMixinProps.getLbCookieStickinessPolicy()- Parameters:
lbCookieStickinessPolicy- Information about a policy for duration-based session stickiness.- Returns:
this
-
listeners
Sets the value ofCfnLoadBalancerMixinProps.getListeners()- Parameters:
listeners- The listeners for the load balancer. You can specify at most one listener per port. If you update the properties for a listener, AWS CloudFormation deletes the existing listener and creates a new one with the specified properties. While the new listener is being created, clients cannot connect to the load balancer.- Returns:
this
-
listeners
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder listeners(List<? extends Object> listeners) Sets the value ofCfnLoadBalancerMixinProps.getListeners()- Parameters:
listeners- The listeners for the load balancer. You can specify at most one listener per port. If you update the properties for a listener, AWS CloudFormation deletes the existing listener and creates a new one with the specified properties. While the new listener is being created, clients cannot connect to the load balancer.- Returns:
this
-
loadBalancerName
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder loadBalancerName(String loadBalancerName) Sets the value ofCfnLoadBalancerMixinProps.getLoadBalancerName()- Parameters:
loadBalancerName- The name of the load balancer. This name must be unique within your set of load balancers for the region.If you don't specify a name, AWS CloudFormation generates a unique physical ID for the load balancer. For more information, see Name Type . If you specify a name, you cannot perform updates that require replacement of this resource, but you can perform other updates. To replace the resource, specify a new name.
- Returns:
this
-
policies
Sets the value ofCfnLoadBalancerMixinProps.getPolicies()- Parameters:
policies- The policies defined for your Classic Load Balancer. Specify only back-end server policies.- Returns:
this
-
policies
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder policies(List<? extends Object> policies) Sets the value ofCfnLoadBalancerMixinProps.getPolicies()- Parameters:
policies- The policies defined for your Classic Load Balancer. Specify only back-end server policies.- Returns:
this
-
scheme
Sets the value ofCfnLoadBalancerMixinProps.getScheme()- Parameters:
scheme- The type of load balancer. Valid only for load balancers in a VPC. IfSchemeisinternet-facing, the load balancer has a public DNS name that resolves to a public IP address.If
Schemeisinternal, the load balancer has a public DNS name that resolves to a private IP address.- Returns:
this
-
securityGroups
@Stability(Stable) public CfnLoadBalancerMixinProps.Builder securityGroups(List<? extends Object> securityGroups) Sets the value ofCfnLoadBalancerMixinProps.getSecurityGroups()- Parameters:
securityGroups- The security groups for the load balancer. Valid only for load balancers in a VPC.- Returns:
this
-
subnets
Sets the value ofCfnLoadBalancerMixinProps.getSubnets()- Parameters:
subnets- The IDs of the subnets for the load balancer. You can specify at most one subnet per Availability Zone. Update requires replacement if you did not previously specify a subnet or if you are removing all subnets. Otherwise, update requires no interruption. To update to a different subnet in the current Availability Zone, you must first update to a subnet in a different Availability Zone, then update to the new subnet in the original Availability Zone.- Returns:
this
-
tags
Sets the value ofCfnLoadBalancerMixinProps.getTags()- Parameters:
tags- The tags associated with a 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
-