Class NetworkLoadBalancerEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.globalaccelerator.endpoints.NetworkLoadBalancerEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkLoadBalancerEndpointProps>
- Enclosing interface:
NetworkLoadBalancerEndpointProps
@Stability(Stable)
public static final class NetworkLoadBalancerEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<NetworkLoadBalancerEndpointProps>
A builder for
NetworkLoadBalancerEndpointProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.preserveClientIp
(Boolean preserveClientIp) Sets the value ofNetworkLoadBalancerEndpointProps.getPreserveClientIp()
Sets the value ofNetworkLoadBalancerEndpointProps.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
preserveClientIp
@Stability(Stable) public NetworkLoadBalancerEndpointProps.Builder preserveClientIp(Boolean preserveClientIp) Sets the value ofNetworkLoadBalancerEndpointProps.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 ofNetworkLoadBalancerEndpointProps.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<NetworkLoadBalancerEndpointProps>
- Returns:
- a new instance of
NetworkLoadBalancerEndpointProps
- Throws:
NullPointerException
- if any required attribute was not provided
-