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

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

See Also:

AWS * API Reference

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

The minimum value of the timestamp range.

*/ inline const Aws::Utils::DateTime& GetBeginDate() const{ return m_beginDate; } /** *

The minimum value of the timestamp range.

*/ inline bool BeginDateHasBeenSet() const { return m_beginDateHasBeenSet; } /** *

The minimum value of the timestamp range.

*/ inline void SetBeginDate(const Aws::Utils::DateTime& value) { m_beginDateHasBeenSet = true; m_beginDate = value; } /** *

The minimum value of the timestamp range.

*/ inline void SetBeginDate(Aws::Utils::DateTime&& value) { m_beginDateHasBeenSet = true; m_beginDate = std::move(value); } /** *

The minimum value of the timestamp range.

*/ inline TimestampRange& WithBeginDate(const Aws::Utils::DateTime& value) { SetBeginDate(value); return *this;} /** *

The minimum value of the timestamp range.

*/ inline TimestampRange& WithBeginDate(Aws::Utils::DateTime&& value) { SetBeginDate(std::move(value)); return *this;} /** *

The maximum value of the timestamp range.

*/ inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; } /** *

The maximum value of the timestamp range.

*/ inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; } /** *

The maximum value of the timestamp range.

*/ inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; } /** *

The maximum value of the timestamp range.

*/ inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); } /** *

The maximum value of the timestamp range.

*/ inline TimestampRange& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;} /** *

The maximum value of the timestamp range.

*/ inline TimestampRange& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;} private: Aws::Utils::DateTime m_beginDate; bool m_beginDateHasBeenSet = false; Aws::Utils::DateTime m_endDate; bool m_endDateHasBeenSet = false; }; } // namespace Model } // namespace Inspector } // namespace Aws