Struct aws_sdk_databrew::types::ConditionExpression
source · #[non_exhaustive]pub struct ConditionExpression {
pub condition: String,
pub value: Option<String>,
pub target_column: String,
}
Expand description
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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.condition: String
A specific condition to apply to a recipe action. For more information, see Recipe structure in the Glue DataBrew Developer Guide.
value: Option<String>
A value that the condition must evaluate to for the condition to succeed.
target_column: String
A column to apply this condition to.
Implementations§
source§impl ConditionExpression
impl ConditionExpression
sourcepub fn condition(&self) -> &str
pub fn condition(&self) -> &str
A specific condition to apply to a recipe action. For more information, see Recipe structure in the Glue DataBrew Developer Guide.
sourcepub fn value(&self) -> Option<&str>
pub fn value(&self) -> Option<&str>
A value that the condition must evaluate to for the condition to succeed.
sourcepub fn target_column(&self) -> &str
pub fn target_column(&self) -> &str
A column to apply this condition to.
source§impl ConditionExpression
impl ConditionExpression
sourcepub fn builder() -> ConditionExpressionBuilder
pub fn builder() -> ConditionExpressionBuilder
Creates a new builder-style object to manufacture ConditionExpression
.
Trait Implementations§
source§impl Clone for ConditionExpression
impl Clone for ConditionExpression
source§fn clone(&self) -> ConditionExpression
fn clone(&self) -> ConditionExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConditionExpression
impl Debug for ConditionExpression
source§impl PartialEq for ConditionExpression
impl PartialEq for ConditionExpression
source§fn eq(&self, other: &ConditionExpression) -> bool
fn eq(&self, other: &ConditionExpression) -> bool
self
and other
values to be equal, and is used
by ==
.