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

A time range used to specify when the behavior of an insight or anomaly * started.

See Also:

AWS * API Reference

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

The start time of the time range.

*/ inline const Aws::Utils::DateTime& GetFromTime() const{ return m_fromTime; } /** *

The start time of the time range.

*/ inline bool FromTimeHasBeenSet() const { return m_fromTimeHasBeenSet; } /** *

The start time of the time range.

*/ inline void SetFromTime(const Aws::Utils::DateTime& value) { m_fromTimeHasBeenSet = true; m_fromTime = value; } /** *

The start time of the time range.

*/ inline void SetFromTime(Aws::Utils::DateTime&& value) { m_fromTimeHasBeenSet = true; m_fromTime = std::move(value); } /** *

The start time of the time range.

*/ inline StartTimeRange& WithFromTime(const Aws::Utils::DateTime& value) { SetFromTime(value); return *this;} /** *

The start time of the time range.

*/ inline StartTimeRange& WithFromTime(Aws::Utils::DateTime&& value) { SetFromTime(std::move(value)); return *this;} /** *

The end time of the time range.

*/ inline const Aws::Utils::DateTime& GetToTime() const{ return m_toTime; } /** *

The end time of the time range.

*/ inline bool ToTimeHasBeenSet() const { return m_toTimeHasBeenSet; } /** *

The end time of the time range.

*/ inline void SetToTime(const Aws::Utils::DateTime& value) { m_toTimeHasBeenSet = true; m_toTime = value; } /** *

The end time of the time range.

*/ inline void SetToTime(Aws::Utils::DateTime&& value) { m_toTimeHasBeenSet = true; m_toTime = std::move(value); } /** *

The end time of the time range.

*/ inline StartTimeRange& WithToTime(const Aws::Utils::DateTime& value) { SetToTime(value); return *this;} /** *

The end time of the time range.

*/ inline StartTimeRange& WithToTime(Aws::Utils::DateTime&& value) { SetToTime(std::move(value)); return *this;} private: Aws::Utils::DateTime m_fromTime; bool m_fromTimeHasBeenSet = false; Aws::Utils::DateTime m_toTime; bool m_toTimeHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws