/** * 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 SecurityHub { namespace Model { /** *

A date range for the date filter.

See Also:

AWS * API Reference

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

A date range value for the date filter.

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

A date range value for the date filter.

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

A date range value for the date filter.

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

A date range value for the date filter.

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

A date range unit for the date filter.

*/ inline const DateRangeUnit& GetUnit() const{ return m_unit; } /** *

A date range unit for the date filter.

*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *

A date range unit for the date filter.

*/ inline void SetUnit(const DateRangeUnit& value) { m_unitHasBeenSet = true; m_unit = value; } /** *

A date range unit for the date filter.

*/ inline void SetUnit(DateRangeUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *

A date range unit for the date filter.

*/ inline DateRange& WithUnit(const DateRangeUnit& value) { SetUnit(value); return *this;} /** *

A date range unit for the date filter.

*/ inline DateRange& WithUnit(DateRangeUnit&& value) { SetUnit(std::move(value)); return *this;} private: int m_value; bool m_valueHasBeenSet = false; DateRangeUnit m_unit; bool m_unitHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws