AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InsightRuleContributorDatapoint.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudWatch
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_CLOUDWATCH_API InsightRuleContributorDatapoint();
42
43 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
52 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
53 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
54 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
56 inline InsightRuleContributorDatapoint& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
58
60
63 inline double GetApproximateValue() const{ return m_approximateValue; }
64 inline bool ApproximateValueHasBeenSet() const { return m_approximateValueHasBeenSet; }
65 inline void SetApproximateValue(double value) { m_approximateValueHasBeenSet = true; m_approximateValue = value; }
66 inline InsightRuleContributorDatapoint& WithApproximateValue(double value) { SetApproximateValue(value); return *this;}
68 private:
69
70 Aws::Utils::DateTime m_timestamp;
71 bool m_timestampHasBeenSet = false;
72
73 double m_approximateValue;
74 bool m_approximateValueHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace CloudWatch
79} // namespace Aws
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
InsightRuleContributorDatapoint & WithApproximateValue(double value)
InsightRuleContributorDatapoint & WithTimestamp(Aws::Utils::DateTime &&value)
AWS_CLOUDWATCH_API InsightRuleContributorDatapoint(const Aws::Utils::Xml::XmlNode &xmlNode)
InsightRuleContributorDatapoint & WithTimestamp(const Aws::Utils::DateTime &value)
std::basic_ostream< char, std::char_traits< char > > OStream