AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GlueDataBrew
26{
27namespace Model
28{
29
36 class Rule
37 {
38 public:
39 AWS_GLUEDATABREW_API Rule() = default;
40 AWS_GLUEDATABREW_API Rule(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GLUEDATABREW_API Rule& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
54 Rule& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
62 inline bool GetDisabled() const { return m_disabled; }
63 inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; }
64 inline void SetDisabled(bool value) { m_disabledHasBeenSet = true; m_disabled = value; }
65 inline Rule& WithDisabled(bool value) { SetDisabled(value); return *this;}
67
69
84 inline const Aws::String& GetCheckExpression() const { return m_checkExpression; }
85 inline bool CheckExpressionHasBeenSet() const { return m_checkExpressionHasBeenSet; }
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>
89 Rule& WithCheckExpression(CheckExpressionT&& value) { SetCheckExpression(std::forward<CheckExpressionT>(value)); return *this;}
91
93
100 inline const Aws::Map<Aws::String, Aws::String>& GetSubstitutionMap() const { return m_substitutionMap; }
101 inline bool SubstitutionMapHasBeenSet() const { return m_substitutionMapHasBeenSet; }
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>>
105 Rule& WithSubstitutionMap(SubstitutionMapT&& value) { SetSubstitutionMap(std::forward<SubstitutionMapT>(value)); return *this;}
106 template<typename SubstitutionMapKeyT = Aws::String, typename SubstitutionMapValueT = Aws::String>
107 Rule& AddSubstitutionMap(SubstitutionMapKeyT&& key, SubstitutionMapValueT&& value) {
108 m_substitutionMapHasBeenSet = true; m_substitutionMap.emplace(std::forward<SubstitutionMapKeyT>(key), std::forward<SubstitutionMapValueT>(value)); return *this;
109 }
111
113
118 inline const Threshold& GetThreshold() const { return m_threshold; }
119 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
120 template<typename ThresholdT = Threshold>
121 void SetThreshold(ThresholdT&& value) { m_thresholdHasBeenSet = true; m_threshold = std::forward<ThresholdT>(value); }
122 template<typename ThresholdT = Threshold>
123 Rule& WithThreshold(ThresholdT&& value) { SetThreshold(std::forward<ThresholdT>(value)); return *this;}
125
127
132 inline const Aws::Vector<ColumnSelector>& GetColumnSelectors() const { return m_columnSelectors; }
133 inline bool ColumnSelectorsHasBeenSet() const { return m_columnSelectorsHasBeenSet; }
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>>
137 Rule& WithColumnSelectors(ColumnSelectorsT&& value) { SetColumnSelectors(std::forward<ColumnSelectorsT>(value)); return *this;}
138 template<typename ColumnSelectorsT = ColumnSelector>
139 Rule& AddColumnSelectors(ColumnSelectorsT&& value) { m_columnSelectorsHasBeenSet = true; m_columnSelectors.emplace_back(std::forward<ColumnSelectorsT>(value)); return *this; }
141 private:
142
143 Aws::String m_name;
144 bool m_nameHasBeenSet = false;
145
146 bool m_disabled{false};
147 bool m_disabledHasBeenSet = false;
148
149 Aws::String m_checkExpression;
150 bool m_checkExpressionHasBeenSet = false;
151
152 Aws::Map<Aws::String, Aws::String> m_substitutionMap;
153 bool m_substitutionMapHasBeenSet = false;
154
155 Threshold m_threshold;
156 bool m_thresholdHasBeenSet = false;
157
158 Aws::Vector<ColumnSelector> m_columnSelectors;
159 bool m_columnSelectorsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace GlueDataBrew
164} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetSubstitutionMap() const
Definition Rule.h:100
bool DisabledHasBeenSet() const
Definition Rule.h:63
const Aws::Vector< ColumnSelector > & GetColumnSelectors() const
Definition Rule.h:132
void SetColumnSelectors(ColumnSelectorsT &&value)
Definition Rule.h:135
AWS_GLUEDATABREW_API Rule()=default
const Threshold & GetThreshold() const
Definition Rule.h:118
Rule & AddSubstitutionMap(SubstitutionMapKeyT &&key, SubstitutionMapValueT &&value)
Definition Rule.h:107
void SetName(NameT &&value)
Definition Rule.h:52
void SetDisabled(bool value)
Definition Rule.h:64
void SetSubstitutionMap(SubstitutionMapT &&value)
Definition Rule.h:103
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUEDATABREW_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCheckExpression(CheckExpressionT &&value)
Definition Rule.h:87
bool GetDisabled() const
Definition Rule.h:62
Rule & WithColumnSelectors(ColumnSelectorsT &&value)
Definition Rule.h:137
bool NameHasBeenSet() const
Definition Rule.h:50
const Aws::String & GetName() const
Definition Rule.h:49
const Aws::String & GetCheckExpression() const
Definition Rule.h:84
Rule & WithCheckExpression(CheckExpressionT &&value)
Definition Rule.h:89
Rule & AddColumnSelectors(ColumnSelectorsT &&value)
Definition Rule.h:139
Rule & WithSubstitutionMap(SubstitutionMapT &&value)
Definition Rule.h:105
Rule & WithName(NameT &&value)
Definition Rule.h:54
Rule & WithDisabled(bool value)
Definition Rule.h:65
Rule & WithThreshold(ThresholdT &&value)
Definition Rule.h:123
bool SubstitutionMapHasBeenSet() const
Definition Rule.h:101
AWS_GLUEDATABREW_API Rule(Aws::Utils::Json::JsonView jsonValue)
bool ThresholdHasBeenSet() const
Definition Rule.h:119
bool CheckExpressionHasBeenSet() const
Definition Rule.h:85
void SetThreshold(ThresholdT &&value)
Definition Rule.h:121
bool ColumnSelectorsHasBeenSet() const
Definition Rule.h:133
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