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>
18namespace PrometheusService {
42 template <
typename WorkspaceIdT = Aws::String>
44 m_workspaceIdHasBeenSet =
true;
45 m_workspaceId = std::forward<WorkspaceIdT>(value);
47 template <
typename WorkspaceIdT = Aws::String>
60 template <
typename AliasT = Aws::String>
62 m_aliasHasBeenSet =
true;
63 m_alias = std::forward<AliasT>(value);
65 template <
typename AliasT = Aws::String>
67 SetAlias(std::forward<AliasT>(value));
80 m_evaluationIntervalInSecondsHasBeenSet =
true;
81 m_evaluationIntervalInSeconds = value;
95 template <
typename MissingDataActionT = AnomalyDetectorMissingDataAction>
97 m_missingDataActionHasBeenSet =
true;
98 m_missingDataAction = std::forward<MissingDataActionT>(value);
100 template <
typename MissingDataActionT = AnomalyDetectorMissingDataAction>
113 template <
typename ConfigurationT = AnomalyDetectorConfiguration>
115 m_configurationHasBeenSet =
true;
116 m_configuration = std::forward<ConfigurationT>(value);
118 template <
typename ConfigurationT = AnomalyDetectorConfiguration>
132 template <
typename LabelsT = Aws::Map<Aws::String, Aws::String>>
134 m_labelsHasBeenSet =
true;
135 m_labels = std::forward<LabelsT>(value);
137 template <
typename LabelsT = Aws::Map<Aws::String, Aws::String>>
142 template <
typename LabelsKeyT = Aws::String,
typename LabelsValueT = Aws::String>
144 m_labelsHasBeenSet =
true;
145 m_labels.emplace(std::forward<LabelsKeyT>(key), std::forward<LabelsValueT>(value));
157 template <
typename ClientTokenT = Aws::String>
159 m_clientTokenHasBeenSet =
true;
160 m_clientToken = std::forward<ClientTokenT>(value);
162 template <
typename ClientTokenT = Aws::String>
176 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
178 m_tagsHasBeenSet =
true;
179 m_tags = std::forward<TagsT>(value);
181 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
183 SetTags(std::forward<TagsT>(value));
186 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
188 m_tagsHasBeenSet =
true;
189 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
198 int m_evaluationIntervalInSeconds{0};
200 AnomalyDetectorMissingDataAction m_missingDataAction;
202 AnomalyDetectorConfiguration m_configuration;
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;
CreateAnomalyDetectorRequest & WithLabels(LabelsT &&value)
virtual const char * GetServiceRequestName() const override
const AnomalyDetectorConfiguration & GetConfiguration() const
CreateAnomalyDetectorRequest & WithConfiguration(ConfigurationT &&value)
bool TagsHasBeenSet() const
CreateAnomalyDetectorRequest & WithMissingDataAction(MissingDataActionT &&value)
void SetWorkspaceId(WorkspaceIdT &&value)
bool AliasHasBeenSet() const
CreateAnomalyDetectorRequest & AddLabels(LabelsKeyT &&key, LabelsValueT &&value)
CreateAnomalyDetectorRequest & WithClientToken(ClientTokenT &&value)
void SetTags(TagsT &&value)
CreateAnomalyDetectorRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool EvaluationIntervalInSecondsHasBeenSet() const
CreateAnomalyDetectorRequest & WithEvaluationIntervalInSeconds(int value)
const AnomalyDetectorMissingDataAction & GetMissingDataAction() const
const Aws::String & GetClientToken() const
int GetEvaluationIntervalInSeconds() const
bool LabelsHasBeenSet() const
const Aws::String & GetWorkspaceId() const
void SetConfiguration(ConfigurationT &&value)
bool ClientTokenHasBeenSet() const
void SetEvaluationIntervalInSeconds(int value)
const Aws::String & GetAlias() const
void SetMissingDataAction(MissingDataActionT &&value)
CreateAnomalyDetectorRequest & WithWorkspaceId(WorkspaceIdT &&value)
CreateAnomalyDetectorRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetLabels() const
void SetClientToken(ClientTokenT &&value)
bool WorkspaceIdHasBeenSet() const
void SetAlias(AliasT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_PROMETHEUSSERVICE_API CreateAnomalyDetectorRequest()=default
bool MissingDataActionHasBeenSet() const
CreateAnomalyDetectorRequest & WithAlias(AliasT &&value)
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
void SetLabels(LabelsT &&value)
bool ConfigurationHasBeenSet() const
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