AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ItemizedMetricStats.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LookoutMetrics
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_LOOKOUTMETRICS_API ItemizedMetricStats() = default;
36 AWS_LOOKOUTMETRICS_API ItemizedMetricStats(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LOOKOUTMETRICS_API ItemizedMetricStats& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetMetricName() const { return m_metricName; }
46 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
47 template<typename MetricNameT = Aws::String>
48 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
49 template<typename MetricNameT = Aws::String>
50 ItemizedMetricStats& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
52
54
57 inline int GetOccurrenceCount() const { return m_occurrenceCount; }
58 inline bool OccurrenceCountHasBeenSet() const { return m_occurrenceCountHasBeenSet; }
59 inline void SetOccurrenceCount(int value) { m_occurrenceCountHasBeenSet = true; m_occurrenceCount = value; }
60 inline ItemizedMetricStats& WithOccurrenceCount(int value) { SetOccurrenceCount(value); return *this;}
62 private:
63
64 Aws::String m_metricName;
65 bool m_metricNameHasBeenSet = false;
66
67 int m_occurrenceCount{0};
68 bool m_occurrenceCountHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace LookoutMetrics
73} // namespace Aws
ItemizedMetricStats & WithOccurrenceCount(int value)
AWS_LOOKOUTMETRICS_API ItemizedMetricStats(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOOKOUTMETRICS_API ItemizedMetricStats & operator=(Aws::Utils::Json::JsonView jsonValue)
ItemizedMetricStats & WithMetricName(MetricNameT &&value)
AWS_LOOKOUTMETRICS_API ItemizedMetricStats()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue