/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudWatch { namespace Model { /** *

Specifies one range of days or times to exclude from use for training an * anomaly detection model.

See Also:

AWS * API Reference

*/ class Range { public: AWS_CLOUDWATCH_API Range(); AWS_CLOUDWATCH_API Range(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API Range& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The start time of the range to exclude. The format is * yyyy-MM-dd'T'HH:mm:ss. For example, * 2019-07-01T23:59:59.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The start time of the range to exclude. The format is * yyyy-MM-dd'T'HH:mm:ss. For example, * 2019-07-01T23:59:59.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start time of the range to exclude. The format is * yyyy-MM-dd'T'HH:mm:ss. For example, * 2019-07-01T23:59:59.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The start time of the range to exclude. The format is * yyyy-MM-dd'T'HH:mm:ss. For example, * 2019-07-01T23:59:59.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The start time of the range to exclude. The format is * yyyy-MM-dd'T'HH:mm:ss. For example, * 2019-07-01T23:59:59.

*/ inline Range& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start time of the range to exclude. The format is * yyyy-MM-dd'T'HH:mm:ss. For example, * 2019-07-01T23:59:59.

*/ inline Range& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The end time of the range to exclude. The format is * yyyy-MM-dd'T'HH:mm:ss. For example, * 2019-07-01T23:59:59.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The end time of the range to exclude. The format is * yyyy-MM-dd'T'HH:mm:ss. For example, * 2019-07-01T23:59:59.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end time of the range to exclude. The format is * yyyy-MM-dd'T'HH:mm:ss. For example, * 2019-07-01T23:59:59.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end time of the range to exclude. The format is * yyyy-MM-dd'T'HH:mm:ss. For example, * 2019-07-01T23:59:59.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The end time of the range to exclude. The format is * yyyy-MM-dd'T'HH:mm:ss. For example, * 2019-07-01T23:59:59.

*/ inline Range& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The end time of the range to exclude. The format is * yyyy-MM-dd'T'HH:mm:ss. For example, * 2019-07-01T23:59:59.

*/ inline Range& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} private: Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws