/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CloudWatchLogs { namespace Model { /** */ class UpdateAnomalyRequest : public CloudWatchLogsRequest { public: AWS_CLOUDWATCHLOGS_API UpdateAnomalyRequest(); // 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 "UpdateAnomaly"; } AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

If you are suppressing or unsuppressing an anomaly, specify its unique ID * here. You can find anomaly IDs by using the ListAnomalies * operation.

*/ inline const Aws::String& GetAnomalyId() const{ return m_anomalyId; } /** *

If you are suppressing or unsuppressing an anomaly, specify its unique ID * here. You can find anomaly IDs by using the ListAnomalies * operation.

*/ inline bool AnomalyIdHasBeenSet() const { return m_anomalyIdHasBeenSet; } /** *

If you are suppressing or unsuppressing an anomaly, specify its unique ID * here. You can find anomaly IDs by using the ListAnomalies * operation.

*/ inline void SetAnomalyId(const Aws::String& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = value; } /** *

If you are suppressing or unsuppressing an anomaly, specify its unique ID * here. You can find anomaly IDs by using the ListAnomalies * operation.

*/ inline void SetAnomalyId(Aws::String&& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = std::move(value); } /** *

If you are suppressing or unsuppressing an anomaly, specify its unique ID * here. You can find anomaly IDs by using the ListAnomalies * operation.

*/ inline void SetAnomalyId(const char* value) { m_anomalyIdHasBeenSet = true; m_anomalyId.assign(value); } /** *

If you are suppressing or unsuppressing an anomaly, specify its unique ID * here. You can find anomaly IDs by using the ListAnomalies * operation.

*/ inline UpdateAnomalyRequest& WithAnomalyId(const Aws::String& value) { SetAnomalyId(value); return *this;} /** *

If you are suppressing or unsuppressing an anomaly, specify its unique ID * here. You can find anomaly IDs by using the ListAnomalies * operation.

*/ inline UpdateAnomalyRequest& WithAnomalyId(Aws::String&& value) { SetAnomalyId(std::move(value)); return *this;} /** *

If you are suppressing or unsuppressing an anomaly, specify its unique ID * here. You can find anomaly IDs by using the ListAnomalies * operation.

*/ inline UpdateAnomalyRequest& WithAnomalyId(const char* value) { SetAnomalyId(value); return *this;} /** *

If you are suppressing or unsuppressing an pattern, specify its unique ID * here. You can find pattern IDs by using the ListAnomalies * operation.

*/ inline const Aws::String& GetPatternId() const{ return m_patternId; } /** *

If you are suppressing or unsuppressing an pattern, specify its unique ID * here. You can find pattern IDs by using the ListAnomalies * operation.

*/ inline bool PatternIdHasBeenSet() const { return m_patternIdHasBeenSet; } /** *

If you are suppressing or unsuppressing an pattern, specify its unique ID * here. You can find pattern IDs by using the ListAnomalies * operation.

*/ inline void SetPatternId(const Aws::String& value) { m_patternIdHasBeenSet = true; m_patternId = value; } /** *

If you are suppressing or unsuppressing an pattern, specify its unique ID * here. You can find pattern IDs by using the ListAnomalies * operation.

*/ inline void SetPatternId(Aws::String&& value) { m_patternIdHasBeenSet = true; m_patternId = std::move(value); } /** *

If you are suppressing or unsuppressing an pattern, specify its unique ID * here. You can find pattern IDs by using the ListAnomalies * operation.

*/ inline void SetPatternId(const char* value) { m_patternIdHasBeenSet = true; m_patternId.assign(value); } /** *

If you are suppressing or unsuppressing an pattern, specify its unique ID * here. You can find pattern IDs by using the ListAnomalies * operation.

*/ inline UpdateAnomalyRequest& WithPatternId(const Aws::String& value) { SetPatternId(value); return *this;} /** *

If you are suppressing or unsuppressing an pattern, specify its unique ID * here. You can find pattern IDs by using the ListAnomalies * operation.

*/ inline UpdateAnomalyRequest& WithPatternId(Aws::String&& value) { SetPatternId(std::move(value)); return *this;} /** *

If you are suppressing or unsuppressing an pattern, specify its unique ID * here. You can find pattern IDs by using the ListAnomalies * operation.

*/ inline UpdateAnomalyRequest& WithPatternId(const char* value) { SetPatternId(value); return *this;} /** *

The ARN of the anomaly detector that this operation is to act on.

*/ inline const Aws::String& GetAnomalyDetectorArn() const{ return m_anomalyDetectorArn; } /** *

The ARN of the anomaly detector that this operation is to act on.

*/ inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; } /** *

The ARN of the anomaly detector that this operation is to act on.

*/ inline void SetAnomalyDetectorArn(const Aws::String& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = value; } /** *

The ARN of the anomaly detector that this operation is to act on.

*/ inline void SetAnomalyDetectorArn(Aws::String&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::move(value); } /** *

The ARN of the anomaly detector that this operation is to act on.

*/ inline void SetAnomalyDetectorArn(const char* value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn.assign(value); } /** *

The ARN of the anomaly detector that this operation is to act on.

*/ inline UpdateAnomalyRequest& WithAnomalyDetectorArn(const Aws::String& value) { SetAnomalyDetectorArn(value); return *this;} /** *

The ARN of the anomaly detector that this operation is to act on.

*/ inline UpdateAnomalyRequest& WithAnomalyDetectorArn(Aws::String&& value) { SetAnomalyDetectorArn(std::move(value)); return *this;} /** *

The ARN of the anomaly detector that this operation is to act on.

*/ inline UpdateAnomalyRequest& WithAnomalyDetectorArn(const char* value) { SetAnomalyDetectorArn(value); return *this;} /** *

Use this to specify whether the suppression to be temporary or infinite. If * you specify LIMITED, you must also specify a * suppressionPeriod. If you specify INFINITE, any value * for suppressionPeriod is ignored.

*/ inline const SuppressionType& GetSuppressionType() const{ return m_suppressionType; } /** *

Use this to specify whether the suppression to be temporary or infinite. If * you specify LIMITED, you must also specify a * suppressionPeriod. If you specify INFINITE, any value * for suppressionPeriod is ignored.

*/ inline bool SuppressionTypeHasBeenSet() const { return m_suppressionTypeHasBeenSet; } /** *

Use this to specify whether the suppression to be temporary or infinite. If * you specify LIMITED, you must also specify a * suppressionPeriod. If you specify INFINITE, any value * for suppressionPeriod is ignored.

*/ inline void SetSuppressionType(const SuppressionType& value) { m_suppressionTypeHasBeenSet = true; m_suppressionType = value; } /** *

Use this to specify whether the suppression to be temporary or infinite. If * you specify LIMITED, you must also specify a * suppressionPeriod. If you specify INFINITE, any value * for suppressionPeriod is ignored.

*/ inline void SetSuppressionType(SuppressionType&& value) { m_suppressionTypeHasBeenSet = true; m_suppressionType = std::move(value); } /** *

Use this to specify whether the suppression to be temporary or infinite. If * you specify LIMITED, you must also specify a * suppressionPeriod. If you specify INFINITE, any value * for suppressionPeriod is ignored.

*/ inline UpdateAnomalyRequest& WithSuppressionType(const SuppressionType& value) { SetSuppressionType(value); return *this;} /** *

Use this to specify whether the suppression to be temporary or infinite. If * you specify LIMITED, you must also specify a * suppressionPeriod. If you specify INFINITE, any value * for suppressionPeriod is ignored.

*/ inline UpdateAnomalyRequest& WithSuppressionType(SuppressionType&& value) { SetSuppressionType(std::move(value)); return *this;} /** *

If you are temporarily suppressing an anomaly or pattern, use this structure * to specify how long the suppression is to last.

*/ inline const SuppressionPeriod& GetSuppressionPeriod() const{ return m_suppressionPeriod; } /** *

If you are temporarily suppressing an anomaly or pattern, use this structure * to specify how long the suppression is to last.

*/ inline bool SuppressionPeriodHasBeenSet() const { return m_suppressionPeriodHasBeenSet; } /** *

If you are temporarily suppressing an anomaly or pattern, use this structure * to specify how long the suppression is to last.

*/ inline void SetSuppressionPeriod(const SuppressionPeriod& value) { m_suppressionPeriodHasBeenSet = true; m_suppressionPeriod = value; } /** *

If you are temporarily suppressing an anomaly or pattern, use this structure * to specify how long the suppression is to last.

*/ inline void SetSuppressionPeriod(SuppressionPeriod&& value) { m_suppressionPeriodHasBeenSet = true; m_suppressionPeriod = std::move(value); } /** *

If you are temporarily suppressing an anomaly or pattern, use this structure * to specify how long the suppression is to last.

*/ inline UpdateAnomalyRequest& WithSuppressionPeriod(const SuppressionPeriod& value) { SetSuppressionPeriod(value); return *this;} /** *

If you are temporarily suppressing an anomaly or pattern, use this structure * to specify how long the suppression is to last.

*/ inline UpdateAnomalyRequest& WithSuppressionPeriod(SuppressionPeriod&& value) { SetSuppressionPeriod(std::move(value)); return *this;} private: Aws::String m_anomalyId; bool m_anomalyIdHasBeenSet = false; Aws::String m_patternId; bool m_patternIdHasBeenSet = false; Aws::String m_anomalyDetectorArn; bool m_anomalyDetectorArnHasBeenSet = false; SuppressionType m_suppressionType; bool m_suppressionTypeHasBeenSet = false; SuppressionPeriod m_suppressionPeriod; bool m_suppressionPeriodHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws