AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateAlertRequest.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/lookoutmetrics/LookoutMetricsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lookoutmetrics/model/Action.h>
11#include <aws/lookoutmetrics/model/AlertFilters.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LookoutMetrics
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LOOKOUTMETRICS_API UpdateAlertRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateAlert"; }
33
34 AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetAlertArn() const { return m_alertArn; }
42 inline bool AlertArnHasBeenSet() const { return m_alertArnHasBeenSet; }
43 template<typename AlertArnT = Aws::String>
44 void SetAlertArn(AlertArnT&& value) { m_alertArnHasBeenSet = true; m_alertArn = std::forward<AlertArnT>(value); }
45 template<typename AlertArnT = Aws::String>
46 UpdateAlertRequest& WithAlertArn(AlertArnT&& value) { SetAlertArn(std::forward<AlertArnT>(value)); return *this;}
48
50
53 inline const Aws::String& GetAlertDescription() const { return m_alertDescription; }
54 inline bool AlertDescriptionHasBeenSet() const { return m_alertDescriptionHasBeenSet; }
55 template<typename AlertDescriptionT = Aws::String>
56 void SetAlertDescription(AlertDescriptionT&& value) { m_alertDescriptionHasBeenSet = true; m_alertDescription = std::forward<AlertDescriptionT>(value); }
57 template<typename AlertDescriptionT = Aws::String>
58 UpdateAlertRequest& WithAlertDescription(AlertDescriptionT&& value) { SetAlertDescription(std::forward<AlertDescriptionT>(value)); return *this;}
60
62
65 inline int GetAlertSensitivityThreshold() const { return m_alertSensitivityThreshold; }
66 inline bool AlertSensitivityThresholdHasBeenSet() const { return m_alertSensitivityThresholdHasBeenSet; }
67 inline void SetAlertSensitivityThreshold(int value) { m_alertSensitivityThresholdHasBeenSet = true; m_alertSensitivityThreshold = value; }
70
72
75 inline const Action& GetAction() const { return m_action; }
76 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
77 template<typename ActionT = Action>
78 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
79 template<typename ActionT = Action>
80 UpdateAlertRequest& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
82
84
88 inline const AlertFilters& GetAlertFilters() const { return m_alertFilters; }
89 inline bool AlertFiltersHasBeenSet() const { return m_alertFiltersHasBeenSet; }
90 template<typename AlertFiltersT = AlertFilters>
91 void SetAlertFilters(AlertFiltersT&& value) { m_alertFiltersHasBeenSet = true; m_alertFilters = std::forward<AlertFiltersT>(value); }
92 template<typename AlertFiltersT = AlertFilters>
93 UpdateAlertRequest& WithAlertFilters(AlertFiltersT&& value) { SetAlertFilters(std::forward<AlertFiltersT>(value)); return *this;}
95 private:
96
97 Aws::String m_alertArn;
98 bool m_alertArnHasBeenSet = false;
99
100 Aws::String m_alertDescription;
101 bool m_alertDescriptionHasBeenSet = false;
102
103 int m_alertSensitivityThreshold{0};
104 bool m_alertSensitivityThresholdHasBeenSet = false;
105
106 Action m_action;
107 bool m_actionHasBeenSet = false;
108
109 AlertFilters m_alertFilters;
110 bool m_alertFiltersHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace LookoutMetrics
115} // namespace Aws
UpdateAlertRequest & WithAction(ActionT &&value)
AWS_LOOKOUTMETRICS_API UpdateAlertRequest()=default
UpdateAlertRequest & WithAlertFilters(AlertFiltersT &&value)
UpdateAlertRequest & WithAlertDescription(AlertDescriptionT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAlertRequest & WithAlertSensitivityThreshold(int value)
UpdateAlertRequest & WithAlertArn(AlertArnT &&value)
AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override
void SetAlertDescription(AlertDescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String