AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetectedMetricSetConfig.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/lookoutmetrics/model/DetectedField.h>
9#include <aws/lookoutmetrics/model/DetectedMetricSource.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LookoutMetrics
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_LOOKOUTMETRICS_API DetectedMetricSetConfig();
36 AWS_LOOKOUTMETRICS_API DetectedMetricSetConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const DetectedField& GetOffset() const{ return m_offset; }
46 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
47 inline void SetOffset(const DetectedField& value) { m_offsetHasBeenSet = true; m_offset = value; }
48 inline void SetOffset(DetectedField&& value) { m_offsetHasBeenSet = true; m_offset = std::move(value); }
49 inline DetectedMetricSetConfig& WithOffset(const DetectedField& value) { SetOffset(value); return *this;}
50 inline DetectedMetricSetConfig& WithOffset(DetectedField&& value) { SetOffset(std::move(value)); return *this;}
52
54
57 inline const DetectedField& GetMetricSetFrequency() const{ return m_metricSetFrequency; }
58 inline bool MetricSetFrequencyHasBeenSet() const { return m_metricSetFrequencyHasBeenSet; }
59 inline void SetMetricSetFrequency(const DetectedField& value) { m_metricSetFrequencyHasBeenSet = true; m_metricSetFrequency = value; }
60 inline void SetMetricSetFrequency(DetectedField&& value) { m_metricSetFrequencyHasBeenSet = true; m_metricSetFrequency = std::move(value); }
62 inline DetectedMetricSetConfig& WithMetricSetFrequency(DetectedField&& value) { SetMetricSetFrequency(std::move(value)); return *this;}
64
66
69 inline const DetectedMetricSource& GetMetricSource() const{ return m_metricSource; }
70 inline bool MetricSourceHasBeenSet() const { return m_metricSourceHasBeenSet; }
71 inline void SetMetricSource(const DetectedMetricSource& value) { m_metricSourceHasBeenSet = true; m_metricSource = value; }
72 inline void SetMetricSource(DetectedMetricSource&& value) { m_metricSourceHasBeenSet = true; m_metricSource = std::move(value); }
74 inline DetectedMetricSetConfig& WithMetricSource(DetectedMetricSource&& value) { SetMetricSource(std::move(value)); return *this;}
76 private:
77
78 DetectedField m_offset;
79 bool m_offsetHasBeenSet = false;
80
81 DetectedField m_metricSetFrequency;
82 bool m_metricSetFrequencyHasBeenSet = false;
83
84 DetectedMetricSource m_metricSource;
85 bool m_metricSourceHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace LookoutMetrics
90} // namespace Aws
DetectedMetricSetConfig & WithOffset(DetectedField &&value)
void SetMetricSource(const DetectedMetricSource &value)
AWS_LOOKOUTMETRICS_API DetectedMetricSetConfig(Aws::Utils::Json::JsonView jsonValue)
DetectedMetricSetConfig & WithMetricSource(DetectedMetricSource &&value)
DetectedMetricSetConfig & WithMetricSource(const DetectedMetricSource &value)
DetectedMetricSetConfig & WithMetricSetFrequency(const DetectedField &value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
DetectedMetricSetConfig & WithMetricSetFrequency(DetectedField &&value)
AWS_LOOKOUTMETRICS_API DetectedMetricSetConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
DetectedMetricSetConfig & WithOffset(const DetectedField &value)
Aws::Utils::Json::JsonValue JsonValue