AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Anomaly.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/codeguruprofiler/model/Metric.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/codeguruprofiler/model/AnomalyInstance.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeGuruProfiler
25{
26namespace Model
27{
28
36 class Anomaly
37 {
38 public:
39 AWS_CODEGURUPROFILER_API Anomaly();
40 AWS_CODEGURUPROFILER_API Anomaly(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEGURUPROFILER_API Anomaly& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<AnomalyInstance>& GetInstances() const{ return m_instances; }
51 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
52 inline void SetInstances(const Aws::Vector<AnomalyInstance>& value) { m_instancesHasBeenSet = true; m_instances = value; }
53 inline void SetInstances(Aws::Vector<AnomalyInstance>&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); }
54 inline Anomaly& WithInstances(const Aws::Vector<AnomalyInstance>& value) { SetInstances(value); return *this;}
55 inline Anomaly& WithInstances(Aws::Vector<AnomalyInstance>&& value) { SetInstances(std::move(value)); return *this;}
56 inline Anomaly& AddInstances(const AnomalyInstance& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
57 inline Anomaly& AddInstances(AnomalyInstance&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; }
59
61
66 inline const Metric& GetMetric() const{ return m_metric; }
67 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
68 inline void SetMetric(const Metric& value) { m_metricHasBeenSet = true; m_metric = value; }
69 inline void SetMetric(Metric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
70 inline Anomaly& WithMetric(const Metric& value) { SetMetric(value); return *this;}
71 inline Anomaly& WithMetric(Metric&& value) { SetMetric(std::move(value)); return *this;}
73
75
78 inline const Aws::String& GetReason() const{ return m_reason; }
79 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
80 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
81 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
82 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
83 inline Anomaly& WithReason(const Aws::String& value) { SetReason(value); return *this;}
84 inline Anomaly& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
85 inline Anomaly& WithReason(const char* value) { SetReason(value); return *this;}
87 private:
88
90 bool m_instancesHasBeenSet = false;
91
92 Metric m_metric;
93 bool m_metricHasBeenSet = false;
94
95 Aws::String m_reason;
96 bool m_reasonHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace CodeGuruProfiler
101} // namespace Aws
void SetMetric(Metric &&value)
Definition Anomaly.h:69
AWS_CODEGURUPROFILER_API Anomaly(Aws::Utils::Json::JsonView jsonValue)
void SetMetric(const Metric &value)
Definition Anomaly.h:68
Anomaly & AddInstances(AnomalyInstance &&value)
Definition Anomaly.h:57
const Aws::String & GetReason() const
Definition Anomaly.h:78
void SetReason(const Aws::String &value)
Definition Anomaly.h:80
AWS_CODEGURUPROFILER_API Anomaly()
void SetInstances(Aws::Vector< AnomalyInstance > &&value)
Definition Anomaly.h:53
Anomaly & WithReason(Aws::String &&value)
Definition Anomaly.h:84
const Metric & GetMetric() const
Definition Anomaly.h:66
Anomaly & AddInstances(const AnomalyInstance &value)
Definition Anomaly.h:56
Anomaly & WithInstances(const Aws::Vector< AnomalyInstance > &value)
Definition Anomaly.h:54
Anomaly & WithMetric(Metric &&value)
Definition Anomaly.h:71
const Aws::Vector< AnomalyInstance > & GetInstances() const
Definition Anomaly.h:50
void SetInstances(const Aws::Vector< AnomalyInstance > &value)
Definition Anomaly.h:52
void SetReason(const char *value)
Definition Anomaly.h:82
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
Anomaly & WithMetric(const Metric &value)
Definition Anomaly.h:70
Anomaly & WithReason(const Aws::String &value)
Definition Anomaly.h:83
void SetReason(Aws::String &&value)
Definition Anomaly.h:81
AWS_CODEGURUPROFILER_API Anomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
Anomaly & WithInstances(Aws::Vector< AnomalyInstance > &&value)
Definition Anomaly.h:55
Anomaly & WithReason(const char *value)
Definition Anomaly.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue