7#include <aws/databrew/GlueDataBrew_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/databrew/model/Threshold.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/databrew/model/ColumnSelector.h>
39 AWS_GLUEDATABREW_API
Rule() =
default;
51 template<
typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
53 template<
typename NameT = Aws::String>
64 inline void SetDisabled(
bool value) { m_disabledHasBeenSet =
true; m_disabled = value; }
86 template<
typename CheckExpressionT = Aws::String>
87 void SetCheckExpression(CheckExpressionT&& value) { m_checkExpressionHasBeenSet =
true; m_checkExpression = std::forward<CheckExpressionT>(value); }
88 template<
typename CheckExpressionT = Aws::String>
102 template<
typename SubstitutionMapT = Aws::Map<Aws::String, Aws::String>>
103 void SetSubstitutionMap(SubstitutionMapT&& value) { m_substitutionMapHasBeenSet =
true; m_substitutionMap = std::forward<SubstitutionMapT>(value); }
104 template<
typename SubstitutionMapT = Aws::Map<Aws::String, Aws::String>>
106 template<
typename SubstitutionMapKeyT = Aws::String,
typename SubstitutionMapValueT = Aws::String>
108 m_substitutionMapHasBeenSet =
true; m_substitutionMap.emplace(std::forward<SubstitutionMapKeyT>(key), std::forward<SubstitutionMapValueT>(value));
return *
this;
120 template<
typename ThresholdT = Threshold>
121 void SetThreshold(ThresholdT&& value) { m_thresholdHasBeenSet =
true; m_threshold = std::forward<ThresholdT>(value); }
122 template<
typename ThresholdT = Threshold>
134 template<
typename ColumnSelectorsT = Aws::Vector<ColumnSelector>>
135 void SetColumnSelectors(ColumnSelectorsT&& value) { m_columnSelectorsHasBeenSet =
true; m_columnSelectors = std::forward<ColumnSelectorsT>(value); }
136 template<
typename ColumnSelectorsT = Aws::Vector<ColumnSelector>>
138 template<
typename ColumnSelectorsT = ColumnSelector>
139 Rule&
AddColumnSelectors(ColumnSelectorsT&& value) { m_columnSelectorsHasBeenSet =
true; m_columnSelectors.emplace_back(std::forward<ColumnSelectorsT>(value));
return *
this; }
144 bool m_nameHasBeenSet =
false;
146 bool m_disabled{
false};
147 bool m_disabledHasBeenSet =
false;
150 bool m_checkExpressionHasBeenSet =
false;
153 bool m_substitutionMapHasBeenSet =
false;
155 Threshold m_threshold;
156 bool m_thresholdHasBeenSet =
false;
159 bool m_columnSelectorsHasBeenSet =
false;
const Aws::Map< Aws::String, Aws::String > & GetSubstitutionMap() const
bool DisabledHasBeenSet() const
const Aws::Vector< ColumnSelector > & GetColumnSelectors() const
void SetColumnSelectors(ColumnSelectorsT &&value)
AWS_GLUEDATABREW_API Rule()=default
const Threshold & GetThreshold() const
Rule & AddSubstitutionMap(SubstitutionMapKeyT &&key, SubstitutionMapValueT &&value)
void SetName(NameT &&value)
void SetDisabled(bool value)
void SetSubstitutionMap(SubstitutionMapT &&value)
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUEDATABREW_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCheckExpression(CheckExpressionT &&value)
Rule & WithColumnSelectors(ColumnSelectorsT &&value)
bool NameHasBeenSet() const
const Aws::String & GetName() const
const Aws::String & GetCheckExpression() const
Rule & WithCheckExpression(CheckExpressionT &&value)
Rule & AddColumnSelectors(ColumnSelectorsT &&value)
Rule & WithSubstitutionMap(SubstitutionMapT &&value)
Rule & WithName(NameT &&value)
Rule & WithDisabled(bool value)
Rule & WithThreshold(ThresholdT &&value)
bool SubstitutionMapHasBeenSet() const
AWS_GLUEDATABREW_API Rule(Aws::Utils::Json::JsonView jsonValue)
bool ThresholdHasBeenSet() const
bool CheckExpressionHasBeenSet() const
void SetThreshold(ThresholdT &&value)
bool ColumnSelectorsHasBeenSet() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue