/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include One data point related to one contributor. For more information, see
* GetInsightRuleReport
* and InsightRuleContributor.See
* Also:
AWS
* API Reference
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