AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
47 inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
48 inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); }
49 inline AnomalyGroupSummary& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;}
50 inline AnomalyGroupSummary& WithStartTime(Aws::String&& value) { SetStartTime(std::move(value)); return *this;}
51 inline AnomalyGroupSummary& WithStartTime(const char* value) { SetStartTime(value); return *this;}
53
55
58 inline const Aws::String& GetEndTime() const{ return m_endTime; }
59 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
60 inline void SetEndTime(const Aws::String& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
61 inline void SetEndTime(Aws::String&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
62 inline void SetEndTime(const char* value) { m_endTimeHasBeenSet = true; m_endTime.assign(value); }
63 inline AnomalyGroupSummary& WithEndTime(const Aws::String& value) { SetEndTime(value); return *this;}
64 inline AnomalyGroupSummary& WithEndTime(Aws::String&& value) { SetEndTime(std::move(value)); return *this;}
65 inline AnomalyGroupSummary& WithEndTime(const char* value) { SetEndTime(value); return *this;}
67
69
72 inline const Aws::String& GetAnomalyGroupId() const{ return m_anomalyGroupId; }
73 inline bool AnomalyGroupIdHasBeenSet() const { return m_anomalyGroupIdHasBeenSet; }
74 inline void SetAnomalyGroupId(const Aws::String& value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId = value; }
75 inline void SetAnomalyGroupId(Aws::String&& value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId = std::move(value); }
76 inline void SetAnomalyGroupId(const char* value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId.assign(value); }
77 inline AnomalyGroupSummary& WithAnomalyGroupId(const Aws::String& value) { SetAnomalyGroupId(value); return *this;}
78 inline AnomalyGroupSummary& WithAnomalyGroupId(Aws::String&& value) { SetAnomalyGroupId(std::move(value)); return *this;}
79 inline AnomalyGroupSummary& WithAnomalyGroupId(const char* value) { SetAnomalyGroupId(value); return *this;}
81
83
86 inline double GetAnomalyGroupScore() const{ return m_anomalyGroupScore; }
87 inline bool AnomalyGroupScoreHasBeenSet() const { return m_anomalyGroupScoreHasBeenSet; }
88 inline void SetAnomalyGroupScore(double value) { m_anomalyGroupScoreHasBeenSet = true; m_anomalyGroupScore = value; }
89 inline AnomalyGroupSummary& WithAnomalyGroupScore(double value) { SetAnomalyGroupScore(value); return *this;}
91
93
96 inline const Aws::String& GetPrimaryMetricName() const{ return m_primaryMetricName; }
97 inline bool PrimaryMetricNameHasBeenSet() const { return m_primaryMetricNameHasBeenSet; }
98 inline void SetPrimaryMetricName(const Aws::String& value) { m_primaryMetricNameHasBeenSet = true; m_primaryMetricName = value; }
99 inline void SetPrimaryMetricName(Aws::String&& value) { m_primaryMetricNameHasBeenSet = true; m_primaryMetricName = std::move(value); }
100 inline void SetPrimaryMetricName(const char* value) { m_primaryMetricNameHasBeenSet = true; m_primaryMetricName.assign(value); }
101 inline AnomalyGroupSummary& WithPrimaryMetricName(const Aws::String& value) { SetPrimaryMetricName(value); return *this;}
102 inline AnomalyGroupSummary& WithPrimaryMetricName(Aws::String&& value) { SetPrimaryMetricName(std::move(value)); return *this;}
103 inline AnomalyGroupSummary& WithPrimaryMetricName(const char* value) { SetPrimaryMetricName(value); return *this;}
105 private:
106
107 Aws::String m_startTime;
108 bool m_startTimeHasBeenSet = false;
109
110 Aws::String m_endTime;
111 bool m_endTimeHasBeenSet = false;
112
113 Aws::String m_anomalyGroupId;
114 bool m_anomalyGroupIdHasBeenSet = false;
115
116 double m_anomalyGroupScore;
117 bool m_anomalyGroupScoreHasBeenSet = false;
118
119 Aws::String m_primaryMetricName;
120 bool m_primaryMetricNameHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace LookoutMetrics
125} // namespace Aws
AnomalyGroupSummary & WithEndTime(const char *value)
AnomalyGroupSummary & WithPrimaryMetricName(const Aws::String &value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOOKOUTMETRICS_API AnomalyGroupSummary(Aws::Utils::Json::JsonView jsonValue)
AnomalyGroupSummary & WithPrimaryMetricName(const char *value)
AnomalyGroupSummary & WithAnomalyGroupScore(double value)
AnomalyGroupSummary & WithAnomalyGroupId(const char *value)
AnomalyGroupSummary & WithStartTime(const Aws::String &value)
AnomalyGroupSummary & WithStartTime(Aws::String &&value)
void SetPrimaryMetricName(const Aws::String &value)
AnomalyGroupSummary & WithAnomalyGroupId(Aws::String &&value)
AnomalyGroupSummary & WithEndTime(const Aws::String &value)
AWS_LOOKOUTMETRICS_API AnomalyGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AnomalyGroupSummary & WithPrimaryMetricName(Aws::String &&value)
AnomalyGroupSummary & WithStartTime(const char *value)
AnomalyGroupSummary & WithEndTime(Aws::String &&value)
AnomalyGroupSummary & WithAnomalyGroupId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue