AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PerformanceInsightsMetricsDetail.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-guru/model/PerformanceInsightsMetricQuery.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/devops-guru/model/PerformanceInsightsReferenceData.h>
12#include <aws/devops-guru/model/PerformanceInsightsStat.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DevOpsGuru
26{
27namespace Model
28{
29
50 {
51 public:
55 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
56
57
59
62 inline const Aws::String& GetMetricDisplayName() const{ return m_metricDisplayName; }
63 inline bool MetricDisplayNameHasBeenSet() const { return m_metricDisplayNameHasBeenSet; }
64 inline void SetMetricDisplayName(const Aws::String& value) { m_metricDisplayNameHasBeenSet = true; m_metricDisplayName = value; }
65 inline void SetMetricDisplayName(Aws::String&& value) { m_metricDisplayNameHasBeenSet = true; m_metricDisplayName = std::move(value); }
66 inline void SetMetricDisplayName(const char* value) { m_metricDisplayNameHasBeenSet = true; m_metricDisplayName.assign(value); }
69 inline PerformanceInsightsMetricsDetail& WithMetricDisplayName(const char* value) { SetMetricDisplayName(value); return *this;}
71
73
76 inline const Aws::String& GetUnit() const{ return m_unit; }
77 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
78 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
79 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
80 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
81 inline PerformanceInsightsMetricsDetail& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
82 inline PerformanceInsightsMetricsDetail& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
83 inline PerformanceInsightsMetricsDetail& WithUnit(const char* value) { SetUnit(value); return *this;}
85
87
93 inline const PerformanceInsightsMetricQuery& GetMetricQuery() const{ return m_metricQuery; }
94 inline bool MetricQueryHasBeenSet() const { return m_metricQueryHasBeenSet; }
95 inline void SetMetricQuery(const PerformanceInsightsMetricQuery& value) { m_metricQueryHasBeenSet = true; m_metricQuery = value; }
96 inline void SetMetricQuery(PerformanceInsightsMetricQuery&& value) { m_metricQueryHasBeenSet = true; m_metricQuery = std::move(value); }
100
102
107 inline const Aws::Vector<PerformanceInsightsReferenceData>& GetReferenceData() const{ return m_referenceData; }
108 inline bool ReferenceDataHasBeenSet() const { return m_referenceDataHasBeenSet; }
109 inline void SetReferenceData(const Aws::Vector<PerformanceInsightsReferenceData>& value) { m_referenceDataHasBeenSet = true; m_referenceData = value; }
110 inline void SetReferenceData(Aws::Vector<PerformanceInsightsReferenceData>&& value) { m_referenceDataHasBeenSet = true; m_referenceData = std::move(value); }
113 inline PerformanceInsightsMetricsDetail& AddReferenceData(const PerformanceInsightsReferenceData& value) { m_referenceDataHasBeenSet = true; m_referenceData.push_back(value); return *this; }
114 inline PerformanceInsightsMetricsDetail& AddReferenceData(PerformanceInsightsReferenceData&& value) { m_referenceDataHasBeenSet = true; m_referenceData.push_back(std::move(value)); return *this; }
116
118
122 inline const Aws::Vector<PerformanceInsightsStat>& GetStatsAtAnomaly() const{ return m_statsAtAnomaly; }
123 inline bool StatsAtAnomalyHasBeenSet() const { return m_statsAtAnomalyHasBeenSet; }
124 inline void SetStatsAtAnomaly(const Aws::Vector<PerformanceInsightsStat>& value) { m_statsAtAnomalyHasBeenSet = true; m_statsAtAnomaly = value; }
125 inline void SetStatsAtAnomaly(Aws::Vector<PerformanceInsightsStat>&& value) { m_statsAtAnomalyHasBeenSet = true; m_statsAtAnomaly = std::move(value); }
128 inline PerformanceInsightsMetricsDetail& AddStatsAtAnomaly(const PerformanceInsightsStat& value) { m_statsAtAnomalyHasBeenSet = true; m_statsAtAnomaly.push_back(value); return *this; }
129 inline PerformanceInsightsMetricsDetail& AddStatsAtAnomaly(PerformanceInsightsStat&& value) { m_statsAtAnomalyHasBeenSet = true; m_statsAtAnomaly.push_back(std::move(value)); return *this; }
131
133
138 inline const Aws::Vector<PerformanceInsightsStat>& GetStatsAtBaseline() const{ return m_statsAtBaseline; }
139 inline bool StatsAtBaselineHasBeenSet() const { return m_statsAtBaselineHasBeenSet; }
140 inline void SetStatsAtBaseline(const Aws::Vector<PerformanceInsightsStat>& value) { m_statsAtBaselineHasBeenSet = true; m_statsAtBaseline = value; }
141 inline void SetStatsAtBaseline(Aws::Vector<PerformanceInsightsStat>&& value) { m_statsAtBaselineHasBeenSet = true; m_statsAtBaseline = std::move(value); }
144 inline PerformanceInsightsMetricsDetail& AddStatsAtBaseline(const PerformanceInsightsStat& value) { m_statsAtBaselineHasBeenSet = true; m_statsAtBaseline.push_back(value); return *this; }
145 inline PerformanceInsightsMetricsDetail& AddStatsAtBaseline(PerformanceInsightsStat&& value) { m_statsAtBaselineHasBeenSet = true; m_statsAtBaseline.push_back(std::move(value)); return *this; }
147 private:
148
149 Aws::String m_metricDisplayName;
150 bool m_metricDisplayNameHasBeenSet = false;
151
152 Aws::String m_unit;
153 bool m_unitHasBeenSet = false;
154
155 PerformanceInsightsMetricQuery m_metricQuery;
156 bool m_metricQueryHasBeenSet = false;
157
159 bool m_referenceDataHasBeenSet = false;
160
162 bool m_statsAtAnomalyHasBeenSet = false;
163
164 Aws::Vector<PerformanceInsightsStat> m_statsAtBaseline;
165 bool m_statsAtBaselineHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace DevOpsGuru
170} // namespace Aws
PerformanceInsightsMetricsDetail & WithMetricQuery(PerformanceInsightsMetricQuery &&value)
PerformanceInsightsMetricsDetail & WithReferenceData(const Aws::Vector< PerformanceInsightsReferenceData > &value)
AWS_DEVOPSGURU_API PerformanceInsightsMetricsDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatsAtAnomaly(Aws::Vector< PerformanceInsightsStat > &&value)
const Aws::Vector< PerformanceInsightsStat > & GetStatsAtAnomaly() const
const Aws::Vector< PerformanceInsightsStat > & GetStatsAtBaseline() const
PerformanceInsightsMetricsDetail & AddStatsAtBaseline(PerformanceInsightsStat &&value)
PerformanceInsightsMetricsDetail & WithReferenceData(Aws::Vector< PerformanceInsightsReferenceData > &&value)
PerformanceInsightsMetricsDetail & AddStatsAtAnomaly(const PerformanceInsightsStat &value)
PerformanceInsightsMetricsDetail & AddReferenceData(const PerformanceInsightsReferenceData &value)
PerformanceInsightsMetricsDetail & WithUnit(Aws::String &&value)
PerformanceInsightsMetricsDetail & WithStatsAtBaseline(Aws::Vector< PerformanceInsightsStat > &&value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReferenceData(Aws::Vector< PerformanceInsightsReferenceData > &&value)
void SetReferenceData(const Aws::Vector< PerformanceInsightsReferenceData > &value)
PerformanceInsightsMetricsDetail & WithMetricDisplayName(Aws::String &&value)
PerformanceInsightsMetricsDetail & WithMetricDisplayName(const char *value)
AWS_DEVOPSGURU_API PerformanceInsightsMetricsDetail(Aws::Utils::Json::JsonView jsonValue)
PerformanceInsightsMetricsDetail & WithUnit(const char *value)
PerformanceInsightsMetricsDetail & AddReferenceData(PerformanceInsightsReferenceData &&value)
void SetMetricQuery(const PerformanceInsightsMetricQuery &value)
PerformanceInsightsMetricsDetail & WithStatsAtAnomaly(Aws::Vector< PerformanceInsightsStat > &&value)
PerformanceInsightsMetricsDetail & WithUnit(const Aws::String &value)
void SetStatsAtBaseline(const Aws::Vector< PerformanceInsightsStat > &value)
PerformanceInsightsMetricsDetail & AddStatsAtBaseline(const PerformanceInsightsStat &value)
void SetStatsAtBaseline(Aws::Vector< PerformanceInsightsStat > &&value)
const Aws::Vector< PerformanceInsightsReferenceData > & GetReferenceData() const
PerformanceInsightsMetricsDetail & WithStatsAtAnomaly(const Aws::Vector< PerformanceInsightsStat > &value)
PerformanceInsightsMetricsDetail & AddStatsAtAnomaly(PerformanceInsightsStat &&value)
PerformanceInsightsMetricsDetail & WithStatsAtBaseline(const Aws::Vector< PerformanceInsightsStat > &value)
void SetStatsAtAnomaly(const Aws::Vector< PerformanceInsightsStat > &value)
PerformanceInsightsMetricsDetail & WithMetricQuery(const PerformanceInsightsMetricQuery &value)
PerformanceInsightsMetricsDetail & WithMetricDisplayName(const Aws::String &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