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