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

Indicates whether the network was healthy or degraded at a particular point. * The value is aggregated from the startDate to the * endDate. Currently only five_minutes is * supported.

See Also:

AWS API * Reference

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

The start date for the metric point. The starting date for the metric point. * The starting time must be formatted as yyyy-mm-ddThh:mm:ss. For * example, 2022-06-10T12:00:00.000Z.

*/ inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; } /** *

The start date for the metric point. The starting date for the metric point. * The starting time must be formatted as yyyy-mm-ddThh:mm:ss. For * example, 2022-06-10T12:00:00.000Z.

*/ inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; } /** *

The start date for the metric point. The starting date for the metric point. * The starting time must be formatted as yyyy-mm-ddThh:mm:ss. For * example, 2022-06-10T12:00:00.000Z.

*/ inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; } /** *

The start date for the metric point. The starting date for the metric point. * The starting time must be formatted as yyyy-mm-ddThh:mm:ss. For * example, 2022-06-10T12:00:00.000Z.

*/ inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); } /** *

The start date for the metric point. The starting date for the metric point. * The starting time must be formatted as yyyy-mm-ddThh:mm:ss. For * example, 2022-06-10T12:00:00.000Z.

*/ inline MetricPoint& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;} /** *

The start date for the metric point. The starting date for the metric point. * The starting time must be formatted as yyyy-mm-ddThh:mm:ss. For * example, 2022-06-10T12:00:00.000Z.

*/ inline MetricPoint& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;} /** *

The end date for the metric point. The ending time must be formatted as * yyyy-mm-ddThh:mm:ss. For example, * 2022-06-12T12:00:00.000Z.

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

The end date for the metric point. The ending time must be formatted as * yyyy-mm-ddThh:mm:ss. For example, * 2022-06-12T12:00:00.000Z.

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

The end date for the metric point. The ending time must be formatted as * yyyy-mm-ddThh:mm:ss. For example, * 2022-06-12T12:00:00.000Z.

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

The end date for the metric point. The ending time must be formatted as * yyyy-mm-ddThh:mm:ss. For example, * 2022-06-12T12:00:00.000Z.

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

The end date for the metric point. The ending time must be formatted as * yyyy-mm-ddThh:mm:ss. For example, * 2022-06-12T12:00:00.000Z.

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

The end date for the metric point. The ending time must be formatted as * yyyy-mm-ddThh:mm:ss. For example, * 2022-06-12T12:00:00.000Z.

*/ inline MetricPoint& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;} inline double GetValue() const{ return m_value; } inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } inline MetricPoint& WithValue(double value) { SetValue(value); return *this;} /** *

The status of the metric point.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the metric point.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the metric point.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the metric point.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the metric point.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the metric point.

*/ inline MetricPoint& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the metric point.

*/ inline MetricPoint& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the metric point.

*/ inline MetricPoint& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::Utils::DateTime m_startDate; bool m_startDateHasBeenSet = false; Aws::Utils::DateTime m_endDate; bool m_endDateHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws