Class RawEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.globalaccelerator.RawEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RawEndpointProps>
- Enclosing interface:
RawEndpointProps
@Stability(Stable)
public static final class RawEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<RawEndpointProps>
A builder for
RawEndpointProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.endpointId
(String endpointId) Sets the value ofRawEndpointProps.getEndpointId()
preserveClientIp
(Boolean preserveClientIp) Sets the value ofRawEndpointProps.getPreserveClientIp()
Sets the value ofRawEndpointProps.getRegion()
Sets the value ofRawEndpointProps.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpointId
Sets the value ofRawEndpointProps.getEndpointId()
- Parameters:
endpointId
- Identifier of the endpoint. This parameter is required. Load balancer ARN, instance ID or EIP allocation ID.- Returns:
this
-
preserveClientIp
Sets the value ofRawEndpointProps.getPreserveClientIp()
- Parameters:
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.
- Returns:
this
-
region
Sets the value ofRawEndpointProps.getRegion()
- Parameters:
region
- The region where this endpoint is located.- Returns:
this
-
weight
Sets the value ofRawEndpointProps.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<RawEndpointProps>
- Returns:
- a new instance of
RawEndpointProps
- Throws:
NullPointerException
- if any required attribute was not provided
-