public static final class RawEndpointProps.Builder
extends java.lang.Object
RawEndpointProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RawEndpointProps |
build()
Builds the configured instance.
|
RawEndpointProps.Builder |
endpointId(java.lang.String endpointId)
Sets the value of
RawEndpointProps.getEndpointId() |
RawEndpointProps.Builder |
preserveClientIp(java.lang.Boolean preserveClientIp)
Sets the value of
RawEndpointProps.getPreserveClientIp() |
RawEndpointProps.Builder |
region(java.lang.String region)
Sets the value of
RawEndpointProps.getRegion() |
RawEndpointProps.Builder |
weight(java.lang.Number weight)
Sets the value of
RawEndpointProps.getWeight() |
public RawEndpointProps.Builder endpointId(java.lang.String endpointId)
RawEndpointProps.getEndpointId()
endpointId
- Identifier of the endpoint. This parameter is required.
Load balancer ARN, instance ID or EIP allocation ID.this
public RawEndpointProps.Builder preserveClientIp(java.lang.Boolean preserveClientIp)
RawEndpointProps.getPreserveClientIp()
preserveClientIp
- Forward the client IP address.
GlobalAccelerator will create Network Interfaces in your VPC in order
to preserve the client IP address.
Only applies to Application Load Balancers and EC2 instances.
Client IP address preservation is supported only in specific AWS Regions. See the GlobalAccelerator Developer Guide for a list.
this
public RawEndpointProps.Builder region(java.lang.String region)
RawEndpointProps.getRegion()
region
- The region where this endpoint is located.this
public RawEndpointProps.Builder weight(java.lang.Number weight)
RawEndpointProps.getWeight()
weight
- Endpoint weight across all endpoints in the group.
Must be a value between 0 and 255.this
public RawEndpointProps build()
RawEndpointProps
java.lang.NullPointerException
- if any required attribute was not provided