/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the databrew-2017-07-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.GlueDataBrew.Model
{
///
/// 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.
///
///
public partial class ConditionExpression
{
private string _condition;
private string _targetColumn;
private string _value;
///
/// Gets and sets the property Condition.
///
/// A specific condition to apply to a recipe action. For more information, see Recipe
/// structure in the Glue DataBrew Developer Guide.
///
///
[AWSProperty(Required=true, Min=1, Max=128)]
public string Condition
{
get { return this._condition; }
set { this._condition = value; }
}
// Check to see if Condition property is set
internal bool IsSetCondition()
{
return this._condition != null;
}
///
/// Gets and sets the property TargetColumn.
///
/// A column to apply this condition to.
///
///
[AWSProperty(Required=true, Min=1, Max=1024)]
public string TargetColumn
{
get { return this._targetColumn; }
set { this._targetColumn = value; }
}
// Check to see if TargetColumn property is set
internal bool IsSetTargetColumn()
{
return this._targetColumn != null;
}
///
/// Gets and sets the property Value.
///
/// A value that the condition must evaluate to for the condition to succeed.
///
///
[AWSProperty(Max=1024)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
}