AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAlertRequest.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/core/utils/memory/stl/AWSMap.h>
12#include <aws/lookoutmetrics/model/AlertFilters.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LookoutMetrics
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LOOKOUTMETRICS_API CreateAlertRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAlert"; }
34
35 AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetAlertName() const{ return m_alertName; }
43 inline bool AlertNameHasBeenSet() const { return m_alertNameHasBeenSet; }
44 inline void SetAlertName(const Aws::String& value) { m_alertNameHasBeenSet = true; m_alertName = value; }
45 inline void SetAlertName(Aws::String&& value) { m_alertNameHasBeenSet = true; m_alertName = std::move(value); }
46 inline void SetAlertName(const char* value) { m_alertNameHasBeenSet = true; m_alertName.assign(value); }
47 inline CreateAlertRequest& WithAlertName(const Aws::String& value) { SetAlertName(value); return *this;}
48 inline CreateAlertRequest& WithAlertName(Aws::String&& value) { SetAlertName(std::move(value)); return *this;}
49 inline CreateAlertRequest& WithAlertName(const char* value) { SetAlertName(value); return *this;}
51
53
56 inline int GetAlertSensitivityThreshold() const{ return m_alertSensitivityThreshold; }
57 inline bool AlertSensitivityThresholdHasBeenSet() const { return m_alertSensitivityThresholdHasBeenSet; }
58 inline void SetAlertSensitivityThreshold(int value) { m_alertSensitivityThresholdHasBeenSet = true; m_alertSensitivityThreshold = value; }
61
63
66 inline const Aws::String& GetAlertDescription() const{ return m_alertDescription; }
67 inline bool AlertDescriptionHasBeenSet() const { return m_alertDescriptionHasBeenSet; }
68 inline void SetAlertDescription(const Aws::String& value) { m_alertDescriptionHasBeenSet = true; m_alertDescription = value; }
69 inline void SetAlertDescription(Aws::String&& value) { m_alertDescriptionHasBeenSet = true; m_alertDescription = std::move(value); }
70 inline void SetAlertDescription(const char* value) { m_alertDescriptionHasBeenSet = true; m_alertDescription.assign(value); }
71 inline CreateAlertRequest& WithAlertDescription(const Aws::String& value) { SetAlertDescription(value); return *this;}
72 inline CreateAlertRequest& WithAlertDescription(Aws::String&& value) { SetAlertDescription(std::move(value)); return *this;}
73 inline CreateAlertRequest& WithAlertDescription(const char* value) { SetAlertDescription(value); return *this;}
75
77
80 inline const Aws::String& GetAnomalyDetectorArn() const{ return m_anomalyDetectorArn; }
81 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
82 inline void SetAnomalyDetectorArn(const Aws::String& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = value; }
83 inline void SetAnomalyDetectorArn(Aws::String&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::move(value); }
84 inline void SetAnomalyDetectorArn(const char* value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn.assign(value); }
85 inline CreateAlertRequest& WithAnomalyDetectorArn(const Aws::String& value) { SetAnomalyDetectorArn(value); return *this;}
86 inline CreateAlertRequest& WithAnomalyDetectorArn(Aws::String&& value) { SetAnomalyDetectorArn(std::move(value)); return *this;}
87 inline CreateAlertRequest& WithAnomalyDetectorArn(const char* value) { SetAnomalyDetectorArn(value); return *this;}
89
91
94 inline const Action& GetAction() const{ return m_action; }
95 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
96 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
97 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
98 inline CreateAlertRequest& WithAction(const Action& value) { SetAction(value); return *this;}
99 inline CreateAlertRequest& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
101
103
108 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
111 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
112 inline CreateAlertRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
113 inline CreateAlertRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
114 inline CreateAlertRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
115 inline CreateAlertRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
116 inline CreateAlertRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
117 inline CreateAlertRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
118 inline CreateAlertRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
119 inline CreateAlertRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
120 inline CreateAlertRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
122
124
128 inline const AlertFilters& GetAlertFilters() const{ return m_alertFilters; }
129 inline bool AlertFiltersHasBeenSet() const { return m_alertFiltersHasBeenSet; }
130 inline void SetAlertFilters(const AlertFilters& value) { m_alertFiltersHasBeenSet = true; m_alertFilters = value; }
131 inline void SetAlertFilters(AlertFilters&& value) { m_alertFiltersHasBeenSet = true; m_alertFilters = std::move(value); }
132 inline CreateAlertRequest& WithAlertFilters(const AlertFilters& value) { SetAlertFilters(value); return *this;}
133 inline CreateAlertRequest& WithAlertFilters(AlertFilters&& value) { SetAlertFilters(std::move(value)); return *this;}
135 private:
136
137 Aws::String m_alertName;
138 bool m_alertNameHasBeenSet = false;
139
140 int m_alertSensitivityThreshold;
141 bool m_alertSensitivityThresholdHasBeenSet = false;
142
143 Aws::String m_alertDescription;
144 bool m_alertDescriptionHasBeenSet = false;
145
146 Aws::String m_anomalyDetectorArn;
147 bool m_anomalyDetectorArnHasBeenSet = false;
148
149 Action m_action;
150 bool m_actionHasBeenSet = false;
151
153 bool m_tagsHasBeenSet = false;
154
155 AlertFilters m_alertFilters;
156 bool m_alertFiltersHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace LookoutMetrics
161} // namespace Aws
CreateAlertRequest & WithAlertDescription(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetAnomalyDetectorArn(const Aws::String &value)
CreateAlertRequest & WithAlertFilters(AlertFilters &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAlertRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAlertRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAlertRequest & WithAlertDescription(const char *value)
CreateAlertRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAlertRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAlertRequest & WithAlertSensitivityThreshold(int value)
CreateAlertRequest & WithAction(Action &&value)
CreateAlertRequest & WithAlertDescription(const Aws::String &value)
CreateAlertRequest & WithAnomalyDetectorArn(const char *value)
CreateAlertRequest & AddTags(const char *key, Aws::String &&value)
void SetAlertFilters(const AlertFilters &value)
CreateAlertRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAlertRequest & AddTags(const char *key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAlertRequest & WithAction(const Action &value)
CreateAlertRequest & AddTags(Aws::String &&key, const char *value)
CreateAlertRequest & WithAlertName(const Aws::String &value)
CreateAlertRequest & WithAlertName(const char *value)
CreateAlertRequest & WithAnomalyDetectorArn(Aws::String &&value)
CreateAlertRequest & WithAlertName(Aws::String &&value)
CreateAlertRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAlertRequest & WithAnomalyDetectorArn(const Aws::String &value)
void SetAlertDescription(const Aws::String &value)
AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override
CreateAlertRequest & WithAlertFilters(const AlertFilters &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String