AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Behavior.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 <aws/iot/model/BehaviorCriteria.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoT
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_IOT_API Behavior();
37 AWS_IOT_API Behavior(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline Behavior& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline Behavior& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline Behavior& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetMetric() const{ return m_metric; }
61 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
62 inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
63 inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
64 inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
65 inline Behavior& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
66 inline Behavior& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
67 inline Behavior& WithMetric(const char* value) { SetMetric(value); return *this;}
69
71
77 inline const MetricDimension& GetMetricDimension() const{ return m_metricDimension; }
78 inline bool MetricDimensionHasBeenSet() const { return m_metricDimensionHasBeenSet; }
79 inline void SetMetricDimension(const MetricDimension& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = value; }
80 inline void SetMetricDimension(MetricDimension&& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = std::move(value); }
81 inline Behavior& WithMetricDimension(const MetricDimension& value) { SetMetricDimension(value); return *this;}
82 inline Behavior& WithMetricDimension(MetricDimension&& value) { SetMetricDimension(std::move(value)); return *this;}
84
86
92 inline const BehaviorCriteria& GetCriteria() const{ return m_criteria; }
93 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
94 inline void SetCriteria(const BehaviorCriteria& value) { m_criteriaHasBeenSet = true; m_criteria = value; }
95 inline void SetCriteria(BehaviorCriteria&& value) { m_criteriaHasBeenSet = true; m_criteria = std::move(value); }
96 inline Behavior& WithCriteria(const BehaviorCriteria& value) { SetCriteria(value); return *this;}
97 inline Behavior& WithCriteria(BehaviorCriteria&& value) { SetCriteria(std::move(value)); return *this;}
99
101
104 inline bool GetSuppressAlerts() const{ return m_suppressAlerts; }
105 inline bool SuppressAlertsHasBeenSet() const { return m_suppressAlertsHasBeenSet; }
106 inline void SetSuppressAlerts(bool value) { m_suppressAlertsHasBeenSet = true; m_suppressAlerts = value; }
107 inline Behavior& WithSuppressAlerts(bool value) { SetSuppressAlerts(value); return *this;}
109
111
115 inline bool GetExportMetric() const{ return m_exportMetric; }
116 inline bool ExportMetricHasBeenSet() const { return m_exportMetricHasBeenSet; }
117 inline void SetExportMetric(bool value) { m_exportMetricHasBeenSet = true; m_exportMetric = value; }
118 inline Behavior& WithExportMetric(bool value) { SetExportMetric(value); return *this;}
120 private:
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 Aws::String m_metric;
126 bool m_metricHasBeenSet = false;
127
128 MetricDimension m_metricDimension;
129 bool m_metricDimensionHasBeenSet = false;
130
131 BehaviorCriteria m_criteria;
132 bool m_criteriaHasBeenSet = false;
133
134 bool m_suppressAlerts;
135 bool m_suppressAlertsHasBeenSet = false;
136
137 bool m_exportMetric;
138 bool m_exportMetricHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace IoT
143} // namespace Aws
Behavior & WithName(Aws::String &&value)
Definition Behavior.h:52
void SetMetric(Aws::String &&value)
Definition Behavior.h:63
void SetMetricDimension(const MetricDimension &value)
Definition Behavior.h:79
bool CriteriaHasBeenSet() const
Definition Behavior.h:93
AWS_IOT_API Behavior & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCriteria(BehaviorCriteria &&value)
Definition Behavior.h:95
bool NameHasBeenSet() const
Definition Behavior.h:47
const BehaviorCriteria & GetCriteria() const
Definition Behavior.h:92
void SetCriteria(const BehaviorCriteria &value)
Definition Behavior.h:94
const MetricDimension & GetMetricDimension() const
Definition Behavior.h:77
const Aws::String & GetName() const
Definition Behavior.h:46
Behavior & WithExportMetric(bool value)
Definition Behavior.h:118
void SetMetric(const char *value)
Definition Behavior.h:64
bool MetricHasBeenSet() const
Definition Behavior.h:61
Behavior & WithCriteria(BehaviorCriteria &&value)
Definition Behavior.h:97
AWS_IOT_API Behavior(Aws::Utils::Json::JsonView jsonValue)
Behavior & WithMetricDimension(MetricDimension &&value)
Definition Behavior.h:82
bool MetricDimensionHasBeenSet() const
Definition Behavior.h:78
void SetMetric(const Aws::String &value)
Definition Behavior.h:62
Behavior & WithCriteria(const BehaviorCriteria &value)
Definition Behavior.h:96
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const Aws::String &value)
Definition Behavior.h:48
Behavior & WithMetric(const Aws::String &value)
Definition Behavior.h:65
bool GetSuppressAlerts() const
Definition Behavior.h:104
bool SuppressAlertsHasBeenSet() const
Definition Behavior.h:105
void SetMetricDimension(MetricDimension &&value)
Definition Behavior.h:80
Behavior & WithSuppressAlerts(bool value)
Definition Behavior.h:107
bool GetExportMetric() const
Definition Behavior.h:115
Behavior & WithMetric(const char *value)
Definition Behavior.h:67
void SetName(Aws::String &&value)
Definition Behavior.h:49
Behavior & WithName(const Aws::String &value)
Definition Behavior.h:51
Behavior & WithName(const char *value)
Definition Behavior.h:53
bool ExportMetricHasBeenSet() const
Definition Behavior.h:116
void SetExportMetric(bool value)
Definition Behavior.h:117
void SetSuppressAlerts(bool value)
Definition Behavior.h:106
void SetName(const char *value)
Definition Behavior.h:50
const Aws::String & GetMetric() const
Definition Behavior.h:60
Behavior & WithMetricDimension(const MetricDimension &value)
Definition Behavior.h:81
Behavior & WithMetric(Aws::String &&value)
Definition Behavior.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue