AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InsightRuleMetricDatapoint.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/monitoring/CloudWatch_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudWatch {
20namespace Model {
21
31 public:
32 AWS_CLOUDWATCH_API InsightRuleMetricDatapoint() = default;
33 AWS_CLOUDWATCH_API InsightRuleMetricDatapoint(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCH_API InsightRuleMetricDatapoint& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
42 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
43 template <typename TimestampT = Aws::Utils::DateTime>
44 void SetTimestamp(TimestampT&& value) {
45 m_timestampHasBeenSet = true;
46 m_timestamp = std::forward<TimestampT>(value);
47 }
48 template <typename TimestampT = Aws::Utils::DateTime>
50 SetTimestamp(std::forward<TimestampT>(value));
51 return *this;
52 }
54
56
61 inline double GetUniqueContributors() const { return m_uniqueContributors; }
62 inline bool UniqueContributorsHasBeenSet() const { return m_uniqueContributorsHasBeenSet; }
63 inline void SetUniqueContributors(double value) {
64 m_uniqueContributorsHasBeenSet = true;
65 m_uniqueContributors = value;
66 }
69 return *this;
70 }
72
74
80 inline double GetMaxContributorValue() const { return m_maxContributorValue; }
81 inline bool MaxContributorValueHasBeenSet() const { return m_maxContributorValueHasBeenSet; }
82 inline void SetMaxContributorValue(double value) {
83 m_maxContributorValueHasBeenSet = true;
84 m_maxContributorValue = value;
85 }
88 return *this;
89 }
91
93
98 inline double GetSampleCount() const { return m_sampleCount; }
99 inline bool SampleCountHasBeenSet() const { return m_sampleCountHasBeenSet; }
100 inline void SetSampleCount(double value) {
101 m_sampleCountHasBeenSet = true;
102 m_sampleCount = value;
103 }
105 SetSampleCount(value);
106 return *this;
107 }
109
111
116 inline double GetAverage() const { return m_average; }
117 inline bool AverageHasBeenSet() const { return m_averageHasBeenSet; }
118 inline void SetAverage(double value) {
119 m_averageHasBeenSet = true;
120 m_average = value;
121 }
123 SetAverage(value);
124 return *this;
125 }
127
129
134 inline double GetSum() const { return m_sum; }
135 inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
136 inline void SetSum(double value) {
137 m_sumHasBeenSet = true;
138 m_sum = value;
139 }
140 inline InsightRuleMetricDatapoint& WithSum(double value) {
141 SetSum(value);
142 return *this;
143 }
145
147
152 inline double GetMinimum() const { return m_minimum; }
153 inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
154 inline void SetMinimum(double value) {
155 m_minimumHasBeenSet = true;
156 m_minimum = value;
157 }
159 SetMinimum(value);
160 return *this;
161 }
163
165
171 inline double GetMaximum() const { return m_maximum; }
172 inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
173 inline void SetMaximum(double value) {
174 m_maximumHasBeenSet = true;
175 m_maximum = value;
176 }
178 SetMaximum(value);
179 return *this;
180 }
182 private:
183 Aws::Utils::DateTime m_timestamp{};
184
185 double m_uniqueContributors{0.0};
186
187 double m_maxContributorValue{0.0};
188
189 double m_sampleCount{0.0};
190
191 double m_average{0.0};
192
193 double m_sum{0.0};
194
195 double m_minimum{0.0};
196
197 double m_maximum{0.0};
198 bool m_timestampHasBeenSet = false;
199 bool m_uniqueContributorsHasBeenSet = false;
200 bool m_maxContributorValueHasBeenSet = false;
201 bool m_sampleCountHasBeenSet = false;
202 bool m_averageHasBeenSet = false;
203 bool m_sumHasBeenSet = false;
204 bool m_minimumHasBeenSet = false;
205 bool m_maximumHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace CloudWatch
210} // namespace Aws
AWS_CLOUDWATCH_API InsightRuleMetricDatapoint & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
InsightRuleMetricDatapoint & WithTimestamp(TimestampT &&value)
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
InsightRuleMetricDatapoint & WithSum(double value)
InsightRuleMetricDatapoint & WithMinimum(double value)
InsightRuleMetricDatapoint & WithMaxContributorValue(double value)
InsightRuleMetricDatapoint & WithUniqueContributors(double value)
InsightRuleMetricDatapoint & WithAverage(double value)
InsightRuleMetricDatapoint & WithMaximum(double value)
AWS_CLOUDWATCH_API InsightRuleMetricDatapoint()=default
InsightRuleMetricDatapoint & WithSampleCount(double value)
AWS_CLOUDWATCH_API InsightRuleMetricDatapoint(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)