public static final class InstanceEndpoint.Builder
extends java.lang.Object
InstanceEndpoint
.Modifier and Type | Method and Description |
---|---|
InstanceEndpoint |
build() |
static InstanceEndpoint.Builder |
create(IInstance instance) |
InstanceEndpoint.Builder |
preserveClientIp(java.lang.Boolean preserveClientIp)
Forward the client IP address.
|
InstanceEndpoint.Builder |
weight(java.lang.Number weight)
Endpoint weight across all endpoints in the group.
|
public static InstanceEndpoint.Builder create(IInstance instance)
instance
- This parameter is required.InstanceEndpoint.Builder
.public InstanceEndpoint.Builder preserveClientIp(java.lang.Boolean preserveClientIp)
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.
Default: true if available
preserveClientIp
- Forward the client IP address. This parameter is required.this
public InstanceEndpoint.Builder weight(java.lang.Number weight)
Must be a value between 0 and 255.
Default: 128
weight
- Endpoint weight across all endpoints in the group. This parameter is required.this
public InstanceEndpoint build()