AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DataQualityRuleResult.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/DataQualityRuleResultStatus.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GLUE_API DataQualityRuleResult() = default;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 DataQualityRuleResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 DataQualityRuleResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetEvaluationMessage() const { return m_evaluationMessage; }
72 inline bool EvaluationMessageHasBeenSet() const { return m_evaluationMessageHasBeenSet; }
73 template<typename EvaluationMessageT = Aws::String>
74 void SetEvaluationMessage(EvaluationMessageT&& value) { m_evaluationMessageHasBeenSet = true; m_evaluationMessage = std::forward<EvaluationMessageT>(value); }
75 template<typename EvaluationMessageT = Aws::String>
76 DataQualityRuleResult& WithEvaluationMessage(EvaluationMessageT&& value) { SetEvaluationMessage(std::forward<EvaluationMessageT>(value)); return *this;}
78
80
83 inline DataQualityRuleResultStatus GetResult() const { return m_result; }
84 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
85 inline void SetResult(DataQualityRuleResultStatus value) { m_resultHasBeenSet = true; m_result = value; }
88
90
93 inline const Aws::Map<Aws::String, double>& GetEvaluatedMetrics() const { return m_evaluatedMetrics; }
94 inline bool EvaluatedMetricsHasBeenSet() const { return m_evaluatedMetricsHasBeenSet; }
95 template<typename EvaluatedMetricsT = Aws::Map<Aws::String, double>>
96 void SetEvaluatedMetrics(EvaluatedMetricsT&& value) { m_evaluatedMetricsHasBeenSet = true; m_evaluatedMetrics = std::forward<EvaluatedMetricsT>(value); }
97 template<typename EvaluatedMetricsT = Aws::Map<Aws::String, double>>
98 DataQualityRuleResult& WithEvaluatedMetrics(EvaluatedMetricsT&& value) { SetEvaluatedMetrics(std::forward<EvaluatedMetricsT>(value)); return *this;}
100 m_evaluatedMetricsHasBeenSet = true; m_evaluatedMetrics.emplace(key, value); return *this;
101 }
103
105
108 inline const Aws::String& GetEvaluatedRule() const { return m_evaluatedRule; }
109 inline bool EvaluatedRuleHasBeenSet() const { return m_evaluatedRuleHasBeenSet; }
110 template<typename EvaluatedRuleT = Aws::String>
111 void SetEvaluatedRule(EvaluatedRuleT&& value) { m_evaluatedRuleHasBeenSet = true; m_evaluatedRule = std::forward<EvaluatedRuleT>(value); }
112 template<typename EvaluatedRuleT = Aws::String>
113 DataQualityRuleResult& WithEvaluatedRule(EvaluatedRuleT&& value) { SetEvaluatedRule(std::forward<EvaluatedRuleT>(value)); return *this;}
115
117
121 inline const Aws::Map<Aws::String, double>& GetRuleMetrics() const { return m_ruleMetrics; }
122 inline bool RuleMetricsHasBeenSet() const { return m_ruleMetricsHasBeenSet; }
123 template<typename RuleMetricsT = Aws::Map<Aws::String, double>>
124 void SetRuleMetrics(RuleMetricsT&& value) { m_ruleMetricsHasBeenSet = true; m_ruleMetrics = std::forward<RuleMetricsT>(value); }
125 template<typename RuleMetricsT = Aws::Map<Aws::String, double>>
126 DataQualityRuleResult& WithRuleMetrics(RuleMetricsT&& value) { SetRuleMetrics(std::forward<RuleMetricsT>(value)); return *this;}
128 m_ruleMetricsHasBeenSet = true; m_ruleMetrics.emplace(key, value); return *this;
129 }
131 private:
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
139 Aws::String m_evaluationMessage;
140 bool m_evaluationMessageHasBeenSet = false;
141
143 bool m_resultHasBeenSet = false;
144
145 Aws::Map<Aws::String, double> m_evaluatedMetrics;
146 bool m_evaluatedMetricsHasBeenSet = false;
147
148 Aws::String m_evaluatedRule;
149 bool m_evaluatedRuleHasBeenSet = false;
150
151 Aws::Map<Aws::String, double> m_ruleMetrics;
152 bool m_ruleMetricsHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace Glue
157} // 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)
AWS_GLUE_API DataQualityRuleResult(Aws::Utils::Json::JsonView jsonValue)
void SetEvaluatedRule(EvaluatedRuleT &&value)
DataQualityRuleResult & WithDescription(DescriptionT &&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