AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AlertSummary.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lookoutmetrics/model/AlertType.h>
10#include <aws/lookoutmetrics/model/AlertStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace LookoutMetrics
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_LOOKOUTMETRICS_API AlertSummary();
39 AWS_LOOKOUTMETRICS_API AlertSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LOOKOUTMETRICS_API AlertSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAlertArn() const{ return m_alertArn; }
49 inline bool AlertArnHasBeenSet() const { return m_alertArnHasBeenSet; }
50 inline void SetAlertArn(const Aws::String& value) { m_alertArnHasBeenSet = true; m_alertArn = value; }
51 inline void SetAlertArn(Aws::String&& value) { m_alertArnHasBeenSet = true; m_alertArn = std::move(value); }
52 inline void SetAlertArn(const char* value) { m_alertArnHasBeenSet = true; m_alertArn.assign(value); }
53 inline AlertSummary& WithAlertArn(const Aws::String& value) { SetAlertArn(value); return *this;}
54 inline AlertSummary& WithAlertArn(Aws::String&& value) { SetAlertArn(std::move(value)); return *this;}
55 inline AlertSummary& WithAlertArn(const char* value) { SetAlertArn(value); return *this;}
57
59
62 inline const Aws::String& GetAnomalyDetectorArn() const{ return m_anomalyDetectorArn; }
63 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
64 inline void SetAnomalyDetectorArn(const Aws::String& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = value; }
65 inline void SetAnomalyDetectorArn(Aws::String&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::move(value); }
66 inline void SetAnomalyDetectorArn(const char* value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn.assign(value); }
67 inline AlertSummary& WithAnomalyDetectorArn(const Aws::String& value) { SetAnomalyDetectorArn(value); return *this;}
68 inline AlertSummary& WithAnomalyDetectorArn(Aws::String&& value) { SetAnomalyDetectorArn(std::move(value)); return *this;}
69 inline AlertSummary& WithAnomalyDetectorArn(const char* value) { SetAnomalyDetectorArn(value); return *this;}
71
73
76 inline const Aws::String& GetAlertName() const{ return m_alertName; }
77 inline bool AlertNameHasBeenSet() const { return m_alertNameHasBeenSet; }
78 inline void SetAlertName(const Aws::String& value) { m_alertNameHasBeenSet = true; m_alertName = value; }
79 inline void SetAlertName(Aws::String&& value) { m_alertNameHasBeenSet = true; m_alertName = std::move(value); }
80 inline void SetAlertName(const char* value) { m_alertNameHasBeenSet = true; m_alertName.assign(value); }
81 inline AlertSummary& WithAlertName(const Aws::String& value) { SetAlertName(value); return *this;}
82 inline AlertSummary& WithAlertName(Aws::String&& value) { SetAlertName(std::move(value)); return *this;}
83 inline AlertSummary& WithAlertName(const char* value) { SetAlertName(value); return *this;}
85
87
90 inline int GetAlertSensitivityThreshold() const{ return m_alertSensitivityThreshold; }
91 inline bool AlertSensitivityThresholdHasBeenSet() const { return m_alertSensitivityThresholdHasBeenSet; }
92 inline void SetAlertSensitivityThreshold(int value) { m_alertSensitivityThresholdHasBeenSet = true; m_alertSensitivityThreshold = value; }
95
97
100 inline const AlertType& GetAlertType() const{ return m_alertType; }
101 inline bool AlertTypeHasBeenSet() const { return m_alertTypeHasBeenSet; }
102 inline void SetAlertType(const AlertType& value) { m_alertTypeHasBeenSet = true; m_alertType = value; }
103 inline void SetAlertType(AlertType&& value) { m_alertTypeHasBeenSet = true; m_alertType = std::move(value); }
104 inline AlertSummary& WithAlertType(const AlertType& value) { SetAlertType(value); return *this;}
105 inline AlertSummary& WithAlertType(AlertType&& value) { SetAlertType(std::move(value)); return *this;}
107
109
112 inline const AlertStatus& GetAlertStatus() const{ return m_alertStatus; }
113 inline bool AlertStatusHasBeenSet() const { return m_alertStatusHasBeenSet; }
114 inline void SetAlertStatus(const AlertStatus& value) { m_alertStatusHasBeenSet = true; m_alertStatus = value; }
115 inline void SetAlertStatus(AlertStatus&& value) { m_alertStatusHasBeenSet = true; m_alertStatus = std::move(value); }
116 inline AlertSummary& WithAlertStatus(const AlertStatus& value) { SetAlertStatus(value); return *this;}
117 inline AlertSummary& WithAlertStatus(AlertStatus&& value) { SetAlertStatus(std::move(value)); return *this;}
119
121
124 inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }
125 inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; }
126 inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = value; }
127 inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::move(value); }
129 inline AlertSummary& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}
131
133
136 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
137 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
138 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
139 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
140 inline AlertSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
141 inline AlertSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
143
145
149 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
152 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
153 inline AlertSummary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
154 inline AlertSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
155 inline AlertSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
156 inline AlertSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
157 inline AlertSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
158 inline AlertSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
159 inline AlertSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
160 inline AlertSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
161 inline AlertSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
163 private:
164
165 Aws::String m_alertArn;
166 bool m_alertArnHasBeenSet = false;
167
168 Aws::String m_anomalyDetectorArn;
169 bool m_anomalyDetectorArnHasBeenSet = false;
170
171 Aws::String m_alertName;
172 bool m_alertNameHasBeenSet = false;
173
174 int m_alertSensitivityThreshold;
175 bool m_alertSensitivityThresholdHasBeenSet = false;
176
177 AlertType m_alertType;
178 bool m_alertTypeHasBeenSet = false;
179
180 AlertStatus m_alertStatus;
181 bool m_alertStatusHasBeenSet = false;
182
183 Aws::Utils::DateTime m_lastModificationTime;
184 bool m_lastModificationTimeHasBeenSet = false;
185
186 Aws::Utils::DateTime m_creationTime;
187 bool m_creationTimeHasBeenSet = false;
188
190 bool m_tagsHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace LookoutMetrics
195} // namespace Aws
AlertSummary & WithAlertType(const AlertType &value)
const Aws::String & GetAnomalyDetectorArn() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AlertSummary & AddTags(Aws::String &&key, const Aws::String &value)
AlertSummary & WithAlertArn(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AlertSummary & WithAlertStatus(AlertStatus &&value)
void SetLastModificationTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastModificationTime() const
AWS_LOOKOUTMETRICS_API AlertSummary(Aws::Utils::Json::JsonView jsonValue)
AlertSummary & WithAnomalyDetectorArn(Aws::String &&value)
void SetAlertArn(Aws::String &&value)
AlertSummary & WithLastModificationTime(const Aws::Utils::DateTime &value)
void SetAnomalyDetectorArn(const char *value)
AlertSummary & WithAnomalyDetectorArn(const Aws::String &value)
AlertSummary & AddTags(const char *key, Aws::String &&value)
AlertSummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AlertSummary & WithAlertArn(const Aws::String &value)
AlertSummary & WithAlertName(Aws::String &&value)
const Aws::String & GetAlertName() const
AlertSummary & WithAnomalyDetectorArn(const char *value)
void SetAnomalyDetectorArn(Aws::String &&value)
void SetLastModificationTime(Aws::Utils::DateTime &&value)
void SetAlertArn(const Aws::String &value)
AlertSummary & WithAlertStatus(const AlertStatus &value)
AlertSummary & AddTags(Aws::String &&key, Aws::String &&value)
void SetAlertName(const Aws::String &value)
AlertSummary & WithAlertType(AlertType &&value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAnomalyDetectorArn(const Aws::String &value)
const AlertStatus & GetAlertStatus() const
AlertSummary & WithCreationTime(const Aws::Utils::DateTime &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
AlertSummary & WithAlertSensitivityThreshold(int value)
AlertSummary & WithAlertName(const Aws::String &value)
AlertSummary & WithCreationTime(Aws::Utils::DateTime &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
AlertSummary & WithLastModificationTime(Aws::Utils::DateTime &&value)
AlertSummary & WithAlertArn(const char *value)
void SetAlertType(const AlertType &value)
AlertSummary & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::String & GetAlertArn() const
void SetAlertStatus(AlertStatus &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AlertSummary & AddTags(const Aws::String &key, const Aws::String &value)
AWS_LOOKOUTMETRICS_API AlertSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTMETRICS_API AlertSummary()
const Aws::Utils::DateTime & GetCreationTime() const
void SetAlertStatus(const AlertStatus &value)
AlertSummary & AddTags(const char *key, const char *value)
const AlertType & GetAlertType() const
AlertSummary & AddTags(Aws::String &&key, const char *value)
void SetAlertName(Aws::String &&value)
AlertSummary & WithAlertName(const char *value)
AlertSummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue