Class CfnVirtualNode.OutlierDetectionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnVirtualNode.OutlierDetectionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVirtualNode.OutlierDetectionProperty>
- Enclosing interface:
- CfnVirtualNode.OutlierDetectionProperty
@Stability(Stable)
public static final class CfnVirtualNode.OutlierDetectionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVirtualNode.OutlierDetectionProperty>
A builder for
CfnVirtualNode.OutlierDetectionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseEjectionDuration(IResolvable baseEjectionDuration) Sets the value ofCfnVirtualNode.OutlierDetectionProperty.getBaseEjectionDuration()baseEjectionDuration(CfnVirtualNode.DurationProperty baseEjectionDuration) Sets the value ofCfnVirtualNode.OutlierDetectionProperty.getBaseEjectionDuration()build()Builds the configured instance.interval(IResolvable interval) Sets the value ofCfnVirtualNode.OutlierDetectionProperty.getInterval()interval(CfnVirtualNode.DurationProperty interval) Sets the value ofCfnVirtualNode.OutlierDetectionProperty.getInterval()maxEjectionPercent(Number maxEjectionPercent) Sets the value ofCfnVirtualNode.OutlierDetectionProperty.getMaxEjectionPercent()maxServerErrors(Number maxServerErrors) Sets the value ofCfnVirtualNode.OutlierDetectionProperty.getMaxServerErrors()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseEjectionDuration
@Stability(Stable) public CfnVirtualNode.OutlierDetectionProperty.Builder baseEjectionDuration(IResolvable baseEjectionDuration) Sets the value ofCfnVirtualNode.OutlierDetectionProperty.getBaseEjectionDuration()- Parameters:
baseEjectionDuration- The base amount of time for which a host is ejected. This parameter is required.- Returns:
this
-
baseEjectionDuration
@Stability(Stable) public CfnVirtualNode.OutlierDetectionProperty.Builder baseEjectionDuration(CfnVirtualNode.DurationProperty baseEjectionDuration) Sets the value ofCfnVirtualNode.OutlierDetectionProperty.getBaseEjectionDuration()- Parameters:
baseEjectionDuration- The base amount of time for which a host is ejected. This parameter is required.- Returns:
this
-
interval
@Stability(Stable) public CfnVirtualNode.OutlierDetectionProperty.Builder interval(IResolvable interval) Sets the value ofCfnVirtualNode.OutlierDetectionProperty.getInterval()- Parameters:
interval- The time interval between ejection sweep analysis. This parameter is required.- Returns:
this
-
interval
@Stability(Stable) public CfnVirtualNode.OutlierDetectionProperty.Builder interval(CfnVirtualNode.DurationProperty interval) Sets the value ofCfnVirtualNode.OutlierDetectionProperty.getInterval()- Parameters:
interval- The time interval between ejection sweep analysis. This parameter is required.- Returns:
this
-
maxEjectionPercent
@Stability(Stable) public CfnVirtualNode.OutlierDetectionProperty.Builder maxEjectionPercent(Number maxEjectionPercent) Sets the value ofCfnVirtualNode.OutlierDetectionProperty.getMaxEjectionPercent()- Parameters:
maxEjectionPercent- Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. This parameter is required. Will eject at least one host regardless of the value.- Returns:
this
-
maxServerErrors
@Stability(Stable) public CfnVirtualNode.OutlierDetectionProperty.Builder maxServerErrors(Number maxServerErrors) Sets the value ofCfnVirtualNode.OutlierDetectionProperty.getMaxServerErrors()- Parameters:
maxServerErrors- Number of consecutive5xxerrors required for ejection. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVirtualNode.OutlierDetectionProperty>- Returns:
- a new instance of
CfnVirtualNode.OutlierDetectionProperty - Throws:
NullPointerException- if any required attribute was not provided
-