AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMonitoringAlertName(const Aws::String& value) { m_monitoringAlertNameHasBeenSet = true; m_monitoringAlertName = value; }
51 inline void SetMonitoringAlertName(Aws::String&& value) { m_monitoringAlertNameHasBeenSet = true; m_monitoringAlertName = std::move(value); }
52 inline void SetMonitoringAlertName(const char* value) { m_monitoringAlertNameHasBeenSet = true; m_monitoringAlertName.assign(value); }
54 inline MonitoringAlertSummary& WithMonitoringAlertName(Aws::String&& value) { SetMonitoringAlertName(std::move(value)); return *this;}
55 inline MonitoringAlertSummary& WithMonitoringAlertName(const char* value) { SetMonitoringAlertName(value); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
63 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
64 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
65 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
66 inline MonitoringAlertSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
67 inline MonitoringAlertSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
75 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
76 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
77 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
79 inline MonitoringAlertSummary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
81
83
86 inline const MonitoringAlertStatus& GetAlertStatus() const{ return m_alertStatus; }
87 inline bool AlertStatusHasBeenSet() const { return m_alertStatusHasBeenSet; }
88 inline void SetAlertStatus(const MonitoringAlertStatus& value) { m_alertStatusHasBeenSet = true; m_alertStatus = value; }
89 inline void SetAlertStatus(MonitoringAlertStatus&& value) { m_alertStatusHasBeenSet = true; m_alertStatus = std::move(value); }
90 inline MonitoringAlertSummary& WithAlertStatus(const MonitoringAlertStatus& value) { SetAlertStatus(value); return *this;}
91 inline MonitoringAlertSummary& WithAlertStatus(MonitoringAlertStatus&& value) { SetAlertStatus(std::move(value)); return *this;}
93
95
99 inline int GetDatapointsToAlert() const{ return m_datapointsToAlert; }
100 inline bool DatapointsToAlertHasBeenSet() const { return m_datapointsToAlertHasBeenSet; }
101 inline void SetDatapointsToAlert(int value) { m_datapointsToAlertHasBeenSet = true; m_datapointsToAlert = value; }
102 inline MonitoringAlertSummary& WithDatapointsToAlert(int value) { SetDatapointsToAlert(value); return *this;}
104
106
110 inline int GetEvaluationPeriod() const{ return m_evaluationPeriod; }
111 inline bool EvaluationPeriodHasBeenSet() const { return m_evaluationPeriodHasBeenSet; }
112 inline void SetEvaluationPeriod(int value) { m_evaluationPeriodHasBeenSet = true; m_evaluationPeriod = value; }
113 inline MonitoringAlertSummary& WithEvaluationPeriod(int value) { SetEvaluationPeriod(value); return *this;}
115
117
121 inline const MonitoringAlertActions& GetActions() const{ return m_actions; }
122 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
123 inline void SetActions(const MonitoringAlertActions& value) { m_actionsHasBeenSet = true; m_actions = value; }
124 inline void SetActions(MonitoringAlertActions&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
125 inline MonitoringAlertSummary& WithActions(const MonitoringAlertActions& value) { SetActions(value); return *this;}
126 inline MonitoringAlertSummary& WithActions(MonitoringAlertActions&& value) { SetActions(std::move(value)); return *this;}
128 private:
129
130 Aws::String m_monitoringAlertName;
131 bool m_monitoringAlertNameHasBeenSet = false;
132
133 Aws::Utils::DateTime m_creationTime;
134 bool m_creationTimeHasBeenSet = false;
135
136 Aws::Utils::DateTime m_lastModifiedTime;
137 bool m_lastModifiedTimeHasBeenSet = false;
138
139 MonitoringAlertStatus m_alertStatus;
140 bool m_alertStatusHasBeenSet = false;
141
142 int m_datapointsToAlert;
143 bool m_datapointsToAlertHasBeenSet = false;
144
145 int m_evaluationPeriod;
146 bool m_evaluationPeriodHasBeenSet = false;
147
148 MonitoringAlertActions m_actions;
149 bool m_actionsHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace SageMaker
154} // namespace Aws
MonitoringAlertSummary & WithMonitoringAlertName(const char *value)
void SetAlertStatus(const MonitoringAlertStatus &value)
MonitoringAlertSummary & WithMonitoringAlertName(const Aws::String &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreationTime() const
MonitoringAlertSummary & WithCreationTime(Aws::Utils::DateTime &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetAlertStatus(MonitoringAlertStatus &&value)
const MonitoringAlertStatus & GetAlertStatus() const
AWS_SAGEMAKER_API MonitoringAlertSummary(Aws::Utils::Json::JsonView jsonValue)
void SetActions(const MonitoringAlertActions &value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
MonitoringAlertSummary & WithAlertStatus(const MonitoringAlertStatus &value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
MonitoringAlertSummary & WithDatapointsToAlert(int value)
MonitoringAlertSummary & WithLastModifiedTime(const Aws::Utils::DateTime &value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
MonitoringAlertSummary & WithMonitoringAlertName(Aws::String &&value)
MonitoringAlertSummary & WithActions(const MonitoringAlertActions &value)
MonitoringAlertSummary & WithLastModifiedTime(Aws::Utils::DateTime &&value)
MonitoringAlertSummary & WithAlertStatus(MonitoringAlertStatus &&value)
void SetActions(MonitoringAlertActions &&value)
void SetMonitoringAlertName(const Aws::String &value)
MonitoringAlertSummary & WithCreationTime(const Aws::Utils::DateTime &value)
AWS_SAGEMAKER_API MonitoringAlertSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
MonitoringAlertSummary & WithActions(MonitoringAlertActions &&value)
void SetCreationTime(Aws::Utils::DateTime &&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