Class ApplicationLoadBalancerEndpointOptions.Builder
java.lang.Object
software.amazon.awscdk.services.globalaccelerator.endpoints.ApplicationLoadBalancerEndpointOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApplicationLoadBalancerEndpointOptions>
- Enclosing interface:
ApplicationLoadBalancerEndpointOptions
@Stability(Stable)
public static final class ApplicationLoadBalancerEndpointOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ApplicationLoadBalancerEndpointOptions>
A builder for
ApplicationLoadBalancerEndpointOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.preserveClientIp
(Boolean preserveClientIp) Sets the value ofApplicationLoadBalancerEndpointOptions.getPreserveClientIp()
Sets the value ofApplicationLoadBalancerEndpointOptions.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
preserveClientIp
@Stability(Stable) public ApplicationLoadBalancerEndpointOptions.Builder preserveClientIp(Boolean preserveClientIp) Sets the value ofApplicationLoadBalancerEndpointOptions.getPreserveClientIp()
- Parameters:
preserveClientIp
- Forward the client IP address in anX-Forwarded-For
header. GlobalAccelerator will create Network Interfaces in your VPC in order to preserve the client IP address.Client IP address preservation is supported only in specific AWS Regions. See the GlobalAccelerator Developer Guide for a list.
- Returns:
this
-
weight
Sets the value ofApplicationLoadBalancerEndpointOptions.getWeight()
- Parameters:
weight
- Endpoint weight across all endpoints in the group. Must be a value between 0 and 255.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ApplicationLoadBalancerEndpointOptions>
- Returns:
- a new instance of
ApplicationLoadBalancerEndpointOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-