AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CreateAnomalyDetectorRequest.h
1
6#pragma once
7#include <aws/amp/PrometheusServiceRequest.h>
8#include <aws/amp/PrometheusService_EXPORTS.h>
9#include <aws/amp/model/AnomalyDetectorConfiguration.h>
10#include <aws/amp/model/AnomalyDetectorMissingDataAction.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace PrometheusService {
19namespace Model {
20
24 public:
25 AWS_PROMETHEUSSERVICE_API CreateAnomalyDetectorRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAnomalyDetector"; }
32
33 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
41 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
42 template <typename WorkspaceIdT = Aws::String>
43 void SetWorkspaceId(WorkspaceIdT&& value) {
44 m_workspaceIdHasBeenSet = true;
45 m_workspaceId = std::forward<WorkspaceIdT>(value);
46 }
47 template <typename WorkspaceIdT = Aws::String>
49 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAlias() const { return m_alias; }
59 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
60 template <typename AliasT = Aws::String>
61 void SetAlias(AliasT&& value) {
62 m_aliasHasBeenSet = true;
63 m_alias = std::forward<AliasT>(value);
64 }
65 template <typename AliasT = Aws::String>
67 SetAlias(std::forward<AliasT>(value));
68 return *this;
69 }
71
73
77 inline int GetEvaluationIntervalInSeconds() const { return m_evaluationIntervalInSeconds; }
78 inline bool EvaluationIntervalInSecondsHasBeenSet() const { return m_evaluationIntervalInSecondsHasBeenSet; }
79 inline void SetEvaluationIntervalInSeconds(int value) {
80 m_evaluationIntervalInSecondsHasBeenSet = true;
81 m_evaluationIntervalInSeconds = value;
82 }
85 return *this;
86 }
88
90
93 inline const AnomalyDetectorMissingDataAction& GetMissingDataAction() const { return m_missingDataAction; }
94 inline bool MissingDataActionHasBeenSet() const { return m_missingDataActionHasBeenSet; }
95 template <typename MissingDataActionT = AnomalyDetectorMissingDataAction>
96 void SetMissingDataAction(MissingDataActionT&& value) {
97 m_missingDataActionHasBeenSet = true;
98 m_missingDataAction = std::forward<MissingDataActionT>(value);
99 }
100 template <typename MissingDataActionT = AnomalyDetectorMissingDataAction>
102 SetMissingDataAction(std::forward<MissingDataActionT>(value));
103 return *this;
104 }
106
108
111 inline const AnomalyDetectorConfiguration& GetConfiguration() const { return m_configuration; }
112 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
113 template <typename ConfigurationT = AnomalyDetectorConfiguration>
114 void SetConfiguration(ConfigurationT&& value) {
115 m_configurationHasBeenSet = true;
116 m_configuration = std::forward<ConfigurationT>(value);
117 }
118 template <typename ConfigurationT = AnomalyDetectorConfiguration>
120 SetConfiguration(std::forward<ConfigurationT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::Map<Aws::String, Aws::String>& GetLabels() const { return m_labels; }
131 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
132 template <typename LabelsT = Aws::Map<Aws::String, Aws::String>>
133 void SetLabels(LabelsT&& value) {
134 m_labelsHasBeenSet = true;
135 m_labels = std::forward<LabelsT>(value);
136 }
137 template <typename LabelsT = Aws::Map<Aws::String, Aws::String>>
139 SetLabels(std::forward<LabelsT>(value));
140 return *this;
141 }
142 template <typename LabelsKeyT = Aws::String, typename LabelsValueT = Aws::String>
143 CreateAnomalyDetectorRequest& AddLabels(LabelsKeyT&& key, LabelsValueT&& value) {
144 m_labelsHasBeenSet = true;
145 m_labels.emplace(std::forward<LabelsKeyT>(key), std::forward<LabelsValueT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::String& GetClientToken() const { return m_clientToken; }
156 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
157 template <typename ClientTokenT = Aws::String>
158 void SetClientToken(ClientTokenT&& value) {
159 m_clientTokenHasBeenSet = true;
160 m_clientToken = std::forward<ClientTokenT>(value);
161 }
162 template <typename ClientTokenT = Aws::String>
164 SetClientToken(std::forward<ClientTokenT>(value));
165 return *this;
166 }
168
170
174 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
175 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
176 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 void SetTags(TagsT&& value) {
178 m_tagsHasBeenSet = true;
179 m_tags = std::forward<TagsT>(value);
180 }
181 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
183 SetTags(std::forward<TagsT>(value));
184 return *this;
185 }
186 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
187 CreateAnomalyDetectorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
188 m_tagsHasBeenSet = true;
189 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_workspaceId;
195
196 Aws::String m_alias;
197
198 int m_evaluationIntervalInSeconds{0};
199
200 AnomalyDetectorMissingDataAction m_missingDataAction;
201
202 AnomalyDetectorConfiguration m_configuration;
203
205
207
209 bool m_workspaceIdHasBeenSet = false;
210 bool m_aliasHasBeenSet = false;
211 bool m_evaluationIntervalInSecondsHasBeenSet = false;
212 bool m_missingDataActionHasBeenSet = false;
213 bool m_configurationHasBeenSet = false;
214 bool m_labelsHasBeenSet = false;
215 bool m_clientTokenHasBeenSet = true;
216 bool m_tagsHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace PrometheusService
221} // namespace Aws
CreateAnomalyDetectorRequest & WithConfiguration(ConfigurationT &&value)
CreateAnomalyDetectorRequest & WithMissingDataAction(MissingDataActionT &&value)
CreateAnomalyDetectorRequest & AddLabels(LabelsKeyT &&key, LabelsValueT &&value)
CreateAnomalyDetectorRequest & WithClientToken(ClientTokenT &&value)
CreateAnomalyDetectorRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAnomalyDetectorRequest & WithEvaluationIntervalInSeconds(int value)
const AnomalyDetectorMissingDataAction & GetMissingDataAction() const
CreateAnomalyDetectorRequest & WithWorkspaceId(WorkspaceIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetLabels() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_PROMETHEUSSERVICE_API CreateAnomalyDetectorRequest()=default
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
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