AWS SDK for C++  0.12.9
AWS SDK for C++
StatisticSet.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace CloudWatch
29 {
30 namespace Model
31 {
32 
39  {
40  public:
41  StatisticSet();
42  StatisticSet(const Aws::Utils::Xml::XmlNode& xmlNode);
43  StatisticSet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline double GetSampleCount() const{ return m_sampleCount; }
52 
56  inline void SetSampleCount(double value) { m_sampleCountHasBeenSet = true; m_sampleCount = value; }
57 
61  inline StatisticSet& WithSampleCount(double value) { SetSampleCount(value); return *this;}
62 
66  inline double GetSum() const{ return m_sum; }
67 
71  inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; }
72 
76  inline StatisticSet& WithSum(double value) { SetSum(value); return *this;}
77 
81  inline double GetMinimum() const{ return m_minimum; }
82 
86  inline void SetMinimum(double value) { m_minimumHasBeenSet = true; m_minimum = value; }
87 
91  inline StatisticSet& WithMinimum(double value) { SetMinimum(value); return *this;}
92 
96  inline double GetMaximum() const{ return m_maximum; }
97 
101  inline void SetMaximum(double value) { m_maximumHasBeenSet = true; m_maximum = value; }
102 
106  inline StatisticSet& WithMaximum(double value) { SetMaximum(value); return *this;}
107 
108  private:
109  double m_sampleCount;
110  bool m_sampleCountHasBeenSet;
111  double m_sum;
112  bool m_sumHasBeenSet;
113  double m_minimum;
114  bool m_minimumHasBeenSet;
115  double m_maximum;
116  bool m_maximumHasBeenSet;
117  };
118 
119 } // namespace Model
120 } // namespace CloudWatch
121 } // namespace Aws
StatisticSet & WithMinimum(double value)
Definition: StatisticSet.h:91
StatisticSet & WithSum(double value)
Definition: StatisticSet.h:76
StatisticSet & WithSampleCount(double value)
Definition: StatisticSet.h:61
#define AWS_CLOUDWATCH_API
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
JSON (JavaScript Object Notation).
StatisticSet & WithMaximum(double value)
Definition: StatisticSet.h:106