/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchLogs { namespace Model { /** *

If you are suppressing an anomaly temporariliy, this structure defines how * long the suppression period is to be.

See Also:

AWS * API Reference

*/ class SuppressionPeriod { public: AWS_CLOUDWATCHLOGS_API SuppressionPeriod(); AWS_CLOUDWATCHLOGS_API SuppressionPeriod(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API SuppressionPeriod& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Specifies the number of seconds, minutes or hours to suppress this anomaly. * There is no maximum.

*/ inline int GetValue() const{ return m_value; } /** *

Specifies the number of seconds, minutes or hours to suppress this anomaly. * There is no maximum.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

Specifies the number of seconds, minutes or hours to suppress this anomaly. * There is no maximum.

*/ inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; } /** *

Specifies the number of seconds, minutes or hours to suppress this anomaly. * There is no maximum.

*/ inline SuppressionPeriod& WithValue(int value) { SetValue(value); return *this;} /** *

Specifies whether the value of value is in seconds, minutes, or * hours.

*/ inline const SuppressionUnit& GetSuppressionUnit() const{ return m_suppressionUnit; } /** *

Specifies whether the value of value is in seconds, minutes, or * hours.

*/ inline bool SuppressionUnitHasBeenSet() const { return m_suppressionUnitHasBeenSet; } /** *

Specifies whether the value of value is in seconds, minutes, or * hours.

*/ inline void SetSuppressionUnit(const SuppressionUnit& value) { m_suppressionUnitHasBeenSet = true; m_suppressionUnit = value; } /** *

Specifies whether the value of value is in seconds, minutes, or * hours.

*/ inline void SetSuppressionUnit(SuppressionUnit&& value) { m_suppressionUnitHasBeenSet = true; m_suppressionUnit = std::move(value); } /** *

Specifies whether the value of value is in seconds, minutes, or * hours.

*/ inline SuppressionPeriod& WithSuppressionUnit(const SuppressionUnit& value) { SetSuppressionUnit(value); return *this;} /** *

Specifies whether the value of value is in seconds, minutes, or * hours.

*/ inline SuppressionPeriod& WithSuppressionUnit(SuppressionUnit&& value) { SetSuppressionUnit(std::move(value)); return *this;} private: int m_value; bool m_valueHasBeenSet = false; SuppressionUnit m_suppressionUnit; bool m_suppressionUnitHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws