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 SummaryConstructors
- 
Method SummaryModifier 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- 
Builderpublic Builder()
 
- 
- 
Method Details- 
endpointIdSets 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
 
- 
preserveClientIpSets 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
 
- 
regionSets the value ofRawEndpointProps.getRegion()- Parameters:
- region- The region where this endpoint is located.
- Returns:
- this
 
- 
weightSets the value ofRawEndpointProps.getWeight()- Parameters:
- weight- Endpoint weight across all endpoints in the group. Must be a value between 0 and 255.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<RawEndpointProps>
- Returns:
- a new instance of RawEndpointProps
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-