AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AnomalyGroup.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lookoutmetrics/model/MetricLevelImpact.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 LookoutMetrics
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_LOOKOUTMETRICS_API AnomalyGroup();
37 AWS_LOOKOUTMETRICS_API AnomalyGroup(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOOKOUTMETRICS_API AnomalyGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetStartTime() const{ return m_startTime; }
47 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
48 inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
49 inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
50 inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); }
51 inline AnomalyGroup& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;}
52 inline AnomalyGroup& WithStartTime(Aws::String&& value) { SetStartTime(std::move(value)); return *this;}
53 inline AnomalyGroup& WithStartTime(const char* value) { SetStartTime(value); return *this;}
55
57
60 inline const Aws::String& GetEndTime() const{ return m_endTime; }
61 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
62 inline void SetEndTime(const Aws::String& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
63 inline void SetEndTime(Aws::String&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
64 inline void SetEndTime(const char* value) { m_endTimeHasBeenSet = true; m_endTime.assign(value); }
65 inline AnomalyGroup& WithEndTime(const Aws::String& value) { SetEndTime(value); return *this;}
66 inline AnomalyGroup& WithEndTime(Aws::String&& value) { SetEndTime(std::move(value)); return *this;}
67 inline AnomalyGroup& WithEndTime(const char* value) { SetEndTime(value); return *this;}
69
71
74 inline const Aws::String& GetAnomalyGroupId() const{ return m_anomalyGroupId; }
75 inline bool AnomalyGroupIdHasBeenSet() const { return m_anomalyGroupIdHasBeenSet; }
76 inline void SetAnomalyGroupId(const Aws::String& value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId = value; }
77 inline void SetAnomalyGroupId(Aws::String&& value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId = std::move(value); }
78 inline void SetAnomalyGroupId(const char* value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId.assign(value); }
79 inline AnomalyGroup& WithAnomalyGroupId(const Aws::String& value) { SetAnomalyGroupId(value); return *this;}
80 inline AnomalyGroup& WithAnomalyGroupId(Aws::String&& value) { SetAnomalyGroupId(std::move(value)); return *this;}
81 inline AnomalyGroup& WithAnomalyGroupId(const char* value) { SetAnomalyGroupId(value); return *this;}
83
85
88 inline double GetAnomalyGroupScore() const{ return m_anomalyGroupScore; }
89 inline bool AnomalyGroupScoreHasBeenSet() const { return m_anomalyGroupScoreHasBeenSet; }
90 inline void SetAnomalyGroupScore(double value) { m_anomalyGroupScoreHasBeenSet = true; m_anomalyGroupScore = value; }
91 inline AnomalyGroup& WithAnomalyGroupScore(double value) { SetAnomalyGroupScore(value); return *this;}
93
95
98 inline const Aws::String& GetPrimaryMetricName() const{ return m_primaryMetricName; }
99 inline bool PrimaryMetricNameHasBeenSet() const { return m_primaryMetricNameHasBeenSet; }
100 inline void SetPrimaryMetricName(const Aws::String& value) { m_primaryMetricNameHasBeenSet = true; m_primaryMetricName = value; }
101 inline void SetPrimaryMetricName(Aws::String&& value) { m_primaryMetricNameHasBeenSet = true; m_primaryMetricName = std::move(value); }
102 inline void SetPrimaryMetricName(const char* value) { m_primaryMetricNameHasBeenSet = true; m_primaryMetricName.assign(value); }
103 inline AnomalyGroup& WithPrimaryMetricName(const Aws::String& value) { SetPrimaryMetricName(value); return *this;}
104 inline AnomalyGroup& WithPrimaryMetricName(Aws::String&& value) { SetPrimaryMetricName(std::move(value)); return *this;}
105 inline AnomalyGroup& WithPrimaryMetricName(const char* value) { SetPrimaryMetricName(value); return *this;}
107
109
112 inline const Aws::Vector<MetricLevelImpact>& GetMetricLevelImpactList() const{ return m_metricLevelImpactList; }
113 inline bool MetricLevelImpactListHasBeenSet() const { return m_metricLevelImpactListHasBeenSet; }
114 inline void SetMetricLevelImpactList(const Aws::Vector<MetricLevelImpact>& value) { m_metricLevelImpactListHasBeenSet = true; m_metricLevelImpactList = value; }
115 inline void SetMetricLevelImpactList(Aws::Vector<MetricLevelImpact>&& value) { m_metricLevelImpactListHasBeenSet = true; m_metricLevelImpactList = std::move(value); }
118 inline AnomalyGroup& AddMetricLevelImpactList(const MetricLevelImpact& value) { m_metricLevelImpactListHasBeenSet = true; m_metricLevelImpactList.push_back(value); return *this; }
119 inline AnomalyGroup& AddMetricLevelImpactList(MetricLevelImpact&& value) { m_metricLevelImpactListHasBeenSet = true; m_metricLevelImpactList.push_back(std::move(value)); return *this; }
121 private:
122
123 Aws::String m_startTime;
124 bool m_startTimeHasBeenSet = false;
125
126 Aws::String m_endTime;
127 bool m_endTimeHasBeenSet = false;
128
129 Aws::String m_anomalyGroupId;
130 bool m_anomalyGroupIdHasBeenSet = false;
131
132 double m_anomalyGroupScore;
133 bool m_anomalyGroupScoreHasBeenSet = false;
134
135 Aws::String m_primaryMetricName;
136 bool m_primaryMetricNameHasBeenSet = false;
137
138 Aws::Vector<MetricLevelImpact> m_metricLevelImpactList;
139 bool m_metricLevelImpactListHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace LookoutMetrics
144} // namespace Aws
AnomalyGroup & WithAnomalyGroupId(const char *value)
AnomalyGroup & WithMetricLevelImpactList(Aws::Vector< MetricLevelImpact > &&value)
AnomalyGroup & WithEndTime(const char *value)
AnomalyGroup & WithEndTime(Aws::String &&value)
const Aws::String & GetAnomalyGroupId() const
void SetAnomalyGroupId(Aws::String &&value)
void SetMetricLevelImpactList(Aws::Vector< MetricLevelImpact > &&value)
AnomalyGroup & WithStartTime(Aws::String &&value)
AnomalyGroup & AddMetricLevelImpactList(MetricLevelImpact &&value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
AnomalyGroup & WithAnomalyGroupId(const Aws::String &value)
AnomalyGroup & WithMetricLevelImpactList(const Aws::Vector< MetricLevelImpact > &value)
void SetStartTime(Aws::String &&value)
AnomalyGroup & WithStartTime(const Aws::String &value)
AnomalyGroup & WithAnomalyGroupId(Aws::String &&value)
const Aws::String & GetEndTime() const
void SetPrimaryMetricName(Aws::String &&value)
AnomalyGroup & WithAnomalyGroupScore(double value)
AnomalyGroup & WithPrimaryMetricName(const char *value)
void SetEndTime(Aws::String &&value)
void SetMetricLevelImpactList(const Aws::Vector< MetricLevelImpact > &value)
void SetPrimaryMetricName(const char *value)
void SetStartTime(const Aws::String &value)
AnomalyGroup & WithPrimaryMetricName(Aws::String &&value)
void SetAnomalyGroupId(const char *value)
void SetAnomalyGroupId(const Aws::String &value)
AnomalyGroup & WithStartTime(const char *value)
AWS_LOOKOUTMETRICS_API AnomalyGroup(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< MetricLevelImpact > & GetMetricLevelImpactList() const
void SetEndTime(const Aws::String &value)
AnomalyGroup & AddMetricLevelImpactList(const MetricLevelImpact &value)
const Aws::String & GetPrimaryMetricName() const
const Aws::String & GetStartTime() const
AWS_LOOKOUTMETRICS_API AnomalyGroup()
AWS_LOOKOUTMETRICS_API AnomalyGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
AnomalyGroup & WithPrimaryMetricName(const Aws::String &value)
void SetPrimaryMetricName(const Aws::String &value)
AnomalyGroup & WithEndTime(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue