AWS SDK for C++  1.8.95
AWS SDK for C++
InsightRuleMetricDatapoint.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace CloudWatch
22 {
23 namespace Model
24 {
25 
35  {
36  public:
39  InsightRuleMetricDatapoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
49 
53  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
54 
58  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
59 
63  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
64 
68  inline InsightRuleMetricDatapoint& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
69 
73  inline InsightRuleMetricDatapoint& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
74 
75 
81  inline double GetUniqueContributors() const{ return m_uniqueContributors; }
82 
88  inline bool UniqueContributorsHasBeenSet() const { return m_uniqueContributorsHasBeenSet; }
89 
95  inline void SetUniqueContributors(double value) { m_uniqueContributorsHasBeenSet = true; m_uniqueContributors = value; }
96 
102  inline InsightRuleMetricDatapoint& WithUniqueContributors(double value) { SetUniqueContributors(value); return *this;}
103 
104 
111  inline double GetMaxContributorValue() const{ return m_maxContributorValue; }
112 
119  inline bool MaxContributorValueHasBeenSet() const { return m_maxContributorValueHasBeenSet; }
120 
127  inline void SetMaxContributorValue(double value) { m_maxContributorValueHasBeenSet = true; m_maxContributorValue = value; }
128 
135  inline InsightRuleMetricDatapoint& WithMaxContributorValue(double value) { SetMaxContributorValue(value); return *this;}
136 
137 
143  inline double GetSampleCount() const{ return m_sampleCount; }
144 
150  inline bool SampleCountHasBeenSet() const { return m_sampleCountHasBeenSet; }
151 
157  inline void SetSampleCount(double value) { m_sampleCountHasBeenSet = true; m_sampleCount = value; }
158 
164  inline InsightRuleMetricDatapoint& WithSampleCount(double value) { SetSampleCount(value); return *this;}
165 
166 
172  inline double GetAverage() const{ return m_average; }
173 
179  inline bool AverageHasBeenSet() const { return m_averageHasBeenSet; }
180 
186  inline void SetAverage(double value) { m_averageHasBeenSet = true; m_average = value; }
187 
193  inline InsightRuleMetricDatapoint& WithAverage(double value) { SetAverage(value); return *this;}
194 
195 
201  inline double GetSum() const{ return m_sum; }
202 
208  inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
209 
215  inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; }
216 
222  inline InsightRuleMetricDatapoint& WithSum(double value) { SetSum(value); return *this;}
223 
224 
230  inline double GetMinimum() const{ return m_minimum; }
231 
237  inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
238 
244  inline void SetMinimum(double value) { m_minimumHasBeenSet = true; m_minimum = value; }
245 
251  inline InsightRuleMetricDatapoint& WithMinimum(double value) { SetMinimum(value); return *this;}
252 
253 
260  inline double GetMaximum() const{ return m_maximum; }
261 
268  inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
269 
276  inline void SetMaximum(double value) { m_maximumHasBeenSet = true; m_maximum = value; }
277 
284  inline InsightRuleMetricDatapoint& WithMaximum(double value) { SetMaximum(value); return *this;}
285 
286  private:
287 
288  Aws::Utils::DateTime m_timestamp;
289  bool m_timestampHasBeenSet;
290 
291  double m_uniqueContributors;
292  bool m_uniqueContributorsHasBeenSet;
293 
294  double m_maxContributorValue;
295  bool m_maxContributorValueHasBeenSet;
296 
297  double m_sampleCount;
298  bool m_sampleCountHasBeenSet;
299 
300  double m_average;
301  bool m_averageHasBeenSet;
302 
303  double m_sum;
304  bool m_sumHasBeenSet;
305 
306  double m_minimum;
307  bool m_minimumHasBeenSet;
308 
309  double m_maximum;
310  bool m_maximumHasBeenSet;
311  };
312 
313 } // namespace Model
314 } // namespace CloudWatch
315 } // namespace Aws
InsightRuleMetricDatapoint & WithTimestamp(Aws::Utils::DateTime &&value)
InsightRuleMetricDatapoint & WithSampleCount(double value)
InsightRuleMetricDatapoint & WithMinimum(double value)
#define AWS_CLOUDWATCH_API
InsightRuleMetricDatapoint & WithSum(double value)
int index
Definition: cJSON.h:171
InsightRuleMetricDatapoint & WithAverage(double value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
InsightRuleMetricDatapoint & WithMaxContributorValue(double value)
InsightRuleMetricDatapoint & WithMaximum(double value)
void SetTimestamp(const Aws::Utils::DateTime &value)
InsightRuleMetricDatapoint & WithTimestamp(const Aws::Utils::DateTime &value)
InsightRuleMetricDatapoint & WithUniqueContributors(double value)