AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
48 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
49 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
50 inline ItemizedMetricStats& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
51 inline ItemizedMetricStats& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
52 inline ItemizedMetricStats& WithMetricName(const char* value) { SetMetricName(value); return *this;}
54
56
59 inline int GetOccurrenceCount() const{ return m_occurrenceCount; }
60 inline bool OccurrenceCountHasBeenSet() const { return m_occurrenceCountHasBeenSet; }
61 inline void SetOccurrenceCount(int value) { m_occurrenceCountHasBeenSet = true; m_occurrenceCount = value; }
62 inline ItemizedMetricStats& WithOccurrenceCount(int value) { SetOccurrenceCount(value); return *this;}
64 private:
65
66 Aws::String m_metricName;
67 bool m_metricNameHasBeenSet = false;
68
69 int m_occurrenceCount;
70 bool m_occurrenceCountHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace LookoutMetrics
75} // namespace Aws
ItemizedMetricStats & WithOccurrenceCount(int value)
AWS_LOOKOUTMETRICS_API ItemizedMetricStats(Aws::Utils::Json::JsonView jsonValue)
ItemizedMetricStats & WithMetricName(Aws::String &&value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOOKOUTMETRICS_API ItemizedMetricStats & operator=(Aws::Utils::Json::JsonView jsonValue)
ItemizedMetricStats & WithMetricName(const Aws::String &value)
ItemizedMetricStats & WithMetricName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue