AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
MonitoringAlertSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/MonitoringAlertActions.h>
11#include <aws/sagemaker/model/MonitoringAlertStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
32 public:
33 AWS_SAGEMAKER_API MonitoringAlertSummary() = default;
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetMonitoringAlertName() const { return m_monitoringAlertName; }
43 inline bool MonitoringAlertNameHasBeenSet() const { return m_monitoringAlertNameHasBeenSet; }
44 template <typename MonitoringAlertNameT = Aws::String>
45 void SetMonitoringAlertName(MonitoringAlertNameT&& value) {
46 m_monitoringAlertNameHasBeenSet = true;
47 m_monitoringAlertName = std::forward<MonitoringAlertNameT>(value);
48 }
49 template <typename MonitoringAlertNameT = Aws::String>
50 MonitoringAlertSummary& WithMonitoringAlertName(MonitoringAlertNameT&& value) {
51 SetMonitoringAlertName(std::forward<MonitoringAlertNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
61 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
62 template <typename CreationTimeT = Aws::Utils::DateTime>
63 void SetCreationTime(CreationTimeT&& value) {
64 m_creationTimeHasBeenSet = true;
65 m_creationTime = std::forward<CreationTimeT>(value);
66 }
67 template <typename CreationTimeT = Aws::Utils::DateTime>
68 MonitoringAlertSummary& WithCreationTime(CreationTimeT&& value) {
69 SetCreationTime(std::forward<CreationTimeT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
79 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
80 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
81 void SetLastModifiedTime(LastModifiedTimeT&& value) {
82 m_lastModifiedTimeHasBeenSet = true;
83 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
84 }
85 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
86 MonitoringAlertSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
87 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
88 return *this;
89 }
91
93
96 inline MonitoringAlertStatus GetAlertStatus() const { return m_alertStatus; }
97 inline bool AlertStatusHasBeenSet() const { return m_alertStatusHasBeenSet; }
99 m_alertStatusHasBeenSet = true;
100 m_alertStatus = value;
101 }
103 SetAlertStatus(value);
104 return *this;
105 }
107
109
113 inline int GetDatapointsToAlert() const { return m_datapointsToAlert; }
114 inline bool DatapointsToAlertHasBeenSet() const { return m_datapointsToAlertHasBeenSet; }
115 inline void SetDatapointsToAlert(int value) {
116 m_datapointsToAlertHasBeenSet = true;
117 m_datapointsToAlert = value;
118 }
121 return *this;
122 }
124
126
130 inline int GetEvaluationPeriod() const { return m_evaluationPeriod; }
131 inline bool EvaluationPeriodHasBeenSet() const { return m_evaluationPeriodHasBeenSet; }
132 inline void SetEvaluationPeriod(int value) {
133 m_evaluationPeriodHasBeenSet = true;
134 m_evaluationPeriod = value;
135 }
137 SetEvaluationPeriod(value);
138 return *this;
139 }
141
143
147 inline const MonitoringAlertActions& GetActions() const { return m_actions; }
148 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
149 template <typename ActionsT = MonitoringAlertActions>
150 void SetActions(ActionsT&& value) {
151 m_actionsHasBeenSet = true;
152 m_actions = std::forward<ActionsT>(value);
153 }
154 template <typename ActionsT = MonitoringAlertActions>
156 SetActions(std::forward<ActionsT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_monitoringAlertName;
162
163 Aws::Utils::DateTime m_creationTime{};
164
165 Aws::Utils::DateTime m_lastModifiedTime{};
166
168
169 int m_datapointsToAlert{0};
170
171 int m_evaluationPeriod{0};
172
173 MonitoringAlertActions m_actions;
174 bool m_monitoringAlertNameHasBeenSet = false;
175 bool m_creationTimeHasBeenSet = false;
176 bool m_lastModifiedTimeHasBeenSet = false;
177 bool m_alertStatusHasBeenSet = false;
178 bool m_datapointsToAlertHasBeenSet = false;
179 bool m_evaluationPeriodHasBeenSet = false;
180 bool m_actionsHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace SageMaker
185} // namespace Aws
AWS_SAGEMAKER_API MonitoringAlertSummary()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreationTime() const
MonitoringAlertSummary & WithActions(ActionsT &&value)
AWS_SAGEMAKER_API MonitoringAlertSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastModifiedTime() const
MonitoringAlertSummary & WithDatapointsToAlert(int value)
void SetAlertStatus(MonitoringAlertStatus value)
MonitoringAlertSummary & WithCreationTime(CreationTimeT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
MonitoringAlertSummary & WithMonitoringAlertName(MonitoringAlertNameT &&value)
MonitoringAlertSummary & WithAlertStatus(MonitoringAlertStatus value)
MonitoringAlertSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_SAGEMAKER_API MonitoringAlertSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMonitoringAlertName(MonitoringAlertNameT &&value)
const MonitoringAlertActions & GetActions() const
MonitoringAlertSummary & WithEvaluationPeriod(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue