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 Details

    • Builder

      public Builder()
  • Method Details

    • endpointId

      @Stability(Stable) public RawEndpointProps.Builder endpointId(String endpointId)
      Parameters:
      endpointId - Identifier of the endpoint. This parameter is required. Load balancer ARN, instance ID or EIP allocation ID.
      Returns:
      this
    • preserveClientIp

      @Stability(Stable) public RawEndpointProps.Builder preserveClientIp(Boolean preserveClientIp)
      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

      @Stability(Stable) public RawEndpointProps.Builder region(String region)
      Parameters:
      region - The region where this endpoint is located.
      Returns:
      this
    • weight

      @Stability(Stable) public RawEndpointProps.Builder weight(Number weight)
      Parameters:
      weight - Endpoint weight across all endpoints in the group. Must be a value between 0 and 255.
      Returns:
      this
    • build

      @Stability(Stable) public RawEndpointProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<RawEndpointProps>
      Returns:
      a new instance of RawEndpointProps
      Throws:
      NullPointerException - if any required attribute was not provided