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>
24namespace CodeGuruProfiler
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); }
82 inline void SetReason(
const char* value) { m_reasonHasBeenSet =
true; m_reason.assign(value); }
90 bool m_instancesHasBeenSet =
false;
93 bool m_metricHasBeenSet =
false;
96 bool m_reasonHasBeenSet =
false;
void SetMetric(Metric &&value)
AWS_CODEGURUPROFILER_API Anomaly(Aws::Utils::Json::JsonView jsonValue)
void SetMetric(const Metric &value)
Anomaly & AddInstances(AnomalyInstance &&value)
const Aws::String & GetReason() const
void SetReason(const Aws::String &value)
AWS_CODEGURUPROFILER_API Anomaly()
void SetInstances(Aws::Vector< AnomalyInstance > &&value)
Anomaly & WithReason(Aws::String &&value)
const Metric & GetMetric() const
Anomaly & AddInstances(const AnomalyInstance &value)
bool InstancesHasBeenSet() const
Anomaly & WithInstances(const Aws::Vector< AnomalyInstance > &value)
Anomaly & WithMetric(Metric &&value)
const Aws::Vector< AnomalyInstance > & GetInstances() const
void SetInstances(const Aws::Vector< AnomalyInstance > &value)
bool MetricHasBeenSet() const
void SetReason(const char *value)
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
bool ReasonHasBeenSet() const
Anomaly & WithMetric(const Metric &value)
Anomaly & WithReason(const Aws::String &value)
void SetReason(Aws::String &&value)
AWS_CODEGURUPROFILER_API Anomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
Anomaly & WithInstances(Aws::Vector< AnomalyInstance > &&value)
Anomaly & WithReason(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue