AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
MetricBasedObservation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/DataQualityMetricValues.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 MetricBasedObservation() = default;
36
38
41 inline const Aws::String& GetMetricName() const { return m_metricName; }
42 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
43 template <typename MetricNameT = Aws::String>
44 void SetMetricName(MetricNameT&& value) {
45 m_metricNameHasBeenSet = true;
46 m_metricName = std::forward<MetricNameT>(value);
47 }
48 template <typename MetricNameT = Aws::String>
49 MetricBasedObservation& WithMetricName(MetricNameT&& value) {
50 SetMetricName(std::forward<MetricNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetStatisticId() const { return m_statisticId; }
60 inline bool StatisticIdHasBeenSet() const { return m_statisticIdHasBeenSet; }
61 template <typename StatisticIdT = Aws::String>
62 void SetStatisticId(StatisticIdT&& value) {
63 m_statisticIdHasBeenSet = true;
64 m_statisticId = std::forward<StatisticIdT>(value);
65 }
66 template <typename StatisticIdT = Aws::String>
67 MetricBasedObservation& WithStatisticId(StatisticIdT&& value) {
68 SetStatisticId(std::forward<StatisticIdT>(value));
69 return *this;
70 }
72
74
78 inline const DataQualityMetricValues& GetMetricValues() const { return m_metricValues; }
79 inline bool MetricValuesHasBeenSet() const { return m_metricValuesHasBeenSet; }
80 template <typename MetricValuesT = DataQualityMetricValues>
81 void SetMetricValues(MetricValuesT&& value) {
82 m_metricValuesHasBeenSet = true;
83 m_metricValues = std::forward<MetricValuesT>(value);
84 }
85 template <typename MetricValuesT = DataQualityMetricValues>
86 MetricBasedObservation& WithMetricValues(MetricValuesT&& value) {
87 SetMetricValues(std::forward<MetricValuesT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::Vector<Aws::String>& GetNewRules() const { return m_newRules; }
98 inline bool NewRulesHasBeenSet() const { return m_newRulesHasBeenSet; }
99 template <typename NewRulesT = Aws::Vector<Aws::String>>
100 void SetNewRules(NewRulesT&& value) {
101 m_newRulesHasBeenSet = true;
102 m_newRules = std::forward<NewRulesT>(value);
103 }
104 template <typename NewRulesT = Aws::Vector<Aws::String>>
106 SetNewRules(std::forward<NewRulesT>(value));
107 return *this;
108 }
109 template <typename NewRulesT = Aws::String>
111 m_newRulesHasBeenSet = true;
112 m_newRules.emplace_back(std::forward<NewRulesT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_metricName;
118 bool m_metricNameHasBeenSet = false;
119
120 Aws::String m_statisticId;
121 bool m_statisticIdHasBeenSet = false;
122
123 DataQualityMetricValues m_metricValues;
124 bool m_metricValuesHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_newRules;
127 bool m_newRulesHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Glue
132} // namespace Aws
MetricBasedObservation & WithStatisticId(StatisticIdT &&value)
AWS_GLUE_API MetricBasedObservation & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricBasedObservation & WithMetricName(MetricNameT &&value)
AWS_GLUE_API MetricBasedObservation(Aws::Utils::Json::JsonView jsonValue)
MetricBasedObservation & AddNewRules(NewRulesT &&value)
MetricBasedObservation & WithMetricValues(MetricValuesT &&value)
const Aws::Vector< Aws::String > & GetNewRules() const
AWS_GLUE_API MetricBasedObservation()=default
MetricBasedObservation & WithNewRules(NewRulesT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const DataQualityMetricValues & GetMetricValues() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue