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
39 AWS_CODEGURUPROFILER_API
Anomaly() =
default;
52 template<
typename InstancesT = Aws::Vector<AnomalyInstance>>
53 void SetInstances(InstancesT&& value) { m_instancesHasBeenSet =
true; m_instances = std::forward<InstancesT>(value); }
54 template<
typename InstancesT = Aws::Vector<AnomalyInstance>>
56 template<
typename InstancesT = AnomalyInstance>
57 Anomaly&
AddInstances(InstancesT&& value) { m_instancesHasBeenSet =
true; m_instances.emplace_back(std::forward<InstancesT>(value));
return *
this; }
68 template<
typename MetricT = Metric>
69 void SetMetric(MetricT&& value) { m_metricHasBeenSet =
true; m_metric = std::forward<MetricT>(value); }
70 template<
typename MetricT = Metric>
80 template<
typename ReasonT = Aws::String>
81 void SetReason(ReasonT&& value) { m_reasonHasBeenSet =
true; m_reason = std::forward<ReasonT>(value); }
82 template<
typename ReasonT = Aws::String>
88 bool m_instancesHasBeenSet =
false;
91 bool m_metricHasBeenSet =
false;
94 bool m_reasonHasBeenSet =
false;
Anomaly & WithInstances(InstancesT &&value)
AWS_CODEGURUPROFILER_API Anomaly(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetReason() const
const Metric & GetMetric() const
bool InstancesHasBeenSet() const
Anomaly & WithReason(ReasonT &&value)
void SetReason(ReasonT &&value)
const Aws::Vector< AnomalyInstance > & GetInstances() const
Anomaly & AddInstances(InstancesT &&value)
bool MetricHasBeenSet() const
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
bool ReasonHasBeenSet() const
void SetInstances(InstancesT &&value)
AWS_CODEGURUPROFILER_API Anomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMetric(MetricT &&value)
Anomaly & WithMetric(MetricT &&value)
AWS_CODEGURUPROFILER_API Anomaly()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue