/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CloudWatch { namespace Model { /** */ class DeleteAnomalyDetectorRequest : public CloudWatchRequest { public: AWS_CLOUDWATCH_API DeleteAnomalyDetectorRequest(); // 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 "DeleteAnomalyDetector"; } AWS_CLOUDWATCH_API Aws::String SerializePayload() const override; protected: AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

A single metric anomaly detector to be deleted.

When using * SingleMetricAnomalyDetector, you cannot include the following * parameters in the same operation:

  • Dimensions,

    *
  • MetricName

  • * Namespace

  • Stat

  • *

    the MetricMathAnomalyDetector parameters of * DeleteAnomalyDetectorInput

Instead, specify the * single metric anomaly detector attributes as part of the * SingleMetricAnomalyDetector property.

*/ inline const SingleMetricAnomalyDetector& GetSingleMetricAnomalyDetector() const{ return m_singleMetricAnomalyDetector; } /** *

A single metric anomaly detector to be deleted.

When using * SingleMetricAnomalyDetector, you cannot include the following * parameters in the same operation:

  • Dimensions,

    *
  • MetricName

  • * Namespace

  • Stat

  • *

    the MetricMathAnomalyDetector parameters of * DeleteAnomalyDetectorInput

Instead, specify the * single metric anomaly detector attributes as part of the * SingleMetricAnomalyDetector property.

*/ inline bool SingleMetricAnomalyDetectorHasBeenSet() const { return m_singleMetricAnomalyDetectorHasBeenSet; } /** *

A single metric anomaly detector to be deleted.

When using * SingleMetricAnomalyDetector, you cannot include the following * parameters in the same operation:

  • Dimensions,

    *
  • MetricName

  • * Namespace

  • Stat

  • *

    the MetricMathAnomalyDetector parameters of * DeleteAnomalyDetectorInput

Instead, specify the * single metric anomaly detector attributes as part of the * SingleMetricAnomalyDetector property.

*/ inline void SetSingleMetricAnomalyDetector(const SingleMetricAnomalyDetector& value) { m_singleMetricAnomalyDetectorHasBeenSet = true; m_singleMetricAnomalyDetector = value; } /** *

A single metric anomaly detector to be deleted.

When using * SingleMetricAnomalyDetector, you cannot include the following * parameters in the same operation:

  • Dimensions,

    *
  • MetricName

  • * Namespace

  • Stat

  • *

    the MetricMathAnomalyDetector parameters of * DeleteAnomalyDetectorInput

Instead, specify the * single metric anomaly detector attributes as part of the * SingleMetricAnomalyDetector property.

*/ inline void SetSingleMetricAnomalyDetector(SingleMetricAnomalyDetector&& value) { m_singleMetricAnomalyDetectorHasBeenSet = true; m_singleMetricAnomalyDetector = std::move(value); } /** *

A single metric anomaly detector to be deleted.

When using * SingleMetricAnomalyDetector, you cannot include the following * parameters in the same operation:

  • Dimensions,

    *
  • MetricName

  • * Namespace

  • Stat

  • *

    the MetricMathAnomalyDetector parameters of * DeleteAnomalyDetectorInput

Instead, specify the * single metric anomaly detector attributes as part of the * SingleMetricAnomalyDetector property.

*/ inline DeleteAnomalyDetectorRequest& WithSingleMetricAnomalyDetector(const SingleMetricAnomalyDetector& value) { SetSingleMetricAnomalyDetector(value); return *this;} /** *

A single metric anomaly detector to be deleted.

When using * SingleMetricAnomalyDetector, you cannot include the following * parameters in the same operation:

  • Dimensions,

    *
  • MetricName

  • * Namespace

  • Stat

  • *

    the MetricMathAnomalyDetector parameters of * DeleteAnomalyDetectorInput

Instead, specify the * single metric anomaly detector attributes as part of the * SingleMetricAnomalyDetector property.

*/ inline DeleteAnomalyDetectorRequest& WithSingleMetricAnomalyDetector(SingleMetricAnomalyDetector&& value) { SetSingleMetricAnomalyDetector(std::move(value)); return *this;} /** *

The metric math anomaly detector to be deleted.

When using * MetricMathAnomalyDetector, you cannot include following parameters * in the same operation:

  • Dimensions,

  • *

    MetricName

  • Namespace

    *
  • Stat

  • the * SingleMetricAnomalyDetector parameters of * DeleteAnomalyDetectorInput

Instead, specify the * metric math anomaly detector attributes as part of the * MetricMathAnomalyDetector property.

*/ inline const MetricMathAnomalyDetector& GetMetricMathAnomalyDetector() const{ return m_metricMathAnomalyDetector; } /** *

The metric math anomaly detector to be deleted.

When using * MetricMathAnomalyDetector, you cannot include following parameters * in the same operation:

  • Dimensions,

  • *

    MetricName

  • Namespace

    *
  • Stat

  • the * SingleMetricAnomalyDetector parameters of * DeleteAnomalyDetectorInput

Instead, specify the * metric math anomaly detector attributes as part of the * MetricMathAnomalyDetector property.

*/ inline bool MetricMathAnomalyDetectorHasBeenSet() const { return m_metricMathAnomalyDetectorHasBeenSet; } /** *

The metric math anomaly detector to be deleted.

When using * MetricMathAnomalyDetector, you cannot include following parameters * in the same operation:

  • Dimensions,

  • *

    MetricName

  • Namespace

    *
  • Stat

  • the * SingleMetricAnomalyDetector parameters of * DeleteAnomalyDetectorInput

Instead, specify the * metric math anomaly detector attributes as part of the * MetricMathAnomalyDetector property.

*/ inline void SetMetricMathAnomalyDetector(const MetricMathAnomalyDetector& value) { m_metricMathAnomalyDetectorHasBeenSet = true; m_metricMathAnomalyDetector = value; } /** *

The metric math anomaly detector to be deleted.

When using * MetricMathAnomalyDetector, you cannot include following parameters * in the same operation:

  • Dimensions,

  • *

    MetricName

  • Namespace

    *
  • Stat

  • the * SingleMetricAnomalyDetector parameters of * DeleteAnomalyDetectorInput

Instead, specify the * metric math anomaly detector attributes as part of the * MetricMathAnomalyDetector property.

*/ inline void SetMetricMathAnomalyDetector(MetricMathAnomalyDetector&& value) { m_metricMathAnomalyDetectorHasBeenSet = true; m_metricMathAnomalyDetector = std::move(value); } /** *

The metric math anomaly detector to be deleted.

When using * MetricMathAnomalyDetector, you cannot include following parameters * in the same operation:

  • Dimensions,

  • *

    MetricName

  • Namespace

    *
  • Stat

  • the * SingleMetricAnomalyDetector parameters of * DeleteAnomalyDetectorInput

Instead, specify the * metric math anomaly detector attributes as part of the * MetricMathAnomalyDetector property.

*/ inline DeleteAnomalyDetectorRequest& WithMetricMathAnomalyDetector(const MetricMathAnomalyDetector& value) { SetMetricMathAnomalyDetector(value); return *this;} /** *

The metric math anomaly detector to be deleted.

When using * MetricMathAnomalyDetector, you cannot include following parameters * in the same operation:

  • Dimensions,

  • *

    MetricName

  • Namespace

    *
  • Stat

  • the * SingleMetricAnomalyDetector parameters of * DeleteAnomalyDetectorInput

Instead, specify the * metric math anomaly detector attributes as part of the * MetricMathAnomalyDetector property.

*/ inline DeleteAnomalyDetectorRequest& WithMetricMathAnomalyDetector(MetricMathAnomalyDetector&& value) { SetMetricMathAnomalyDetector(std::move(value)); return *this;} private: SingleMetricAnomalyDetector m_singleMetricAnomalyDetector; bool m_singleMetricAnomalyDetectorHasBeenSet = false; MetricMathAnomalyDetector m_metricMathAnomalyDetector; bool m_metricMathAnomalyDetectorHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws