AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AnomalyGroupSummary.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LookoutMetrics
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_LOOKOUTMETRICS_API AnomalyGroupSummary() = default;
35 AWS_LOOKOUTMETRICS_API AnomalyGroupSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LOOKOUTMETRICS_API AnomalyGroupSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetStartTime() const { return m_startTime; }
45 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
46 template<typename StartTimeT = Aws::String>
47 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
48 template<typename StartTimeT = Aws::String>
49 AnomalyGroupSummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
51
53
56 inline const Aws::String& GetEndTime() const { return m_endTime; }
57 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
58 template<typename EndTimeT = Aws::String>
59 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
60 template<typename EndTimeT = Aws::String>
61 AnomalyGroupSummary& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
63
65
68 inline const Aws::String& GetAnomalyGroupId() const { return m_anomalyGroupId; }
69 inline bool AnomalyGroupIdHasBeenSet() const { return m_anomalyGroupIdHasBeenSet; }
70 template<typename AnomalyGroupIdT = Aws::String>
71 void SetAnomalyGroupId(AnomalyGroupIdT&& value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId = std::forward<AnomalyGroupIdT>(value); }
72 template<typename AnomalyGroupIdT = Aws::String>
73 AnomalyGroupSummary& WithAnomalyGroupId(AnomalyGroupIdT&& value) { SetAnomalyGroupId(std::forward<AnomalyGroupIdT>(value)); return *this;}
75
77
80 inline double GetAnomalyGroupScore() const { return m_anomalyGroupScore; }
81 inline bool AnomalyGroupScoreHasBeenSet() const { return m_anomalyGroupScoreHasBeenSet; }
82 inline void SetAnomalyGroupScore(double value) { m_anomalyGroupScoreHasBeenSet = true; m_anomalyGroupScore = value; }
83 inline AnomalyGroupSummary& WithAnomalyGroupScore(double value) { SetAnomalyGroupScore(value); return *this;}
85
87
90 inline const Aws::String& GetPrimaryMetricName() const { return m_primaryMetricName; }
91 inline bool PrimaryMetricNameHasBeenSet() const { return m_primaryMetricNameHasBeenSet; }
92 template<typename PrimaryMetricNameT = Aws::String>
93 void SetPrimaryMetricName(PrimaryMetricNameT&& value) { m_primaryMetricNameHasBeenSet = true; m_primaryMetricName = std::forward<PrimaryMetricNameT>(value); }
94 template<typename PrimaryMetricNameT = Aws::String>
95 AnomalyGroupSummary& WithPrimaryMetricName(PrimaryMetricNameT&& value) { SetPrimaryMetricName(std::forward<PrimaryMetricNameT>(value)); return *this;}
97 private:
98
99 Aws::String m_startTime;
100 bool m_startTimeHasBeenSet = false;
101
102 Aws::String m_endTime;
103 bool m_endTimeHasBeenSet = false;
104
105 Aws::String m_anomalyGroupId;
106 bool m_anomalyGroupIdHasBeenSet = false;
107
108 double m_anomalyGroupScore{0.0};
109 bool m_anomalyGroupScoreHasBeenSet = false;
110
111 Aws::String m_primaryMetricName;
112 bool m_primaryMetricNameHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace LookoutMetrics
117} // namespace Aws
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOOKOUTMETRICS_API AnomalyGroupSummary(Aws::Utils::Json::JsonView jsonValue)
AnomalyGroupSummary & WithEndTime(EndTimeT &&value)
AnomalyGroupSummary & WithAnomalyGroupScore(double value)
AnomalyGroupSummary & WithStartTime(StartTimeT &&value)
AnomalyGroupSummary & WithAnomalyGroupId(AnomalyGroupIdT &&value)
AWS_LOOKOUTMETRICS_API AnomalyGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTMETRICS_API AnomalyGroupSummary()=default
void SetPrimaryMetricName(PrimaryMetricNameT &&value)
AnomalyGroupSummary & WithPrimaryMetricName(PrimaryMetricNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue