AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41
42
44
47 inline const Aws::String& GetMetricName() const{ return m_metricName; }
48 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
49 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
50 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
51 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
52 inline MetricBasedObservation& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
53 inline MetricBasedObservation& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
54 inline MetricBasedObservation& WithMetricName(const char* value) { SetMetricName(value); return *this;}
56
58
61 inline const Aws::String& GetStatisticId() const{ return m_statisticId; }
62 inline bool StatisticIdHasBeenSet() const { return m_statisticIdHasBeenSet; }
63 inline void SetStatisticId(const Aws::String& value) { m_statisticIdHasBeenSet = true; m_statisticId = value; }
64 inline void SetStatisticId(Aws::String&& value) { m_statisticIdHasBeenSet = true; m_statisticId = std::move(value); }
65 inline void SetStatisticId(const char* value) { m_statisticIdHasBeenSet = true; m_statisticId.assign(value); }
66 inline MetricBasedObservation& WithStatisticId(const Aws::String& value) { SetStatisticId(value); return *this;}
67 inline MetricBasedObservation& WithStatisticId(Aws::String&& value) { SetStatisticId(std::move(value)); return *this;}
68 inline MetricBasedObservation& WithStatisticId(const char* value) { SetStatisticId(value); return *this;}
70
72
76 inline const DataQualityMetricValues& GetMetricValues() const{ return m_metricValues; }
77 inline bool MetricValuesHasBeenSet() const { return m_metricValuesHasBeenSet; }
78 inline void SetMetricValues(const DataQualityMetricValues& value) { m_metricValuesHasBeenSet = true; m_metricValues = value; }
79 inline void SetMetricValues(DataQualityMetricValues&& value) { m_metricValuesHasBeenSet = true; m_metricValues = std::move(value); }
81 inline MetricBasedObservation& WithMetricValues(DataQualityMetricValues&& value) { SetMetricValues(std::move(value)); return *this;}
83
85
89 inline const Aws::Vector<Aws::String>& GetNewRules() const{ return m_newRules; }
90 inline bool NewRulesHasBeenSet() const { return m_newRulesHasBeenSet; }
91 inline void SetNewRules(const Aws::Vector<Aws::String>& value) { m_newRulesHasBeenSet = true; m_newRules = value; }
92 inline void SetNewRules(Aws::Vector<Aws::String>&& value) { m_newRulesHasBeenSet = true; m_newRules = std::move(value); }
93 inline MetricBasedObservation& WithNewRules(const Aws::Vector<Aws::String>& value) { SetNewRules(value); return *this;}
94 inline MetricBasedObservation& WithNewRules(Aws::Vector<Aws::String>&& value) { SetNewRules(std::move(value)); return *this;}
95 inline MetricBasedObservation& AddNewRules(const Aws::String& value) { m_newRulesHasBeenSet = true; m_newRules.push_back(value); return *this; }
96 inline MetricBasedObservation& AddNewRules(Aws::String&& value) { m_newRulesHasBeenSet = true; m_newRules.push_back(std::move(value)); return *this; }
97 inline MetricBasedObservation& AddNewRules(const char* value) { m_newRulesHasBeenSet = true; m_newRules.push_back(value); return *this; }
99 private:
100
101 Aws::String m_metricName;
102 bool m_metricNameHasBeenSet = false;
103
104 Aws::String m_statisticId;
105 bool m_statisticIdHasBeenSet = false;
106
107 DataQualityMetricValues m_metricValues;
108 bool m_metricValuesHasBeenSet = false;
109
110 Aws::Vector<Aws::String> m_newRules;
111 bool m_newRulesHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Glue
116} // namespace Aws
void SetMetricName(const Aws::String &value)
AWS_GLUE_API MetricBasedObservation & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricBasedObservation & AddNewRules(Aws::String &&value)
void SetStatisticId(const Aws::String &value)
MetricBasedObservation & WithMetricValues(const DataQualityMetricValues &value)
MetricBasedObservation & WithStatisticId(Aws::String &&value)
MetricBasedObservation & WithMetricName(const Aws::String &value)
MetricBasedObservation & WithMetricValues(DataQualityMetricValues &&value)
MetricBasedObservation & WithStatisticId(const char *value)
void SetNewRules(const Aws::Vector< Aws::String > &value)
MetricBasedObservation & WithNewRules(const Aws::Vector< Aws::String > &value)
AWS_GLUE_API MetricBasedObservation(Aws::Utils::Json::JsonView jsonValue)
MetricBasedObservation & WithMetricName(const char *value)
const Aws::Vector< Aws::String > & GetNewRules() const
MetricBasedObservation & WithMetricName(Aws::String &&value)
MetricBasedObservation & AddNewRules(const char *value)
void SetMetricValues(DataQualityMetricValues &&value)
void SetNewRules(Aws::Vector< Aws::String > &&value)
MetricBasedObservation & AddNewRules(const Aws::String &value)
void SetMetricValues(const DataQualityMetricValues &value)
MetricBasedObservation & WithNewRules(Aws::Vector< Aws::String > &&value)
MetricBasedObservation & WithStatisticId(const Aws::String &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