AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
50 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
51 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
52 inline InterMetricImpactDetails& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
53 inline InterMetricImpactDetails& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
54 inline InterMetricImpactDetails& WithMetricName(const char* value) { SetMetricName(value); return *this;}
56
58
61 inline const Aws::String& GetAnomalyGroupId() const{ return m_anomalyGroupId; }
62 inline bool AnomalyGroupIdHasBeenSet() const { return m_anomalyGroupIdHasBeenSet; }
63 inline void SetAnomalyGroupId(const Aws::String& value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId = value; }
64 inline void SetAnomalyGroupId(Aws::String&& value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId = std::move(value); }
65 inline void SetAnomalyGroupId(const char* value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId.assign(value); }
66 inline InterMetricImpactDetails& WithAnomalyGroupId(const Aws::String& value) { SetAnomalyGroupId(value); return *this;}
67 inline InterMetricImpactDetails& WithAnomalyGroupId(Aws::String&& value) { SetAnomalyGroupId(std::move(value)); return *this;}
68 inline InterMetricImpactDetails& WithAnomalyGroupId(const char* value) { SetAnomalyGroupId(value); return *this;}
70
72
77 inline const RelationshipType& GetRelationshipType() const{ return m_relationshipType; }
78 inline bool RelationshipTypeHasBeenSet() const { return m_relationshipTypeHasBeenSet; }
79 inline void SetRelationshipType(const RelationshipType& value) { m_relationshipTypeHasBeenSet = true; m_relationshipType = value; }
80 inline void SetRelationshipType(RelationshipType&& value) { m_relationshipTypeHasBeenSet = true; m_relationshipType = std::move(value); }
82 inline InterMetricImpactDetails& WithRelationshipType(RelationshipType&& value) { SetRelationshipType(std::move(value)); return *this;}
84
86
90 inline double GetContributionPercentage() const{ return m_contributionPercentage; }
91 inline bool ContributionPercentageHasBeenSet() const { return m_contributionPercentageHasBeenSet; }
92 inline void SetContributionPercentage(double value) { m_contributionPercentageHasBeenSet = true; m_contributionPercentage = value; }
95 private:
96
97 Aws::String m_metricName;
98 bool m_metricNameHasBeenSet = false;
99
100 Aws::String m_anomalyGroupId;
101 bool m_anomalyGroupIdHasBeenSet = false;
102
103 RelationshipType m_relationshipType;
104 bool m_relationshipTypeHasBeenSet = false;
105
106 double m_contributionPercentage;
107 bool m_contributionPercentageHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace LookoutMetrics
112} // namespace Aws
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
InterMetricImpactDetails & WithContributionPercentage(double value)
InterMetricImpactDetails & WithRelationshipType(RelationshipType &&value)
InterMetricImpactDetails & WithMetricName(Aws::String &&value)
AWS_LOOKOUTMETRICS_API InterMetricImpactDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
InterMetricImpactDetails & WithAnomalyGroupId(const Aws::String &value)
AWS_LOOKOUTMETRICS_API InterMetricImpactDetails(Aws::Utils::Json::JsonView jsonValue)
InterMetricImpactDetails & WithMetricName(const char *value)
InterMetricImpactDetails & WithRelationshipType(const RelationshipType &value)
InterMetricImpactDetails & WithMetricName(const Aws::String &value)
InterMetricImpactDetails & WithAnomalyGroupId(const char *value)
InterMetricImpactDetails & WithAnomalyGroupId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue