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

One data point related to one contributor.

For more information, see * GetInsightRuleReport * and InsightRuleContributor.

See * Also:

AWS * API Reference

*/ class InsightRuleContributorDatapoint { public: AWS_CLOUDWATCH_API InsightRuleContributorDatapoint(); AWS_CLOUDWATCH_API InsightRuleContributorDatapoint(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API InsightRuleContributorDatapoint& 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 timestamp of the data point.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

The timestamp of the data point.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The timestamp of the data point.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The timestamp of the data point.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The timestamp of the data point.

*/ inline InsightRuleContributorDatapoint& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

The timestamp of the data point.

*/ inline InsightRuleContributorDatapoint& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *

The approximate value that this contributor added during this timestamp.

*/ inline double GetApproximateValue() const{ return m_approximateValue; } /** *

The approximate value that this contributor added during this timestamp.

*/ inline bool ApproximateValueHasBeenSet() const { return m_approximateValueHasBeenSet; } /** *

The approximate value that this contributor added during this timestamp.

*/ inline void SetApproximateValue(double value) { m_approximateValueHasBeenSet = true; m_approximateValue = value; } /** *

The approximate value that this contributor added during this timestamp.

*/ inline InsightRuleContributorDatapoint& WithApproximateValue(double value) { SetApproximateValue(value); return *this;} private: Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; double m_approximateValue; bool m_approximateValueHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws