AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
DataQualityRuleResult.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/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/DataQualityRuleResultStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
31 public:
32 AWS_GLUE_API DataQualityRuleResult() = default;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 DataQualityRuleResult& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetEvaluationMessage() const { return m_evaluationMessage; }
78 inline bool EvaluationMessageHasBeenSet() const { return m_evaluationMessageHasBeenSet; }
79 template <typename EvaluationMessageT = Aws::String>
80 void SetEvaluationMessage(EvaluationMessageT&& value) {
81 m_evaluationMessageHasBeenSet = true;
82 m_evaluationMessage = std::forward<EvaluationMessageT>(value);
83 }
84 template <typename EvaluationMessageT = Aws::String>
85 DataQualityRuleResult& WithEvaluationMessage(EvaluationMessageT&& value) {
86 SetEvaluationMessage(std::forward<EvaluationMessageT>(value));
87 return *this;
88 }
90
92
95 inline DataQualityRuleResultStatus GetResult() const { return m_result; }
96 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
98 m_resultHasBeenSet = true;
99 m_result = value;
100 }
102 SetResult(value);
103 return *this;
104 }
106
108
111 inline const Aws::Map<Aws::String, double>& GetEvaluatedMetrics() const { return m_evaluatedMetrics; }
112 inline bool EvaluatedMetricsHasBeenSet() const { return m_evaluatedMetricsHasBeenSet; }
113 template <typename EvaluatedMetricsT = Aws::Map<Aws::String, double>>
114 void SetEvaluatedMetrics(EvaluatedMetricsT&& value) {
115 m_evaluatedMetricsHasBeenSet = true;
116 m_evaluatedMetrics = std::forward<EvaluatedMetricsT>(value);
117 }
118 template <typename EvaluatedMetricsT = Aws::Map<Aws::String, double>>
119 DataQualityRuleResult& WithEvaluatedMetrics(EvaluatedMetricsT&& value) {
120 SetEvaluatedMetrics(std::forward<EvaluatedMetricsT>(value));
121 return *this;
122 }
124 m_evaluatedMetricsHasBeenSet = true;
125 m_evaluatedMetrics.emplace(key, value);
126 return *this;
127 }
129
131
134 inline const Aws::String& GetEvaluatedRule() const { return m_evaluatedRule; }
135 inline bool EvaluatedRuleHasBeenSet() const { return m_evaluatedRuleHasBeenSet; }
136 template <typename EvaluatedRuleT = Aws::String>
137 void SetEvaluatedRule(EvaluatedRuleT&& value) {
138 m_evaluatedRuleHasBeenSet = true;
139 m_evaluatedRule = std::forward<EvaluatedRuleT>(value);
140 }
141 template <typename EvaluatedRuleT = Aws::String>
142 DataQualityRuleResult& WithEvaluatedRule(EvaluatedRuleT&& value) {
143 SetEvaluatedRule(std::forward<EvaluatedRuleT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::Map<Aws::String, double>& GetRuleMetrics() const { return m_ruleMetrics; }
154 inline bool RuleMetricsHasBeenSet() const { return m_ruleMetricsHasBeenSet; }
155 template <typename RuleMetricsT = Aws::Map<Aws::String, double>>
156 void SetRuleMetrics(RuleMetricsT&& value) {
157 m_ruleMetricsHasBeenSet = true;
158 m_ruleMetrics = std::forward<RuleMetricsT>(value);
159 }
160 template <typename RuleMetricsT = Aws::Map<Aws::String, double>>
161 DataQualityRuleResult& WithRuleMetrics(RuleMetricsT&& value) {
162 SetRuleMetrics(std::forward<RuleMetricsT>(value));
163 return *this;
164 }
166 m_ruleMetricsHasBeenSet = true;
167 m_ruleMetrics.emplace(key, value);
168 return *this;
169 }
171
173
176 inline const Aws::Map<Aws::String, Aws::String>& GetLabels() const { return m_labels; }
177 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
178 template <typename LabelsT = Aws::Map<Aws::String, Aws::String>>
179 void SetLabels(LabelsT&& value) {
180 m_labelsHasBeenSet = true;
181 m_labels = std::forward<LabelsT>(value);
182 }
183 template <typename LabelsT = Aws::Map<Aws::String, Aws::String>>
185 SetLabels(std::forward<LabelsT>(value));
186 return *this;
187 }
188 template <typename LabelsKeyT = Aws::String, typename LabelsValueT = Aws::String>
189 DataQualityRuleResult& AddLabels(LabelsKeyT&& key, LabelsValueT&& value) {
190 m_labelsHasBeenSet = true;
191 m_labels.emplace(std::forward<LabelsKeyT>(key), std::forward<LabelsValueT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_name;
197 bool m_nameHasBeenSet = false;
198
199 Aws::String m_description;
200 bool m_descriptionHasBeenSet = false;
201
202 Aws::String m_evaluationMessage;
203 bool m_evaluationMessageHasBeenSet = false;
204
206 bool m_resultHasBeenSet = false;
207
208 Aws::Map<Aws::String, double> m_evaluatedMetrics;
209 bool m_evaluatedMetricsHasBeenSet = false;
210
211 Aws::String m_evaluatedRule;
212 bool m_evaluatedRuleHasBeenSet = false;
213
214 Aws::Map<Aws::String, double> m_ruleMetrics;
215 bool m_ruleMetricsHasBeenSet = false;
216
218 bool m_labelsHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace Glue
223} // namespace Aws
DataQualityRuleResult & WithEvaluationMessage(EvaluationMessageT &&value)
DataQualityRuleResult & AddRuleMetrics(Aws::String key, double value)
DataQualityRuleResult & WithName(NameT &&value)
void SetEvaluationMessage(EvaluationMessageT &&value)
DataQualityRuleResult & WithEvaluatedRule(EvaluatedRuleT &&value)
const Aws::Map< Aws::String, double > & GetRuleMetrics() const
void SetResult(DataQualityRuleResultStatus value)
const Aws::Map< Aws::String, Aws::String > & GetLabels() const
DataQualityRuleResult & AddLabels(LabelsKeyT &&key, LabelsValueT &&value)
AWS_GLUE_API DataQualityRuleResult(Aws::Utils::Json::JsonView jsonValue)
void SetEvaluatedRule(EvaluatedRuleT &&value)
DataQualityRuleResult & WithDescription(DescriptionT &&value)
DataQualityRuleResult & WithLabels(LabelsT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
DataQualityRuleResult & WithResult(DataQualityRuleResultStatus value)
AWS_GLUE_API DataQualityRuleResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API DataQualityRuleResult()=default
DataQualityRuleResultStatus GetResult() const
const Aws::String & GetEvaluationMessage() const
DataQualityRuleResult & WithEvaluatedMetrics(EvaluatedMetricsT &&value)
void SetEvaluatedMetrics(EvaluatedMetricsT &&value)
const Aws::Map< Aws::String, double > & GetEvaluatedMetrics() const
DataQualityRuleResult & WithRuleMetrics(RuleMetricsT &&value)
DataQualityRuleResult & AddEvaluatedMetrics(Aws::String key, double value)
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
Aws::Utils::Json::JsonValue JsonValue