AWS SDK for C++  1.9.130
AWS SDK for C++
Behavior.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace IoT
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline Behavior& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline Behavior& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
80  inline Behavior& WithName(const char* value) { SetName(value); return *this;}
81 
82 
86  inline const Aws::String& GetMetric() const{ return m_metric; }
87 
91  inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
92 
96  inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
97 
101  inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
102 
106  inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
107 
111  inline Behavior& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
112 
116  inline Behavior& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
117 
121  inline Behavior& WithMetric(const char* value) { SetMetric(value); return *this;}
122 
123 
130  inline const MetricDimension& GetMetricDimension() const{ return m_metricDimension; }
131 
138  inline bool MetricDimensionHasBeenSet() const { return m_metricDimensionHasBeenSet; }
139 
146  inline void SetMetricDimension(const MetricDimension& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = value; }
147 
154  inline void SetMetricDimension(MetricDimension&& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = std::move(value); }
155 
162  inline Behavior& WithMetricDimension(const MetricDimension& value) { SetMetricDimension(value); return *this;}
163 
170  inline Behavior& WithMetricDimension(MetricDimension&& value) { SetMetricDimension(std::move(value)); return *this;}
171 
172 
177  inline const BehaviorCriteria& GetCriteria() const{ return m_criteria; }
178 
183  inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
184 
189  inline void SetCriteria(const BehaviorCriteria& value) { m_criteriaHasBeenSet = true; m_criteria = value; }
190 
195  inline void SetCriteria(BehaviorCriteria&& value) { m_criteriaHasBeenSet = true; m_criteria = std::move(value); }
196 
201  inline Behavior& WithCriteria(const BehaviorCriteria& value) { SetCriteria(value); return *this;}
202 
207  inline Behavior& WithCriteria(BehaviorCriteria&& value) { SetCriteria(std::move(value)); return *this;}
208 
209 
213  inline bool GetSuppressAlerts() const{ return m_suppressAlerts; }
214 
218  inline bool SuppressAlertsHasBeenSet() const { return m_suppressAlertsHasBeenSet; }
219 
223  inline void SetSuppressAlerts(bool value) { m_suppressAlertsHasBeenSet = true; m_suppressAlerts = value; }
224 
228  inline Behavior& WithSuppressAlerts(bool value) { SetSuppressAlerts(value); return *this;}
229 
230  private:
231 
232  Aws::String m_name;
233  bool m_nameHasBeenSet;
234 
235  Aws::String m_metric;
236  bool m_metricHasBeenSet;
237 
238  MetricDimension m_metricDimension;
239  bool m_metricDimensionHasBeenSet;
240 
241  BehaviorCriteria m_criteria;
242  bool m_criteriaHasBeenSet;
243 
244  bool m_suppressAlerts;
245  bool m_suppressAlertsHasBeenSet;
246  };
247 
248 } // namespace Model
249 } // namespace IoT
250 } // namespace Aws
Aws::IoT::Model::Behavior::SetCriteria
void SetCriteria(const BehaviorCriteria &value)
Definition: Behavior.h:189
Aws::IoT::Model::Behavior::WithCriteria
Behavior & WithCriteria(BehaviorCriteria &&value)
Definition: Behavior.h:207
Aws::IoT::Model::Behavior::WithName
Behavior & WithName(const char *value)
Definition: Behavior.h:80
Aws::IoT::Model::Behavior::GetMetricDimension
const MetricDimension & GetMetricDimension() const
Definition: Behavior.h:130
Aws::IoT::Model::Behavior::GetName
const Aws::String & GetName() const
Definition: Behavior.h:45
Aws::IoT::Model::Behavior::SuppressAlertsHasBeenSet
bool SuppressAlertsHasBeenSet() const
Definition: Behavior.h:218
Aws::IoT::Model::MetricDimension
Definition: MetricDimension.h:33
Aws::IoT::Model::Behavior::SetSuppressAlerts
void SetSuppressAlerts(bool value)
Definition: Behavior.h:223
MetricDimension.h
Aws::IoT::Model::Behavior::WithName
Behavior & WithName(const Aws::String &value)
Definition: Behavior.h:70
Aws::IoT::Model::Behavior::CriteriaHasBeenSet
bool CriteriaHasBeenSet() const
Definition: Behavior.h:183
Aws::IoT::Model::Behavior::WithSuppressAlerts
Behavior & WithSuppressAlerts(bool value)
Definition: Behavior.h:228
Aws::IoT::Model::Behavior::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::Behavior::WithCriteria
Behavior & WithCriteria(const BehaviorCriteria &value)
Definition: Behavior.h:201
Aws::IoT::Model::Behavior::WithMetricDimension
Behavior & WithMetricDimension(MetricDimension &&value)
Definition: Behavior.h:170
Aws::IoT::Model::Behavior::WithMetric
Behavior & WithMetric(const Aws::String &value)
Definition: Behavior.h:111
Aws::IoT::Model::Behavior::SetCriteria
void SetCriteria(BehaviorCriteria &&value)
Definition: Behavior.h:195
Aws::IoT::Model::Behavior::GetMetric
const Aws::String & GetMetric() const
Definition: Behavior.h:86
Aws::IoT::Model::Behavior::SetMetric
void SetMetric(Aws::String &&value)
Definition: Behavior.h:101
Aws::IoT::Model::Behavior::GetCriteria
const BehaviorCriteria & GetCriteria() const
Definition: Behavior.h:177
Aws::IoT::Model::BehaviorCriteria
Definition: BehaviorCriteria.h:36
Aws::IoT::Model::Behavior::GetSuppressAlerts
bool GetSuppressAlerts() const
Definition: Behavior.h:213
Aws::IoT::Model::Behavior::Behavior
Behavior(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::Behavior::WithMetric
Behavior & WithMetric(const char *value)
Definition: Behavior.h:121
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::Behavior::MetricDimensionHasBeenSet
bool MetricDimensionHasBeenSet() const
Definition: Behavior.h:138
Aws::IoT::Model::Behavior::Behavior
Behavior()
Aws::IoT::Model::Behavior::SetName
void SetName(Aws::String &&value)
Definition: Behavior.h:60
Aws::IoT::Model::Behavior::WithName
Behavior & WithName(Aws::String &&value)
Definition: Behavior.h:75
Aws::IoT::Model::Behavior::operator=
Behavior & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::Behavior::SetMetric
void SetMetric(const Aws::String &value)
Definition: Behavior.h:96
Aws::IoT::Model::Behavior::SetName
void SetName(const Aws::String &value)
Definition: Behavior.h:55
Aws::IoT::Model::Behavior::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Behavior.h:50
Aws::IoT::Model::Behavior::WithMetric
Behavior & WithMetric(Aws::String &&value)
Definition: Behavior.h:116
Aws::IoT::Model::Behavior::SetName
void SetName(const char *value)
Definition: Behavior.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::Behavior::SetMetricDimension
void SetMetricDimension(MetricDimension &&value)
Definition: Behavior.h:154
Aws::IoT::Model::Behavior
Definition: Behavior.h:34
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::Behavior::SetMetric
void SetMetric(const char *value)
Definition: Behavior.h:106
BehaviorCriteria.h
Aws::IoT::Model::Behavior::WithMetricDimension
Behavior & WithMetricDimension(const MetricDimension &value)
Definition: Behavior.h:162
Aws::IoT::Model::Behavior::SetMetricDimension
void SetMetricDimension(const MetricDimension &value)
Definition: Behavior.h:146
Aws::IoT::Model::Behavior::MetricHasBeenSet
bool MetricHasBeenSet() const
Definition: Behavior.h:91
IoT_EXPORTS.h