AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/databrew/GlueDataBrew_EXPORTS.h>
11#include <aws/databrew/model/ColumnSelector.h>
12#include <aws/databrew/model/Threshold.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GlueDataBrew {
24namespace Model {
25
32class Rule {
33 public:
34 AWS_GLUEDATABREW_API Rule() = default;
35 AWS_GLUEDATABREW_API Rule(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GLUEDATABREW_API Rule& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 Rule& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
62 inline bool GetDisabled() const { return m_disabled; }
63 inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; }
64 inline void SetDisabled(bool value) {
65 m_disabledHasBeenSet = true;
66 m_disabled = value;
67 }
68 inline Rule& WithDisabled(bool value) {
69 SetDisabled(value);
70 return *this;
71 }
73
75
90 inline const Aws::String& GetCheckExpression() const { return m_checkExpression; }
91 inline bool CheckExpressionHasBeenSet() const { return m_checkExpressionHasBeenSet; }
92 template <typename CheckExpressionT = Aws::String>
93 void SetCheckExpression(CheckExpressionT&& value) {
94 m_checkExpressionHasBeenSet = true;
95 m_checkExpression = std::forward<CheckExpressionT>(value);
96 }
97 template <typename CheckExpressionT = Aws::String>
98 Rule& WithCheckExpression(CheckExpressionT&& value) {
99 SetCheckExpression(std::forward<CheckExpressionT>(value));
100 return *this;
101 }
103
105
112 inline const Aws::Map<Aws::String, Aws::String>& GetSubstitutionMap() const { return m_substitutionMap; }
113 inline bool SubstitutionMapHasBeenSet() const { return m_substitutionMapHasBeenSet; }
114 template <typename SubstitutionMapT = Aws::Map<Aws::String, Aws::String>>
115 void SetSubstitutionMap(SubstitutionMapT&& value) {
116 m_substitutionMapHasBeenSet = true;
117 m_substitutionMap = std::forward<SubstitutionMapT>(value);
118 }
119 template <typename SubstitutionMapT = Aws::Map<Aws::String, Aws::String>>
120 Rule& WithSubstitutionMap(SubstitutionMapT&& value) {
121 SetSubstitutionMap(std::forward<SubstitutionMapT>(value));
122 return *this;
123 }
124 template <typename SubstitutionMapKeyT = Aws::String, typename SubstitutionMapValueT = Aws::String>
125 Rule& AddSubstitutionMap(SubstitutionMapKeyT&& key, SubstitutionMapValueT&& value) {
126 m_substitutionMapHasBeenSet = true;
127 m_substitutionMap.emplace(std::forward<SubstitutionMapKeyT>(key), std::forward<SubstitutionMapValueT>(value));
128 return *this;
129 }
131
133
138 inline const Threshold& GetThreshold() const { return m_threshold; }
139 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
140 template <typename ThresholdT = Threshold>
141 void SetThreshold(ThresholdT&& value) {
142 m_thresholdHasBeenSet = true;
143 m_threshold = std::forward<ThresholdT>(value);
144 }
145 template <typename ThresholdT = Threshold>
146 Rule& WithThreshold(ThresholdT&& value) {
147 SetThreshold(std::forward<ThresholdT>(value));
148 return *this;
149 }
151
153
158 inline const Aws::Vector<ColumnSelector>& GetColumnSelectors() const { return m_columnSelectors; }
159 inline bool ColumnSelectorsHasBeenSet() const { return m_columnSelectorsHasBeenSet; }
160 template <typename ColumnSelectorsT = Aws::Vector<ColumnSelector>>
161 void SetColumnSelectors(ColumnSelectorsT&& value) {
162 m_columnSelectorsHasBeenSet = true;
163 m_columnSelectors = std::forward<ColumnSelectorsT>(value);
164 }
165 template <typename ColumnSelectorsT = Aws::Vector<ColumnSelector>>
166 Rule& WithColumnSelectors(ColumnSelectorsT&& value) {
167 SetColumnSelectors(std::forward<ColumnSelectorsT>(value));
168 return *this;
169 }
170 template <typename ColumnSelectorsT = ColumnSelector>
171 Rule& AddColumnSelectors(ColumnSelectorsT&& value) {
172 m_columnSelectorsHasBeenSet = true;
173 m_columnSelectors.emplace_back(std::forward<ColumnSelectorsT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_name;
179
180 bool m_disabled{false};
181
182 Aws::String m_checkExpression;
183
184 Aws::Map<Aws::String, Aws::String> m_substitutionMap;
185
186 Threshold m_threshold;
187
188 Aws::Vector<ColumnSelector> m_columnSelectors;
189 bool m_nameHasBeenSet = false;
190 bool m_disabledHasBeenSet = false;
191 bool m_checkExpressionHasBeenSet = false;
192 bool m_substitutionMapHasBeenSet = false;
193 bool m_thresholdHasBeenSet = false;
194 bool m_columnSelectorsHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace GlueDataBrew
199} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetSubstitutionMap() const
Definition Rule.h:112
bool DisabledHasBeenSet() const
Definition Rule.h:63
const Aws::Vector< ColumnSelector > & GetColumnSelectors() const
Definition Rule.h:158
void SetColumnSelectors(ColumnSelectorsT &&value)
Definition Rule.h:161
AWS_GLUEDATABREW_API Rule()=default
const Threshold & GetThreshold() const
Definition Rule.h:138
Rule & AddSubstitutionMap(SubstitutionMapKeyT &&key, SubstitutionMapValueT &&value)
Definition Rule.h:125
void SetName(NameT &&value)
Definition Rule.h:46
void SetDisabled(bool value)
Definition Rule.h:64
void SetSubstitutionMap(SubstitutionMapT &&value)
Definition Rule.h:115
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:93
bool GetDisabled() const
Definition Rule.h:62
Rule & WithColumnSelectors(ColumnSelectorsT &&value)
Definition Rule.h:166
bool NameHasBeenSet() const
Definition Rule.h:44
const Aws::String & GetName() const
Definition Rule.h:43
const Aws::String & GetCheckExpression() const
Definition Rule.h:90
Rule & WithCheckExpression(CheckExpressionT &&value)
Definition Rule.h:98
Rule & AddColumnSelectors(ColumnSelectorsT &&value)
Definition Rule.h:171
Rule & WithSubstitutionMap(SubstitutionMapT &&value)
Definition Rule.h:120
Rule & WithName(NameT &&value)
Definition Rule.h:51
Rule & WithDisabled(bool value)
Definition Rule.h:68
Rule & WithThreshold(ThresholdT &&value)
Definition Rule.h:146
bool SubstitutionMapHasBeenSet() const
Definition Rule.h:113
AWS_GLUEDATABREW_API Rule(Aws::Utils::Json::JsonView jsonValue)
bool ThresholdHasBeenSet() const
Definition Rule.h:139
bool CheckExpressionHasBeenSet() const
Definition Rule.h:91
void SetThreshold(ThresholdT &&value)
Definition Rule.h:141
bool ColumnSelectorsHasBeenSet() const
Definition Rule.h:159
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