AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename AlertArnT = Aws::String>
51 void SetAlertArn(AlertArnT&& value) { m_alertArnHasBeenSet = true; m_alertArn = std::forward<AlertArnT>(value); }
52 template<typename AlertArnT = Aws::String>
53 AlertSummary& WithAlertArn(AlertArnT&& value) { SetAlertArn(std::forward<AlertArnT>(value)); return *this;}
55
57
60 inline const Aws::String& GetAnomalyDetectorArn() const { return m_anomalyDetectorArn; }
61 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
62 template<typename AnomalyDetectorArnT = Aws::String>
63 void SetAnomalyDetectorArn(AnomalyDetectorArnT&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::forward<AnomalyDetectorArnT>(value); }
64 template<typename AnomalyDetectorArnT = Aws::String>
65 AlertSummary& WithAnomalyDetectorArn(AnomalyDetectorArnT&& value) { SetAnomalyDetectorArn(std::forward<AnomalyDetectorArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetAlertName() const { return m_alertName; }
73 inline bool AlertNameHasBeenSet() const { return m_alertNameHasBeenSet; }
74 template<typename AlertNameT = Aws::String>
75 void SetAlertName(AlertNameT&& value) { m_alertNameHasBeenSet = true; m_alertName = std::forward<AlertNameT>(value); }
76 template<typename AlertNameT = Aws::String>
77 AlertSummary& WithAlertName(AlertNameT&& value) { SetAlertName(std::forward<AlertNameT>(value)); return *this;}
79
81
84 inline int GetAlertSensitivityThreshold() const { return m_alertSensitivityThreshold; }
85 inline bool AlertSensitivityThresholdHasBeenSet() const { return m_alertSensitivityThresholdHasBeenSet; }
86 inline void SetAlertSensitivityThreshold(int value) { m_alertSensitivityThresholdHasBeenSet = true; m_alertSensitivityThreshold = value; }
89
91
94 inline AlertType GetAlertType() const { return m_alertType; }
95 inline bool AlertTypeHasBeenSet() const { return m_alertTypeHasBeenSet; }
96 inline void SetAlertType(AlertType value) { m_alertTypeHasBeenSet = true; m_alertType = value; }
97 inline AlertSummary& WithAlertType(AlertType value) { SetAlertType(value); return *this;}
99
101
104 inline AlertStatus GetAlertStatus() const { return m_alertStatus; }
105 inline bool AlertStatusHasBeenSet() const { return m_alertStatusHasBeenSet; }
106 inline void SetAlertStatus(AlertStatus value) { m_alertStatusHasBeenSet = true; m_alertStatus = value; }
107 inline AlertSummary& WithAlertStatus(AlertStatus value) { SetAlertStatus(value); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetLastModificationTime() const { return m_lastModificationTime; }
115 inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; }
116 template<typename LastModificationTimeT = Aws::Utils::DateTime>
117 void SetLastModificationTime(LastModificationTimeT&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::forward<LastModificationTimeT>(value); }
118 template<typename LastModificationTimeT = Aws::Utils::DateTime>
119 AlertSummary& WithLastModificationTime(LastModificationTimeT&& value) { SetLastModificationTime(std::forward<LastModificationTimeT>(value)); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
127 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
128 template<typename CreationTimeT = Aws::Utils::DateTime>
129 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
130 template<typename CreationTimeT = Aws::Utils::DateTime>
131 AlertSummary& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
133
135
139 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
143 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
144 AlertSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
145 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
146 AlertSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
147 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
148 }
150 private:
151
152 Aws::String m_alertArn;
153 bool m_alertArnHasBeenSet = false;
154
155 Aws::String m_anomalyDetectorArn;
156 bool m_anomalyDetectorArnHasBeenSet = false;
157
158 Aws::String m_alertName;
159 bool m_alertNameHasBeenSet = false;
160
161 int m_alertSensitivityThreshold{0};
162 bool m_alertSensitivityThresholdHasBeenSet = false;
163
164 AlertType m_alertType{AlertType::NOT_SET};
165 bool m_alertTypeHasBeenSet = false;
166
167 AlertStatus m_alertStatus{AlertStatus::NOT_SET};
168 bool m_alertStatusHasBeenSet = false;
169
170 Aws::Utils::DateTime m_lastModificationTime{};
171 bool m_lastModificationTimeHasBeenSet = false;
172
173 Aws::Utils::DateTime m_creationTime{};
174 bool m_creationTimeHasBeenSet = false;
175
177 bool m_tagsHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace LookoutMetrics
182} // namespace Aws
const Aws::String & GetAnomalyDetectorArn() const
AlertSummary & WithLastModificationTime(LastModificationTimeT &&value)
AlertSummary & WithAlertArn(AlertArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AlertSummary & WithAlertName(AlertNameT &&value)
AlertSummary & WithCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetLastModificationTime() const
AWS_LOOKOUTMETRICS_API AlertSummary(Aws::Utils::Json::JsonView jsonValue)
AlertSummary & WithTags(TagsT &&value)
AlertSummary & WithAlertType(AlertType value)
void SetLastModificationTime(LastModificationTimeT &&value)
const Aws::String & GetAlertName() const
void SetAlertName(AlertNameT &&value)
AlertSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
AlertSummary & WithAlertSensitivityThreshold(int value)
const Aws::String & GetAlertArn() const
void SetCreationTime(CreationTimeT &&value)
void SetAnomalyDetectorArn(AnomalyDetectorArnT &&value)
AlertSummary & WithAnomalyDetectorArn(AnomalyDetectorArnT &&value)
AWS_LOOKOUTMETRICS_API AlertSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationTime() const
AlertSummary & WithAlertStatus(AlertStatus value)
AWS_LOOKOUTMETRICS_API AlertSummary()=default
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