AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateMonitoringAlertRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SageMaker {
15namespace Model {
16
20 public:
21 AWS_SAGEMAKER_API UpdateMonitoringAlertRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateMonitoringAlert"; }
28
29 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetMonitoringScheduleName() const { return m_monitoringScheduleName; }
38 inline bool MonitoringScheduleNameHasBeenSet() const { return m_monitoringScheduleNameHasBeenSet; }
39 template <typename MonitoringScheduleNameT = Aws::String>
40 void SetMonitoringScheduleName(MonitoringScheduleNameT&& value) {
41 m_monitoringScheduleNameHasBeenSet = true;
42 m_monitoringScheduleName = std::forward<MonitoringScheduleNameT>(value);
43 }
44 template <typename MonitoringScheduleNameT = Aws::String>
45 UpdateMonitoringAlertRequest& WithMonitoringScheduleName(MonitoringScheduleNameT&& value) {
46 SetMonitoringScheduleName(std::forward<MonitoringScheduleNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetMonitoringAlertName() const { return m_monitoringAlertName; }
56 inline bool MonitoringAlertNameHasBeenSet() const { return m_monitoringAlertNameHasBeenSet; }
57 template <typename MonitoringAlertNameT = Aws::String>
58 void SetMonitoringAlertName(MonitoringAlertNameT&& value) {
59 m_monitoringAlertNameHasBeenSet = true;
60 m_monitoringAlertName = std::forward<MonitoringAlertNameT>(value);
61 }
62 template <typename MonitoringAlertNameT = Aws::String>
64 SetMonitoringAlertName(std::forward<MonitoringAlertNameT>(value));
65 return *this;
66 }
68
70
74 inline int GetDatapointsToAlert() const { return m_datapointsToAlert; }
75 inline bool DatapointsToAlertHasBeenSet() const { return m_datapointsToAlertHasBeenSet; }
76 inline void SetDatapointsToAlert(int value) {
77 m_datapointsToAlertHasBeenSet = true;
78 m_datapointsToAlert = value;
79 }
82 return *this;
83 }
85
87
91 inline int GetEvaluationPeriod() const { return m_evaluationPeriod; }
92 inline bool EvaluationPeriodHasBeenSet() const { return m_evaluationPeriodHasBeenSet; }
93 inline void SetEvaluationPeriod(int value) {
94 m_evaluationPeriodHasBeenSet = true;
95 m_evaluationPeriod = value;
96 }
99 return *this;
100 }
102 private:
103 Aws::String m_monitoringScheduleName;
104
105 Aws::String m_monitoringAlertName;
106
107 int m_datapointsToAlert{0};
108
109 int m_evaluationPeriod{0};
110 bool m_monitoringScheduleNameHasBeenSet = false;
111 bool m_monitoringAlertNameHasBeenSet = false;
112 bool m_datapointsToAlertHasBeenSet = false;
113 bool m_evaluationPeriodHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace SageMaker
118} // namespace Aws
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetMonitoringScheduleName(MonitoringScheduleNameT &&value)
UpdateMonitoringAlertRequest & WithEvaluationPeriod(int value)
UpdateMonitoringAlertRequest & WithMonitoringAlertName(MonitoringAlertNameT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateMonitoringAlertRequest & WithMonitoringScheduleName(MonitoringScheduleNameT &&value)
UpdateMonitoringAlertRequest & WithDatapointsToAlert(int value)
AWS_SAGEMAKER_API UpdateMonitoringAlertRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String