AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAlertArn(const Aws::String& value) { m_alertArnHasBeenSet = true; m_alertArn = value; }
44 inline void SetAlertArn(Aws::String&& value) { m_alertArnHasBeenSet = true; m_alertArn = std::move(value); }
45 inline void SetAlertArn(const char* value) { m_alertArnHasBeenSet = true; m_alertArn.assign(value); }
46 inline UpdateAlertRequest& WithAlertArn(const Aws::String& value) { SetAlertArn(value); return *this;}
47 inline UpdateAlertRequest& WithAlertArn(Aws::String&& value) { SetAlertArn(std::move(value)); return *this;}
48 inline UpdateAlertRequest& WithAlertArn(const char* value) { SetAlertArn(value); return *this;}
50
52
55 inline const Aws::String& GetAlertDescription() const{ return m_alertDescription; }
56 inline bool AlertDescriptionHasBeenSet() const { return m_alertDescriptionHasBeenSet; }
57 inline void SetAlertDescription(const Aws::String& value) { m_alertDescriptionHasBeenSet = true; m_alertDescription = value; }
58 inline void SetAlertDescription(Aws::String&& value) { m_alertDescriptionHasBeenSet = true; m_alertDescription = std::move(value); }
59 inline void SetAlertDescription(const char* value) { m_alertDescriptionHasBeenSet = true; m_alertDescription.assign(value); }
60 inline UpdateAlertRequest& WithAlertDescription(const Aws::String& value) { SetAlertDescription(value); return *this;}
61 inline UpdateAlertRequest& WithAlertDescription(Aws::String&& value) { SetAlertDescription(std::move(value)); return *this;}
62 inline UpdateAlertRequest& WithAlertDescription(const char* value) { SetAlertDescription(value); return *this;}
64
66
69 inline int GetAlertSensitivityThreshold() const{ return m_alertSensitivityThreshold; }
70 inline bool AlertSensitivityThresholdHasBeenSet() const { return m_alertSensitivityThresholdHasBeenSet; }
71 inline void SetAlertSensitivityThreshold(int value) { m_alertSensitivityThresholdHasBeenSet = true; m_alertSensitivityThreshold = value; }
74
76
79 inline const Action& GetAction() const{ return m_action; }
80 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
81 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
82 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
83 inline UpdateAlertRequest& WithAction(const Action& value) { SetAction(value); return *this;}
84 inline UpdateAlertRequest& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
86
88
92 inline const AlertFilters& GetAlertFilters() const{ return m_alertFilters; }
93 inline bool AlertFiltersHasBeenSet() const { return m_alertFiltersHasBeenSet; }
94 inline void SetAlertFilters(const AlertFilters& value) { m_alertFiltersHasBeenSet = true; m_alertFilters = value; }
95 inline void SetAlertFilters(AlertFilters&& value) { m_alertFiltersHasBeenSet = true; m_alertFilters = std::move(value); }
96 inline UpdateAlertRequest& WithAlertFilters(const AlertFilters& value) { SetAlertFilters(value); return *this;}
97 inline UpdateAlertRequest& WithAlertFilters(AlertFilters&& value) { SetAlertFilters(std::move(value)); return *this;}
99 private:
100
101 Aws::String m_alertArn;
102 bool m_alertArnHasBeenSet = false;
103
104 Aws::String m_alertDescription;
105 bool m_alertDescriptionHasBeenSet = false;
106
107 int m_alertSensitivityThreshold;
108 bool m_alertSensitivityThresholdHasBeenSet = false;
109
110 Action m_action;
111 bool m_actionHasBeenSet = false;
112
113 AlertFilters m_alertFilters;
114 bool m_alertFiltersHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace LookoutMetrics
119} // namespace Aws
UpdateAlertRequest & WithAlertDescription(const char *value)
virtual const char * GetServiceRequestName() const override
void SetAlertDescription(const Aws::String &value)
void SetAlertFilters(const AlertFilters &value)
UpdateAlertRequest & WithAlertFilters(AlertFilters &&value)
UpdateAlertRequest & WithAlertSensitivityThreshold(int value)
UpdateAlertRequest & WithAlertDescription(Aws::String &&value)
UpdateAlertRequest & WithAlertDescription(const Aws::String &value)
UpdateAlertRequest & WithAlertArn(const Aws::String &value)
UpdateAlertRequest & WithAlertArn(Aws::String &&value)
AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override
UpdateAlertRequest & WithAction(const Action &value)
UpdateAlertRequest & WithAlertFilters(const AlertFilters &value)
UpdateAlertRequest & WithAlertArn(const char *value)
UpdateAlertRequest & WithAction(Action &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String