/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A range of time that specifies when anomalous behavior in an anomaly or
* insight ended. See Also:
AWS
* API Reference
The earliest end time in the time range.
*/ inline const Aws::Utils::DateTime& GetFromTime() const{ return m_fromTime; } /** *The earliest end time in the time range.
*/ inline bool FromTimeHasBeenSet() const { return m_fromTimeHasBeenSet; } /** *The earliest end time in the time range.
*/ inline void SetFromTime(const Aws::Utils::DateTime& value) { m_fromTimeHasBeenSet = true; m_fromTime = value; } /** *The earliest end time in the time range.
*/ inline void SetFromTime(Aws::Utils::DateTime&& value) { m_fromTimeHasBeenSet = true; m_fromTime = std::move(value); } /** *The earliest end time in the time range.
*/ inline EndTimeRange& WithFromTime(const Aws::Utils::DateTime& value) { SetFromTime(value); return *this;} /** *The earliest end time in the time range.
*/ inline EndTimeRange& WithFromTime(Aws::Utils::DateTime&& value) { SetFromTime(std::move(value)); return *this;} /** *The latest end time in the time range.
*/ inline const Aws::Utils::DateTime& GetToTime() const{ return m_toTime; } /** *The latest end time in the time range.
*/ inline bool ToTimeHasBeenSet() const { return m_toTimeHasBeenSet; } /** *The latest end time in the time range.
*/ inline void SetToTime(const Aws::Utils::DateTime& value) { m_toTimeHasBeenSet = true; m_toTime = value; } /** *The latest end time in the time range.
*/ inline void SetToTime(Aws::Utils::DateTime&& value) { m_toTimeHasBeenSet = true; m_toTime = std::move(value); } /** *The latest end time in the time range.
*/ inline EndTimeRange& WithToTime(const Aws::Utils::DateTime& value) { SetToTime(value); return *this;} /** *The latest end time in the time range.
*/ inline EndTimeRange& 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