public static final class CfnRuleset.ThresholdProperty.Builder
extends java.lang.Object
CfnRuleset.ThresholdProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnRuleset.ThresholdProperty |
build()
Builds the configured instance.
|
CfnRuleset.ThresholdProperty.Builder |
type(java.lang.String type)
Sets the value of
CfnRuleset.ThresholdProperty.getType() |
CfnRuleset.ThresholdProperty.Builder |
unit(java.lang.String unit)
Sets the value of
CfnRuleset.ThresholdProperty.getUnit() |
CfnRuleset.ThresholdProperty.Builder |
value(java.lang.Number value)
Sets the value of
CfnRuleset.ThresholdProperty.getValue() |
public CfnRuleset.ThresholdProperty.Builder value(java.lang.Number value)
CfnRuleset.ThresholdProperty.getValue()
value
- The value of a threshold. This parameter is required.this
public CfnRuleset.ThresholdProperty.Builder type(java.lang.String type)
CfnRuleset.ThresholdProperty.getType()
type
- The type of a threshold.
Used for comparison of an actual count of rows that satisfy the rule to the threshold value.this
public CfnRuleset.ThresholdProperty.Builder unit(java.lang.String unit)
CfnRuleset.ThresholdProperty.getUnit()
unit
- Unit of threshold value.
Can be either a COUNT or PERCENTAGE of the full sample size used for validation.this
public CfnRuleset.ThresholdProperty build()
CfnRuleset.ThresholdProperty
java.lang.NullPointerException
- if any required attribute was not provided