/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace CloudWatch { namespace Model { /** */ class DescribeAnomalyDetectorsRequest : public CloudWatchRequest { public: AWS_CLOUDWATCH_API DescribeAnomalyDetectorsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeAnomalyDetectors"; } AWS_CLOUDWATCH_API Aws::String SerializePayload() const override; protected: AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline DescribeAnomalyDetectorsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline DescribeAnomalyDetectorsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline DescribeAnomalyDetectorsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of results to return in one operation. The maximum value * that you can specify is 100.

To retrieve the remaining results, make * another call with the returned NextToken value.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to return in one operation. The maximum value * that you can specify is 100.

To retrieve the remaining results, make * another call with the returned NextToken value.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to return in one operation. The maximum value * that you can specify is 100.

To retrieve the remaining results, make * another call with the returned NextToken value.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to return in one operation. The maximum value * that you can specify is 100.

To retrieve the remaining results, make * another call with the returned NextToken value.

*/ inline DescribeAnomalyDetectorsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

Limits the results to only the anomaly detection models that are associated * with the specified namespace.

*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *

Limits the results to only the anomaly detection models that are associated * with the specified namespace.

*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *

Limits the results to only the anomaly detection models that are associated * with the specified namespace.

*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *

Limits the results to only the anomaly detection models that are associated * with the specified namespace.

*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *

Limits the results to only the anomaly detection models that are associated * with the specified namespace.

*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *

Limits the results to only the anomaly detection models that are associated * with the specified namespace.

*/ inline DescribeAnomalyDetectorsRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

Limits the results to only the anomaly detection models that are associated * with the specified namespace.

*/ inline DescribeAnomalyDetectorsRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

Limits the results to only the anomaly detection models that are associated * with the specified namespace.

*/ inline DescribeAnomalyDetectorsRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric name. If there are multiple metrics with this name in * different namespaces that have anomaly detection models, they're all * returned.

*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric name. If there are multiple metrics with this name in * different namespaces that have anomaly detection models, they're all * returned.

*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric name. If there are multiple metrics with this name in * different namespaces that have anomaly detection models, they're all * returned.

*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric name. If there are multiple metrics with this name in * different namespaces that have anomaly detection models, they're all * returned.

*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric name. If there are multiple metrics with this name in * different namespaces that have anomaly detection models, they're all * returned.

*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric name. If there are multiple metrics with this name in * different namespaces that have anomaly detection models, they're all * returned.

*/ inline DescribeAnomalyDetectorsRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric name. If there are multiple metrics with this name in * different namespaces that have anomaly detection models, they're all * returned.

*/ inline DescribeAnomalyDetectorsRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric name. If there are multiple metrics with this name in * different namespaces that have anomaly detection models, they're all * returned.

*/ inline DescribeAnomalyDetectorsRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric dimensions. If there are multiple metrics that have * these dimensions and have anomaly detection models associated, they're all * returned.

*/ inline const Aws::Vector& GetDimensions() const{ return m_dimensions; } /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric dimensions. If there are multiple metrics that have * these dimensions and have anomaly detection models associated, they're all * returned.

*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric dimensions. If there are multiple metrics that have * these dimensions and have anomaly detection models associated, they're all * returned.

*/ inline void SetDimensions(const Aws::Vector& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; } /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric dimensions. If there are multiple metrics that have * these dimensions and have anomaly detection models associated, they're all * returned.

*/ inline void SetDimensions(Aws::Vector&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); } /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric dimensions. If there are multiple metrics that have * these dimensions and have anomaly detection models associated, they're all * returned.

*/ inline DescribeAnomalyDetectorsRequest& WithDimensions(const Aws::Vector& value) { SetDimensions(value); return *this;} /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric dimensions. If there are multiple metrics that have * these dimensions and have anomaly detection models associated, they're all * returned.

*/ inline DescribeAnomalyDetectorsRequest& WithDimensions(Aws::Vector&& value) { SetDimensions(std::move(value)); return *this;} /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric dimensions. If there are multiple metrics that have * these dimensions and have anomaly detection models associated, they're all * returned.

*/ inline DescribeAnomalyDetectorsRequest& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; } /** *

Limits the results to only the anomaly detection models that are associated * with the specified metric dimensions. If there are multiple metrics that have * these dimensions and have anomaly detection models associated, they're all * returned.

*/ inline DescribeAnomalyDetectorsRequest& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; } /** *

The anomaly detector types to request when using * DescribeAnomalyDetectorsInput. If empty, defaults to * SINGLE_METRIC.

*/ inline const Aws::Vector& GetAnomalyDetectorTypes() const{ return m_anomalyDetectorTypes; } /** *

The anomaly detector types to request when using * DescribeAnomalyDetectorsInput. If empty, defaults to * SINGLE_METRIC.

*/ inline bool AnomalyDetectorTypesHasBeenSet() const { return m_anomalyDetectorTypesHasBeenSet; } /** *

The anomaly detector types to request when using * DescribeAnomalyDetectorsInput. If empty, defaults to * SINGLE_METRIC.

*/ inline void SetAnomalyDetectorTypes(const Aws::Vector& value) { m_anomalyDetectorTypesHasBeenSet = true; m_anomalyDetectorTypes = value; } /** *

The anomaly detector types to request when using * DescribeAnomalyDetectorsInput. If empty, defaults to * SINGLE_METRIC.

*/ inline void SetAnomalyDetectorTypes(Aws::Vector&& value) { m_anomalyDetectorTypesHasBeenSet = true; m_anomalyDetectorTypes = std::move(value); } /** *

The anomaly detector types to request when using * DescribeAnomalyDetectorsInput. If empty, defaults to * SINGLE_METRIC.

*/ inline DescribeAnomalyDetectorsRequest& WithAnomalyDetectorTypes(const Aws::Vector& value) { SetAnomalyDetectorTypes(value); return *this;} /** *

The anomaly detector types to request when using * DescribeAnomalyDetectorsInput. If empty, defaults to * SINGLE_METRIC.

*/ inline DescribeAnomalyDetectorsRequest& WithAnomalyDetectorTypes(Aws::Vector&& value) { SetAnomalyDetectorTypes(std::move(value)); return *this;} /** *

The anomaly detector types to request when using * DescribeAnomalyDetectorsInput. If empty, defaults to * SINGLE_METRIC.

*/ inline DescribeAnomalyDetectorsRequest& AddAnomalyDetectorTypes(const AnomalyDetectorType& value) { m_anomalyDetectorTypesHasBeenSet = true; m_anomalyDetectorTypes.push_back(value); return *this; } /** *

The anomaly detector types to request when using * DescribeAnomalyDetectorsInput. If empty, defaults to * SINGLE_METRIC.

*/ inline DescribeAnomalyDetectorsRequest& AddAnomalyDetectorTypes(AnomalyDetectorType&& value) { m_anomalyDetectorTypesHasBeenSet = true; m_anomalyDetectorTypes.push_back(std::move(value)); return *this; } private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_namespace; bool m_namespaceHasBeenSet = false; Aws::String m_metricName; bool m_metricNameHasBeenSet = false; Aws::Vector m_dimensions; bool m_dimensionsHasBeenSet = false; Aws::Vector m_anomalyDetectorTypes; bool m_anomalyDetectorTypesHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws