AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
InterMetricImpactDetails.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lookoutmetrics/model/RelationshipType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LookoutMetrics
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_LOOKOUTMETRICS_API InterMetricImpactDetails() = default;
38 AWS_LOOKOUTMETRICS_API InterMetricImpactDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMetricName() const { return m_metricName; }
48 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
49 template<typename MetricNameT = Aws::String>
50 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
51 template<typename MetricNameT = Aws::String>
52 InterMetricImpactDetails& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetAnomalyGroupId() const { return m_anomalyGroupId; }
60 inline bool AnomalyGroupIdHasBeenSet() const { return m_anomalyGroupIdHasBeenSet; }
61 template<typename AnomalyGroupIdT = Aws::String>
62 void SetAnomalyGroupId(AnomalyGroupIdT&& value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId = std::forward<AnomalyGroupIdT>(value); }
63 template<typename AnomalyGroupIdT = Aws::String>
64 InterMetricImpactDetails& WithAnomalyGroupId(AnomalyGroupIdT&& value) { SetAnomalyGroupId(std::forward<AnomalyGroupIdT>(value)); return *this;}
66
68
73 inline RelationshipType GetRelationshipType() const { return m_relationshipType; }
74 inline bool RelationshipTypeHasBeenSet() const { return m_relationshipTypeHasBeenSet; }
75 inline void SetRelationshipType(RelationshipType value) { m_relationshipTypeHasBeenSet = true; m_relationshipType = value; }
78
80
84 inline double GetContributionPercentage() const { return m_contributionPercentage; }
85 inline bool ContributionPercentageHasBeenSet() const { return m_contributionPercentageHasBeenSet; }
86 inline void SetContributionPercentage(double value) { m_contributionPercentageHasBeenSet = true; m_contributionPercentage = value; }
89 private:
90
91 Aws::String m_metricName;
92 bool m_metricNameHasBeenSet = false;
93
94 Aws::String m_anomalyGroupId;
95 bool m_anomalyGroupIdHasBeenSet = false;
96
98 bool m_relationshipTypeHasBeenSet = false;
99
100 double m_contributionPercentage{0.0};
101 bool m_contributionPercentageHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace LookoutMetrics
106} // namespace Aws
InterMetricImpactDetails & WithMetricName(MetricNameT &&value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
InterMetricImpactDetails & WithContributionPercentage(double value)
AWS_LOOKOUTMETRICS_API InterMetricImpactDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTMETRICS_API InterMetricImpactDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTMETRICS_API InterMetricImpactDetails()=default
InterMetricImpactDetails & WithRelationshipType(RelationshipType value)
InterMetricImpactDetails & WithAnomalyGroupId(AnomalyGroupIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue