AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricToRetain.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/MetricDimension.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOT_API MetricToRetain();
40
41
43
46 inline const Aws::String& GetMetric() const{ return m_metric; }
47 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
48 inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
49 inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
50 inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
51 inline MetricToRetain& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
52 inline MetricToRetain& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
53 inline MetricToRetain& WithMetric(const char* value) { SetMetric(value); return *this;}
55
57
60 inline const MetricDimension& GetMetricDimension() const{ return m_metricDimension; }
61 inline bool MetricDimensionHasBeenSet() const { return m_metricDimensionHasBeenSet; }
62 inline void SetMetricDimension(const MetricDimension& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = value; }
63 inline void SetMetricDimension(MetricDimension&& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = std::move(value); }
64 inline MetricToRetain& WithMetricDimension(const MetricDimension& value) { SetMetricDimension(value); return *this;}
65 inline MetricToRetain& WithMetricDimension(MetricDimension&& value) { SetMetricDimension(std::move(value)); return *this;}
67
69
73 inline bool GetExportMetric() const{ return m_exportMetric; }
74 inline bool ExportMetricHasBeenSet() const { return m_exportMetricHasBeenSet; }
75 inline void SetExportMetric(bool value) { m_exportMetricHasBeenSet = true; m_exportMetric = value; }
76 inline MetricToRetain& WithExportMetric(bool value) { SetExportMetric(value); return *this;}
78 private:
79
80 Aws::String m_metric;
81 bool m_metricHasBeenSet = false;
82
83 MetricDimension m_metricDimension;
84 bool m_metricDimensionHasBeenSet = false;
85
86 bool m_exportMetric;
87 bool m_exportMetricHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace IoT
92} // namespace Aws
void SetMetric(Aws::String &&value)
const Aws::String & GetMetric() const
void SetMetric(const char *value)
const MetricDimension & GetMetricDimension() const
MetricToRetain & WithExportMetric(bool value)
AWS_IOT_API MetricToRetain & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetric(const Aws::String &value)
MetricToRetain & WithMetric(Aws::String &&value)
MetricToRetain & WithMetricDimension(MetricDimension &&value)
MetricToRetain & WithMetric(const char *value)
MetricToRetain & WithMetricDimension(const MetricDimension &value)
MetricToRetain & WithMetric(const Aws::String &value)
void SetMetricDimension(const MetricDimension &value)
AWS_IOT_API MetricToRetain(Aws::Utils::Json::JsonView jsonValue)
void SetMetricDimension(MetricDimension &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue