Class CfnEndpointGroupMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.globalaccelerator.CfnEndpointGroupMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointGroupMixinProps>
- Enclosing interface:
CfnEndpointGroupMixinProps
@Stability(Stable)
public static final class CfnEndpointGroupMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointGroupMixinProps>
A builder for
CfnEndpointGroupMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.endpointConfigurations(List<? extends Object> endpointConfigurations) Sets the value ofCfnEndpointGroupMixinProps.getEndpointConfigurations()endpointConfigurations(IResolvable endpointConfigurations) Sets the value ofCfnEndpointGroupMixinProps.getEndpointConfigurations()endpointGroupRegion(String endpointGroupRegion) Sets the value ofCfnEndpointGroupMixinProps.getEndpointGroupRegion()healthCheckIntervalSeconds(Number healthCheckIntervalSeconds) Sets the value ofCfnEndpointGroupMixinProps.getHealthCheckIntervalSeconds()healthCheckPath(String healthCheckPath) Sets the value ofCfnEndpointGroupMixinProps.getHealthCheckPath()healthCheckPort(Number healthCheckPort) Sets the value ofCfnEndpointGroupMixinProps.getHealthCheckPort()healthCheckProtocol(String healthCheckProtocol) Sets the value ofCfnEndpointGroupMixinProps.getHealthCheckProtocol()listenerArn(String listenerArn) Sets the value ofCfnEndpointGroupMixinProps.getListenerArn()listenerArn(IListenerRef listenerArn) Sets the value ofCfnEndpointGroupMixinProps.getListenerArn()portOverrides(List<? extends Object> portOverrides) Sets the value ofCfnEndpointGroupMixinProps.getPortOverrides()portOverrides(IResolvable portOverrides) Sets the value ofCfnEndpointGroupMixinProps.getPortOverrides()thresholdCount(Number thresholdCount) Sets the value ofCfnEndpointGroupMixinProps.getThresholdCount()trafficDialPercentage(Number trafficDialPercentage) Sets the value ofCfnEndpointGroupMixinProps.getTrafficDialPercentage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpointConfigurations
@Stability(Stable) public CfnEndpointGroupMixinProps.Builder endpointConfigurations(IResolvable endpointConfigurations) Sets the value ofCfnEndpointGroupMixinProps.getEndpointConfigurations()- Parameters:
endpointConfigurations- The list of endpoint objects.- Returns:
this
-
endpointConfigurations
@Stability(Stable) public CfnEndpointGroupMixinProps.Builder endpointConfigurations(List<? extends Object> endpointConfigurations) Sets the value ofCfnEndpointGroupMixinProps.getEndpointConfigurations()- Parameters:
endpointConfigurations- The list of endpoint objects.- Returns:
this
-
endpointGroupRegion
@Stability(Stable) public CfnEndpointGroupMixinProps.Builder endpointGroupRegion(String endpointGroupRegion) Sets the value ofCfnEndpointGroupMixinProps.getEndpointGroupRegion()- Parameters:
endpointGroupRegion- The AWS Regions where the endpoint group is located.- Returns:
this
-
healthCheckIntervalSeconds
@Stability(Stable) public CfnEndpointGroupMixinProps.Builder healthCheckIntervalSeconds(Number healthCheckIntervalSeconds) Sets the value ofCfnEndpointGroupMixinProps.getHealthCheckIntervalSeconds()- Parameters:
healthCheckIntervalSeconds- The time—10 seconds or 30 seconds—between health checks for each endpoint. The default value is 30.- Returns:
this
-
healthCheckPath
@Stability(Stable) public CfnEndpointGroupMixinProps.Builder healthCheckPath(String healthCheckPath) Sets the value ofCfnEndpointGroupMixinProps.getHealthCheckPath()- Parameters:
healthCheckPath- If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks. The default is slash (/).- Returns:
this
-
healthCheckPort
@Stability(Stable) public CfnEndpointGroupMixinProps.Builder healthCheckPort(Number healthCheckPort) Sets the value ofCfnEndpointGroupMixinProps.getHealthCheckPort()- Parameters:
healthCheckPort- The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. The default port is the port for the listener that this endpoint group is associated with. If the listener port is a list, Global Accelerator uses the first specified port in the list of ports.- Returns:
this
-
healthCheckProtocol
@Stability(Stable) public CfnEndpointGroupMixinProps.Builder healthCheckProtocol(String healthCheckProtocol) Sets the value ofCfnEndpointGroupMixinProps.getHealthCheckProtocol()- Parameters:
healthCheckProtocol- The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. The default value is TCP.- Returns:
this
-
listenerArn
Sets the value ofCfnEndpointGroupMixinProps.getListenerArn()- Parameters:
listenerArn- The Amazon Resource Name (ARN) of the listener.- Returns:
this
-
listenerArn
Sets the value ofCfnEndpointGroupMixinProps.getListenerArn()- Parameters:
listenerArn- The Amazon Resource Name (ARN) of the listener.- Returns:
this
-
portOverrides
@Stability(Stable) public CfnEndpointGroupMixinProps.Builder portOverrides(IResolvable portOverrides) Sets the value ofCfnEndpointGroupMixinProps.getPortOverrides()- Parameters:
portOverrides- Allows you to override the destination ports used to route traffic to an endpoint. Using a port override lets you map a list of external destination ports (that your users send traffic to) to a list of internal destination ports that you want an application endpoint to receive traffic on.- Returns:
this
-
portOverrides
@Stability(Stable) public CfnEndpointGroupMixinProps.Builder portOverrides(List<? extends Object> portOverrides) Sets the value ofCfnEndpointGroupMixinProps.getPortOverrides()- Parameters:
portOverrides- Allows you to override the destination ports used to route traffic to an endpoint. Using a port override lets you map a list of external destination ports (that your users send traffic to) to a list of internal destination ports that you want an application endpoint to receive traffic on.- Returns:
this
-
thresholdCount
Sets the value ofCfnEndpointGroupMixinProps.getThresholdCount()- Parameters:
thresholdCount- The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3.- Returns:
this
-
trafficDialPercentage
@Stability(Stable) public CfnEndpointGroupMixinProps.Builder trafficDialPercentage(Number trafficDialPercentage) Sets the value ofCfnEndpointGroupMixinProps.getTrafficDialPercentage()- Parameters:
trafficDialPercentage- The percentage of traffic to send to an AWS Regions . Additional traffic is distributed to other endpoint groups for this listener.Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.
The default value is 100.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointGroupMixinProps>- Returns:
- a new instance of
CfnEndpointGroupMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-