AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline Rule& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline Rule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline Rule& WithName(const char* value) { SetName(value); return *this;}
58
60
64 inline bool GetDisabled() const{ return m_disabled; }
65 inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; }
66 inline void SetDisabled(bool value) { m_disabledHasBeenSet = true; m_disabled = value; }
67 inline Rule& WithDisabled(bool value) { SetDisabled(value); return *this;}
69
71
86 inline const Aws::String& GetCheckExpression() const{ return m_checkExpression; }
87 inline bool CheckExpressionHasBeenSet() const { return m_checkExpressionHasBeenSet; }
88 inline void SetCheckExpression(const Aws::String& value) { m_checkExpressionHasBeenSet = true; m_checkExpression = value; }
89 inline void SetCheckExpression(Aws::String&& value) { m_checkExpressionHasBeenSet = true; m_checkExpression = std::move(value); }
90 inline void SetCheckExpression(const char* value) { m_checkExpressionHasBeenSet = true; m_checkExpression.assign(value); }
91 inline Rule& WithCheckExpression(const Aws::String& value) { SetCheckExpression(value); return *this;}
92 inline Rule& WithCheckExpression(Aws::String&& value) { SetCheckExpression(std::move(value)); return *this;}
93 inline Rule& WithCheckExpression(const char* value) { SetCheckExpression(value); return *this;}
95
97
104 inline const Aws::Map<Aws::String, Aws::String>& GetSubstitutionMap() const{ return m_substitutionMap; }
105 inline bool SubstitutionMapHasBeenSet() const { return m_substitutionMapHasBeenSet; }
106 inline void SetSubstitutionMap(const Aws::Map<Aws::String, Aws::String>& value) { m_substitutionMapHasBeenSet = true; m_substitutionMap = value; }
107 inline void SetSubstitutionMap(Aws::Map<Aws::String, Aws::String>&& value) { m_substitutionMapHasBeenSet = true; m_substitutionMap = std::move(value); }
109 inline Rule& WithSubstitutionMap(Aws::Map<Aws::String, Aws::String>&& value) { SetSubstitutionMap(std::move(value)); return *this;}
110 inline Rule& AddSubstitutionMap(const Aws::String& key, const Aws::String& value) { m_substitutionMapHasBeenSet = true; m_substitutionMap.emplace(key, value); return *this; }
111 inline Rule& AddSubstitutionMap(Aws::String&& key, const Aws::String& value) { m_substitutionMapHasBeenSet = true; m_substitutionMap.emplace(std::move(key), value); return *this; }
112 inline Rule& AddSubstitutionMap(const Aws::String& key, Aws::String&& value) { m_substitutionMapHasBeenSet = true; m_substitutionMap.emplace(key, std::move(value)); return *this; }
113 inline Rule& AddSubstitutionMap(Aws::String&& key, Aws::String&& value) { m_substitutionMapHasBeenSet = true; m_substitutionMap.emplace(std::move(key), std::move(value)); return *this; }
114 inline Rule& AddSubstitutionMap(const char* key, Aws::String&& value) { m_substitutionMapHasBeenSet = true; m_substitutionMap.emplace(key, std::move(value)); return *this; }
115 inline Rule& AddSubstitutionMap(Aws::String&& key, const char* value) { m_substitutionMapHasBeenSet = true; m_substitutionMap.emplace(std::move(key), value); return *this; }
116 inline Rule& AddSubstitutionMap(const char* key, const char* value) { m_substitutionMapHasBeenSet = true; m_substitutionMap.emplace(key, value); return *this; }
118
120
125 inline const Threshold& GetThreshold() const{ return m_threshold; }
126 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
127 inline void SetThreshold(const Threshold& value) { m_thresholdHasBeenSet = true; m_threshold = value; }
128 inline void SetThreshold(Threshold&& value) { m_thresholdHasBeenSet = true; m_threshold = std::move(value); }
129 inline Rule& WithThreshold(const Threshold& value) { SetThreshold(value); return *this;}
130 inline Rule& WithThreshold(Threshold&& value) { SetThreshold(std::move(value)); return *this;}
132
134
139 inline const Aws::Vector<ColumnSelector>& GetColumnSelectors() const{ return m_columnSelectors; }
140 inline bool ColumnSelectorsHasBeenSet() const { return m_columnSelectorsHasBeenSet; }
141 inline void SetColumnSelectors(const Aws::Vector<ColumnSelector>& value) { m_columnSelectorsHasBeenSet = true; m_columnSelectors = value; }
142 inline void SetColumnSelectors(Aws::Vector<ColumnSelector>&& value) { m_columnSelectorsHasBeenSet = true; m_columnSelectors = std::move(value); }
143 inline Rule& WithColumnSelectors(const Aws::Vector<ColumnSelector>& value) { SetColumnSelectors(value); return *this;}
144 inline Rule& WithColumnSelectors(Aws::Vector<ColumnSelector>&& value) { SetColumnSelectors(std::move(value)); return *this;}
145 inline Rule& AddColumnSelectors(const ColumnSelector& value) { m_columnSelectorsHasBeenSet = true; m_columnSelectors.push_back(value); return *this; }
146 inline Rule& AddColumnSelectors(ColumnSelector&& value) { m_columnSelectorsHasBeenSet = true; m_columnSelectors.push_back(std::move(value)); return *this; }
148 private:
149
150 Aws::String m_name;
151 bool m_nameHasBeenSet = false;
152
153 bool m_disabled;
154 bool m_disabledHasBeenSet = false;
155
156 Aws::String m_checkExpression;
157 bool m_checkExpressionHasBeenSet = false;
158
159 Aws::Map<Aws::String, Aws::String> m_substitutionMap;
160 bool m_substitutionMapHasBeenSet = false;
161
162 Threshold m_threshold;
163 bool m_thresholdHasBeenSet = false;
164
165 Aws::Vector<ColumnSelector> m_columnSelectors;
166 bool m_columnSelectorsHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace GlueDataBrew
171} // namespace Aws
Rule & AddColumnSelectors(const ColumnSelector &value)
Definition Rule.h:145
Rule & WithName(const char *value)
Definition Rule.h:56
void SetCheckExpression(Aws::String &&value)
Definition Rule.h:89
const Aws::Map< Aws::String, Aws::String > & GetSubstitutionMap() const
Definition Rule.h:104
bool DisabledHasBeenSet() const
Definition Rule.h:65
void SetColumnSelectors(Aws::Vector< ColumnSelector > &&value)
Definition Rule.h:142
const Aws::Vector< ColumnSelector > & GetColumnSelectors() const
Definition Rule.h:139
Rule & AddSubstitutionMap(Aws::String &&key, const char *value)
Definition Rule.h:115
Rule & WithCheckExpression(Aws::String &&value)
Definition Rule.h:92
void SetName(Aws::String &&value)
Definition Rule.h:52
AWS_GLUEDATABREW_API Rule()
void SetThreshold(Threshold &&value)
Definition Rule.h:128
Rule & WithSubstitutionMap(const Aws::Map< Aws::String, Aws::String > &value)
Definition Rule.h:108
const Threshold & GetThreshold() const
Definition Rule.h:125
void SetName(const Aws::String &value)
Definition Rule.h:51
void SetCheckExpression(const char *value)
Definition Rule.h:90
Rule & AddSubstitutionMap(const Aws::String &key, const Aws::String &value)
Definition Rule.h:110
Rule & WithColumnSelectors(const Aws::Vector< ColumnSelector > &value)
Definition Rule.h:143
void SetSubstitutionMap(const Aws::Map< Aws::String, Aws::String > &value)
Definition Rule.h:106
void SetDisabled(bool value)
Definition Rule.h:66
Rule & AddSubstitutionMap(const char *key, Aws::String &&value)
Definition Rule.h:114
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUEDATABREW_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCheckExpression(const Aws::String &value)
Definition Rule.h:88
Rule & WithThreshold(const Threshold &value)
Definition Rule.h:129
bool GetDisabled() const
Definition Rule.h:64
Rule & WithCheckExpression(const char *value)
Definition Rule.h:93
Rule & AddSubstitutionMap(Aws::String &&key, Aws::String &&value)
Definition Rule.h:113
bool NameHasBeenSet() const
Definition Rule.h:50
Rule & WithThreshold(Threshold &&value)
Definition Rule.h:130
Rule & WithCheckExpression(const Aws::String &value)
Definition Rule.h:91
const Aws::String & GetName() const
Definition Rule.h:49
const Aws::String & GetCheckExpression() const
Definition Rule.h:86
Rule & AddSubstitutionMap(const char *key, const char *value)
Definition Rule.h:116
Rule & WithColumnSelectors(Aws::Vector< ColumnSelector > &&value)
Definition Rule.h:144
void SetName(const char *value)
Definition Rule.h:53
Rule & WithName(const Aws::String &value)
Definition Rule.h:54
Rule & AddSubstitutionMap(const Aws::String &key, Aws::String &&value)
Definition Rule.h:112
void SetColumnSelectors(const Aws::Vector< ColumnSelector > &value)
Definition Rule.h:141
Rule & WithDisabled(bool value)
Definition Rule.h:67
Rule & WithName(Aws::String &&value)
Definition Rule.h:55
void SetThreshold(const Threshold &value)
Definition Rule.h:127
void SetSubstitutionMap(Aws::Map< Aws::String, Aws::String > &&value)
Definition Rule.h:107
bool SubstitutionMapHasBeenSet() const
Definition Rule.h:105
AWS_GLUEDATABREW_API Rule(Aws::Utils::Json::JsonView jsonValue)
bool ThresholdHasBeenSet() const
Definition Rule.h:126
Rule & AddColumnSelectors(ColumnSelector &&value)
Definition Rule.h:146
bool CheckExpressionHasBeenSet() const
Definition Rule.h:87
Rule & AddSubstitutionMap(Aws::String &&key, const Aws::String &value)
Definition Rule.h:111
Rule & WithSubstitutionMap(Aws::Map< Aws::String, Aws::String > &&value)
Definition Rule.h:109
bool ColumnSelectorsHasBeenSet() const
Definition Rule.h:140
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