@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Threshold extends Object implements Serializable, Cloneable, StructuredPojo
The threshold used with a non-aggregate check expression. The non-aggregate check expression will be applied to each row in a specific column. Then the threshold will be used to determine whether the validation succeeds.
Constructor and Description |
---|
Threshold() |
Modifier and Type | Method and Description |
---|---|
Threshold |
clone() |
boolean |
equals(Object obj) |
String |
getType()
The type of a threshold.
|
String |
getUnit()
Unit of threshold value.
|
Double |
getValue()
The value of a threshold.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setType(String type)
The type of a threshold.
|
void |
setUnit(String unit)
Unit of threshold value.
|
void |
setValue(Double value)
The value of a threshold.
|
String |
toString()
Returns a string representation of this object.
|
Threshold |
withType(String type)
The type of a threshold.
|
Threshold |
withType(ThresholdType type)
The type of a threshold.
|
Threshold |
withUnit(String unit)
Unit of threshold value.
|
Threshold |
withUnit(ThresholdUnit unit)
Unit of threshold value.
|
Threshold |
withValue(Double value)
The value of a threshold.
|
public void setValue(Double value)
The value of a threshold.
value
- The value of a threshold.public Double getValue()
The value of a threshold.
public Threshold withValue(Double value)
The value of a threshold.
value
- The value of a threshold.public void setType(String type)
The type of a threshold. Used for comparison of an actual count of rows that satisfy the rule to the threshold value.
type
- The type of a threshold. Used for comparison of an actual count of rows that satisfy the rule to the
threshold value.ThresholdType
public String getType()
The type of a threshold. Used for comparison of an actual count of rows that satisfy the rule to the threshold value.
ThresholdType
public Threshold withType(String type)
The type of a threshold. Used for comparison of an actual count of rows that satisfy the rule to the threshold value.
type
- The type of a threshold. Used for comparison of an actual count of rows that satisfy the rule to the
threshold value.ThresholdType
public Threshold withType(ThresholdType type)
The type of a threshold. Used for comparison of an actual count of rows that satisfy the rule to the threshold value.
type
- The type of a threshold. Used for comparison of an actual count of rows that satisfy the rule to the
threshold value.ThresholdType
public void setUnit(String unit)
Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full sample size used for validation.
unit
- Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full sample size used for validation.ThresholdUnit
public String getUnit()
Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full sample size used for validation.
ThresholdUnit
public Threshold withUnit(String unit)
Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full sample size used for validation.
unit
- Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full sample size used for validation.ThresholdUnit
public Threshold withUnit(ThresholdUnit unit)
Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full sample size used for validation.
unit
- Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full sample size used for validation.ThresholdUnit
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.