AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MetricBasedObservation.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/DataQualityMetricValues.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 MetricBasedObservation() = default;
41
42
44
47 inline const Aws::String& GetMetricName() const { return m_metricName; }
48 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
49 template<typename MetricNameT = Aws::String>
50 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
51 template<typename MetricNameT = Aws::String>
52 MetricBasedObservation& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
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) { m_statisticIdHasBeenSet = true; m_statisticId = std::forward<StatisticIdT>(value); }
63 template<typename StatisticIdT = Aws::String>
64 MetricBasedObservation& WithStatisticId(StatisticIdT&& value) { SetStatisticId(std::forward<StatisticIdT>(value)); return *this;}
66
68
72 inline const DataQualityMetricValues& GetMetricValues() const { return m_metricValues; }
73 inline bool MetricValuesHasBeenSet() const { return m_metricValuesHasBeenSet; }
74 template<typename MetricValuesT = DataQualityMetricValues>
75 void SetMetricValues(MetricValuesT&& value) { m_metricValuesHasBeenSet = true; m_metricValues = std::forward<MetricValuesT>(value); }
76 template<typename MetricValuesT = DataQualityMetricValues>
77 MetricBasedObservation& WithMetricValues(MetricValuesT&& value) { SetMetricValues(std::forward<MetricValuesT>(value)); return *this;}
79
81
85 inline const Aws::Vector<Aws::String>& GetNewRules() const { return m_newRules; }
86 inline bool NewRulesHasBeenSet() const { return m_newRulesHasBeenSet; }
87 template<typename NewRulesT = Aws::Vector<Aws::String>>
88 void SetNewRules(NewRulesT&& value) { m_newRulesHasBeenSet = true; m_newRules = std::forward<NewRulesT>(value); }
89 template<typename NewRulesT = Aws::Vector<Aws::String>>
90 MetricBasedObservation& WithNewRules(NewRulesT&& value) { SetNewRules(std::forward<NewRulesT>(value)); return *this;}
91 template<typename NewRulesT = Aws::String>
92 MetricBasedObservation& AddNewRules(NewRulesT&& value) { m_newRulesHasBeenSet = true; m_newRules.emplace_back(std::forward<NewRulesT>(value)); return *this; }
94 private:
95
96 Aws::String m_metricName;
97 bool m_metricNameHasBeenSet = false;
98
99 Aws::String m_statisticId;
100 bool m_statisticIdHasBeenSet = false;
101
102 DataQualityMetricValues m_metricValues;
103 bool m_metricValuesHasBeenSet = false;
104
105 Aws::Vector<Aws::String> m_newRules;
106 bool m_newRulesHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Glue
111} // 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