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 AnomalyDetectorIdT = Aws::String>
62 m_anomalyDetectorIdHasBeenSet =
true;
63 m_anomalyDetectorId = std::forward<AnomalyDetectorIdT>(value);
65 template <
typename AnomalyDetectorIdT = Aws::String>
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>
173 int m_evaluationIntervalInSeconds{0};
175 AnomalyDetectorMissingDataAction m_missingDataAction;
177 AnomalyDetectorConfiguration m_configuration;
182 bool m_workspaceIdHasBeenSet =
false;
183 bool m_anomalyDetectorIdHasBeenSet =
false;
184 bool m_evaluationIntervalInSecondsHasBeenSet =
false;
185 bool m_missingDataActionHasBeenSet =
false;
186 bool m_configurationHasBeenSet =
false;
187 bool m_labelsHasBeenSet =
false;
188 bool m_clientTokenHasBeenSet =
true;
bool EvaluationIntervalInSecondsHasBeenSet() const
const Aws::String & GetWorkspaceId() const
const AnomalyDetectorMissingDataAction & GetMissingDataAction() const
const Aws::String & GetAnomalyDetectorId() const
PutAnomalyDetectorRequest & WithLabels(LabelsT &&value)
bool AnomalyDetectorIdHasBeenSet() const
PutAnomalyDetectorRequest & AddLabels(LabelsKeyT &&key, LabelsValueT &&value)
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
AWS_PROMETHEUSSERVICE_API PutAnomalyDetectorRequest()=default
void SetClientToken(ClientTokenT &&value)
int GetEvaluationIntervalInSeconds() const
PutAnomalyDetectorRequest & WithMissingDataAction(MissingDataActionT &&value)
PutAnomalyDetectorRequest & WithConfiguration(ConfigurationT &&value)
void SetConfiguration(ConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetLabels() const
const Aws::String & GetClientToken() const
const AnomalyDetectorConfiguration & GetConfiguration() const
void SetLabels(LabelsT &&value)
void SetEvaluationIntervalInSeconds(int value)
PutAnomalyDetectorRequest & WithEvaluationIntervalInSeconds(int value)
PutAnomalyDetectorRequest & WithClientToken(ClientTokenT &&value)
bool WorkspaceIdHasBeenSet() const
PutAnomalyDetectorRequest & WithWorkspaceId(WorkspaceIdT &&value)
bool LabelsHasBeenSet() const
void SetAnomalyDetectorId(AnomalyDetectorIdT &&value)
bool MissingDataActionHasBeenSet() const
virtual const char * GetServiceRequestName() const override
bool ConfigurationHasBeenSet() const
void SetMissingDataAction(MissingDataActionT &&value)
PutAnomalyDetectorRequest & WithAnomalyDetectorId(AnomalyDetectorIdT &&value)
bool ClientTokenHasBeenSet() const
void SetWorkspaceId(WorkspaceIdT &&value)
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