Class CfnRulesetPropsMixin.ThresholdProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.databrew.CfnRulesetPropsMixin.ThresholdProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRulesetPropsMixin.ThresholdProperty>
- Enclosing interface:
CfnRulesetPropsMixin.ThresholdProperty
@Stability(Stable)
public static final class CfnRulesetPropsMixin.ThresholdProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRulesetPropsMixin.ThresholdProperty>
A builder for
CfnRulesetPropsMixin.ThresholdProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRulesetPropsMixin.ThresholdProperty.getType()Sets the value ofCfnRulesetPropsMixin.ThresholdProperty.getUnit()Sets the value ofCfnRulesetPropsMixin.ThresholdProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnRulesetPropsMixin.ThresholdProperty.getType()- Parameters:
type- The type of a threshold. Used for comparison of an actual count of rows that satisfy the rule to the threshold value.- Returns:
this
-
unit
Sets the value ofCfnRulesetPropsMixin.ThresholdProperty.getUnit()- Parameters:
unit- Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full sample size used for validation.- Returns:
this
-
value
Sets the value ofCfnRulesetPropsMixin.ThresholdProperty.getValue()- Parameters:
value- The value of a threshold.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRulesetPropsMixin.ThresholdProperty>- Returns:
- a new instance of
CfnRulesetPropsMixin.ThresholdProperty - Throws:
NullPointerException- if any required attribute was not provided
-