AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MonitoringAlertSummary.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/sagemaker/model/MonitoringAlertStatus.h>
11#include <aws/sagemaker/model/MonitoringAlertActions.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SAGEMAKER_API MonitoringAlertSummary() = default;
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetMonitoringAlertName() const { return m_monitoringAlertName; }
49 inline bool MonitoringAlertNameHasBeenSet() const { return m_monitoringAlertNameHasBeenSet; }
50 template<typename MonitoringAlertNameT = Aws::String>
51 void SetMonitoringAlertName(MonitoringAlertNameT&& value) { m_monitoringAlertNameHasBeenSet = true; m_monitoringAlertName = std::forward<MonitoringAlertNameT>(value); }
52 template<typename MonitoringAlertNameT = Aws::String>
53 MonitoringAlertSummary& WithMonitoringAlertName(MonitoringAlertNameT&& value) { SetMonitoringAlertName(std::forward<MonitoringAlertNameT>(value)); return *this;}
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) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
64 template<typename CreationTimeT = Aws::Utils::DateTime>
65 MonitoringAlertSummary& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
73 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
74 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
75 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
76 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
77 MonitoringAlertSummary& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
79
81
84 inline MonitoringAlertStatus GetAlertStatus() const { return m_alertStatus; }
85 inline bool AlertStatusHasBeenSet() const { return m_alertStatusHasBeenSet; }
86 inline void SetAlertStatus(MonitoringAlertStatus value) { m_alertStatusHasBeenSet = true; m_alertStatus = value; }
89
91
95 inline int GetDatapointsToAlert() const { return m_datapointsToAlert; }
96 inline bool DatapointsToAlertHasBeenSet() const { return m_datapointsToAlertHasBeenSet; }
97 inline void SetDatapointsToAlert(int value) { m_datapointsToAlertHasBeenSet = true; m_datapointsToAlert = value; }
98 inline MonitoringAlertSummary& WithDatapointsToAlert(int value) { SetDatapointsToAlert(value); return *this;}
100
102
106 inline int GetEvaluationPeriod() const { return m_evaluationPeriod; }
107 inline bool EvaluationPeriodHasBeenSet() const { return m_evaluationPeriodHasBeenSet; }
108 inline void SetEvaluationPeriod(int value) { m_evaluationPeriodHasBeenSet = true; m_evaluationPeriod = value; }
109 inline MonitoringAlertSummary& WithEvaluationPeriod(int value) { SetEvaluationPeriod(value); return *this;}
111
113
117 inline const MonitoringAlertActions& GetActions() const { return m_actions; }
118 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
119 template<typename ActionsT = MonitoringAlertActions>
120 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
121 template<typename ActionsT = MonitoringAlertActions>
122 MonitoringAlertSummary& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
124 private:
125
126 Aws::String m_monitoringAlertName;
127 bool m_monitoringAlertNameHasBeenSet = false;
128
129 Aws::Utils::DateTime m_creationTime{};
130 bool m_creationTimeHasBeenSet = false;
131
132 Aws::Utils::DateTime m_lastModifiedTime{};
133 bool m_lastModifiedTimeHasBeenSet = false;
134
136 bool m_alertStatusHasBeenSet = false;
137
138 int m_datapointsToAlert{0};
139 bool m_datapointsToAlertHasBeenSet = false;
140
141 int m_evaluationPeriod{0};
142 bool m_evaluationPeriodHasBeenSet = false;
143
144 MonitoringAlertActions m_actions;
145 bool m_actionsHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace SageMaker
150} // 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