Class CfnRuleset.ThresholdProperty.Builder
java.lang.Object
software.amazon.awscdk.services.databrew.CfnRuleset.ThresholdProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleset.ThresholdProperty>
- Enclosing interface:
- CfnRuleset.ThresholdProperty
@Stability(Stable)
public static final class CfnRuleset.ThresholdProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleset.ThresholdProperty>
A builder for
CfnRuleset.ThresholdProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRuleset.ThresholdProperty.getType()Sets the value ofCfnRuleset.ThresholdProperty.getUnit()Sets the value ofCfnRuleset.ThresholdProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
value
Sets the value ofCfnRuleset.ThresholdProperty.getValue()- Parameters:
value- The value of a threshold. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnRuleset.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 ofCfnRuleset.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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleset.ThresholdProperty>- Returns:
- a new instance of
CfnRuleset.ThresholdProperty - Throws:
NullPointerException- if any required attribute was not provided
-