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

This data type is used in the AssessmentTemplateFilter data * type.

See Also:

AWS * API Reference

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

The minimum value of the duration range. Must be greater than zero.

*/ inline int GetMinSeconds() const{ return m_minSeconds; } /** *

The minimum value of the duration range. Must be greater than zero.

*/ inline bool MinSecondsHasBeenSet() const { return m_minSecondsHasBeenSet; } /** *

The minimum value of the duration range. Must be greater than zero.

*/ inline void SetMinSeconds(int value) { m_minSecondsHasBeenSet = true; m_minSeconds = value; } /** *

The minimum value of the duration range. Must be greater than zero.

*/ inline DurationRange& WithMinSeconds(int value) { SetMinSeconds(value); return *this;} /** *

The maximum value of the duration range. Must be less than or equal to 604800 * seconds (1 week).

*/ inline int GetMaxSeconds() const{ return m_maxSeconds; } /** *

The maximum value of the duration range. Must be less than or equal to 604800 * seconds (1 week).

*/ inline bool MaxSecondsHasBeenSet() const { return m_maxSecondsHasBeenSet; } /** *

The maximum value of the duration range. Must be less than or equal to 604800 * seconds (1 week).

*/ inline void SetMaxSeconds(int value) { m_maxSecondsHasBeenSet = true; m_maxSeconds = value; } /** *

The maximum value of the duration range. Must be less than or equal to 604800 * seconds (1 week).

*/ inline DurationRange& WithMaxSeconds(int value) { SetMaxSeconds(value); return *this;} private: int m_minSeconds; bool m_minSecondsHasBeenSet = false; int m_maxSeconds; bool m_maxSecondsHasBeenSet = false; }; } // namespace Model } // namespace Inspector } // namespace Aws