7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/model/AnomalyInstance.h>
9#include <aws/codeguruprofiler/model/Metric.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
22namespace CodeGuruProfiler {
34 AWS_CODEGURUPROFILER_API
Anomaly() =
default;
46 template <
typename InstancesT = Aws::Vector<AnomalyInstance>>
48 m_instancesHasBeenSet =
true;
49 m_instances = std::forward<InstancesT>(value);
51 template <
typename InstancesT = Aws::Vector<AnomalyInstance>>
56 template <
typename InstancesT = AnomalyInstance>
58 m_instancesHasBeenSet =
true;
59 m_instances.emplace_back(std::forward<InstancesT>(value));
72 template <
typename MetricT = Metric>
74 m_metricHasBeenSet =
true;
75 m_metric = std::forward<MetricT>(value);
77 template <
typename MetricT = Metric>
90 template <
typename ReasonT = Aws::String>
92 m_reasonHasBeenSet =
true;
93 m_reason = std::forward<ReasonT>(value);
95 template <
typename ReasonT = Aws::String>
107 bool m_instancesHasBeenSet =
false;
108 bool m_metricHasBeenSet =
false;
109 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