@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConditionExpression extends Object implements Serializable, Cloneable, StructuredPojo
Represents an individual condition that evaluates to true or false.
Conditions are used with recipe actions: The action is only performed for column values where the condition evaluates to true.
If a recipe requires more than one condition, then the recipe must specify multiple ConditionExpression
elements. Each condition is applied to the rows in a dataset first, before the recipe action is performed.
Constructor and Description |
---|
ConditionExpression() |
Modifier and Type | Method and Description |
---|---|
ConditionExpression |
clone() |
boolean |
equals(Object obj) |
String |
getCondition()
A specific condition to apply to a recipe action.
|
String |
getTargetColumn()
A column to apply this condition to, within an AWS Glue DataBrew dataset.
|
String |
getValue()
A value that the condition must evaluate to for the condition to succeed.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCondition(String condition)
A specific condition to apply to a recipe action.
|
void |
setTargetColumn(String targetColumn)
A column to apply this condition to, within an AWS Glue DataBrew dataset.
|
void |
setValue(String value)
A value that the condition must evaluate to for the condition to succeed.
|
String |
toString()
Returns a string representation of this object.
|
ConditionExpression |
withCondition(String condition)
A specific condition to apply to a recipe action.
|
ConditionExpression |
withTargetColumn(String targetColumn)
A column to apply this condition to, within an AWS Glue DataBrew dataset.
|
ConditionExpression |
withValue(String value)
A value that the condition must evaluate to for the condition to succeed.
|
public void setCondition(String condition)
A specific condition to apply to a recipe action. For more information, see Recipe structure in the AWS Glue DataBrew Developer Guide.
condition
- A specific condition to apply to a recipe action. For more information, see Recipe structure in the
AWS Glue DataBrew Developer Guide.public String getCondition()
A specific condition to apply to a recipe action. For more information, see Recipe structure in the AWS Glue DataBrew Developer Guide.
public ConditionExpression withCondition(String condition)
A specific condition to apply to a recipe action. For more information, see Recipe structure in the AWS Glue DataBrew Developer Guide.
condition
- A specific condition to apply to a recipe action. For more information, see Recipe structure in the
AWS Glue DataBrew Developer Guide.public void setValue(String value)
A value that the condition must evaluate to for the condition to succeed.
value
- A value that the condition must evaluate to for the condition to succeed.public String getValue()
A value that the condition must evaluate to for the condition to succeed.
public ConditionExpression withValue(String value)
A value that the condition must evaluate to for the condition to succeed.
value
- A value that the condition must evaluate to for the condition to succeed.public void setTargetColumn(String targetColumn)
A column to apply this condition to, within an AWS Glue DataBrew dataset.
targetColumn
- A column to apply this condition to, within an AWS Glue DataBrew dataset.public String getTargetColumn()
A column to apply this condition to, within an AWS Glue DataBrew dataset.
public ConditionExpression withTargetColumn(String targetColumn)
A column to apply this condition to, within an AWS Glue DataBrew dataset.
targetColumn
- A column to apply this condition to, within an AWS Glue DataBrew dataset.public String toString()
toString
in class Object
Object.toString()
public ConditionExpression clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.