AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InsightRuleMetricDatapoint.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
35 {
36 public:
37 AWS_CLOUDWATCH_API InsightRuleMetricDatapoint();
38 AWS_CLOUDWATCH_API InsightRuleMetricDatapoint(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
50 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
51 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
52 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
53 inline InsightRuleMetricDatapoint& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
54 inline InsightRuleMetricDatapoint& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
56
58
63 inline double GetUniqueContributors() const{ return m_uniqueContributors; }
64 inline bool UniqueContributorsHasBeenSet() const { return m_uniqueContributorsHasBeenSet; }
65 inline void SetUniqueContributors(double value) { m_uniqueContributorsHasBeenSet = true; m_uniqueContributors = value; }
66 inline InsightRuleMetricDatapoint& WithUniqueContributors(double value) { SetUniqueContributors(value); return *this;}
68
70
76 inline double GetMaxContributorValue() const{ return m_maxContributorValue; }
77 inline bool MaxContributorValueHasBeenSet() const { return m_maxContributorValueHasBeenSet; }
78 inline void SetMaxContributorValue(double value) { m_maxContributorValueHasBeenSet = true; m_maxContributorValue = value; }
79 inline InsightRuleMetricDatapoint& WithMaxContributorValue(double value) { SetMaxContributorValue(value); return *this;}
81
83
88 inline double GetSampleCount() const{ return m_sampleCount; }
89 inline bool SampleCountHasBeenSet() const { return m_sampleCountHasBeenSet; }
90 inline void SetSampleCount(double value) { m_sampleCountHasBeenSet = true; m_sampleCount = value; }
91 inline InsightRuleMetricDatapoint& WithSampleCount(double value) { SetSampleCount(value); return *this;}
93
95
100 inline double GetAverage() const{ return m_average; }
101 inline bool AverageHasBeenSet() const { return m_averageHasBeenSet; }
102 inline void SetAverage(double value) { m_averageHasBeenSet = true; m_average = value; }
103 inline InsightRuleMetricDatapoint& WithAverage(double value) { SetAverage(value); return *this;}
105
107
112 inline double GetSum() const{ return m_sum; }
113 inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
114 inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; }
115 inline InsightRuleMetricDatapoint& WithSum(double value) { SetSum(value); return *this;}
117
119
124 inline double GetMinimum() const{ return m_minimum; }
125 inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
126 inline void SetMinimum(double value) { m_minimumHasBeenSet = true; m_minimum = value; }
127 inline InsightRuleMetricDatapoint& WithMinimum(double value) { SetMinimum(value); return *this;}
129
131
137 inline double GetMaximum() const{ return m_maximum; }
138 inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
139 inline void SetMaximum(double value) { m_maximumHasBeenSet = true; m_maximum = value; }
140 inline InsightRuleMetricDatapoint& WithMaximum(double value) { SetMaximum(value); return *this;}
142 private:
143
144 Aws::Utils::DateTime m_timestamp;
145 bool m_timestampHasBeenSet = false;
146
147 double m_uniqueContributors;
148 bool m_uniqueContributorsHasBeenSet = false;
149
150 double m_maxContributorValue;
151 bool m_maxContributorValueHasBeenSet = false;
152
153 double m_sampleCount;
154 bool m_sampleCountHasBeenSet = false;
155
156 double m_average;
157 bool m_averageHasBeenSet = false;
158
159 double m_sum;
160 bool m_sumHasBeenSet = false;
161
162 double m_minimum;
163 bool m_minimumHasBeenSet = false;
164
165 double m_maximum;
166 bool m_maximumHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace CloudWatch
171} // namespace Aws
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDWATCH_API InsightRuleMetricDatapoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDWATCH_API InsightRuleMetricDatapoint(const Aws::Utils::Xml::XmlNode &xmlNode)
InsightRuleMetricDatapoint & WithTimestamp(const Aws::Utils::DateTime &value)
InsightRuleMetricDatapoint & WithSum(double value)
InsightRuleMetricDatapoint & WithMinimum(double value)
InsightRuleMetricDatapoint & WithMaxContributorValue(double value)
InsightRuleMetricDatapoint & WithUniqueContributors(double value)
InsightRuleMetricDatapoint & WithAverage(double value)
InsightRuleMetricDatapoint & WithMaximum(double value)
InsightRuleMetricDatapoint & WithSampleCount(double value)
InsightRuleMetricDatapoint & WithTimestamp(Aws::Utils::DateTime &&value)
std::basic_ostream< char, std::char_traits< char > > OStream