/** * 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 { /** *

The time range during which an Amazon Web Services event occurred. Amazon * Web Services resource events and metrics are analyzed by DevOps Guru to find * anomalous behavior and provide recommendations to improve your operational * solutions.

See Also:

AWS * API Reference

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

The time when the event started.

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

The time when the event started.

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

The time when the event started.

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

The time when the event started.

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

The time when the event started.

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

The time when the event started.

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

The time when the event ended.

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

The time when the event ended.

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

The time when the event ended.

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

The time when the event ended.

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

The time when the event ended.

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

The time when the event ended.

*/ inline EventTimeRange& 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