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