AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ServiceLevelIndicator.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/ServiceLevelIndicatorMetric.h>
9#include <aws/application-signals/model/ServiceLevelIndicatorComparisonOperator.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 ApplicationSignals
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPLICATIONSIGNALS_API ServiceLevelIndicator() = default;
37 AWS_APPLICATIONSIGNALS_API ServiceLevelIndicator(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONSIGNALS_API ServiceLevelIndicator& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const ServiceLevelIndicatorMetric& GetSliMetric() const { return m_sliMetric; }
48 inline bool SliMetricHasBeenSet() const { return m_sliMetricHasBeenSet; }
49 template<typename SliMetricT = ServiceLevelIndicatorMetric>
50 void SetSliMetric(SliMetricT&& value) { m_sliMetricHasBeenSet = true; m_sliMetric = std::forward<SliMetricT>(value); }
51 template<typename SliMetricT = ServiceLevelIndicatorMetric>
52 ServiceLevelIndicator& WithSliMetric(SliMetricT&& value) { SetSliMetric(std::forward<SliMetricT>(value)); return *this;}
54
56
59 inline double GetMetricThreshold() const { return m_metricThreshold; }
60 inline bool MetricThresholdHasBeenSet() const { return m_metricThresholdHasBeenSet; }
61 inline void SetMetricThreshold(double value) { m_metricThresholdHasBeenSet = true; m_metricThreshold = value; }
62 inline ServiceLevelIndicator& WithMetricThreshold(double value) { SetMetricThreshold(value); return *this;}
64
66
70 inline ServiceLevelIndicatorComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
71 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
72 inline void SetComparisonOperator(ServiceLevelIndicatorComparisonOperator value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
75 private:
76
78 bool m_sliMetricHasBeenSet = false;
79
80 double m_metricThreshold{0.0};
81 bool m_metricThresholdHasBeenSet = false;
82
84 bool m_comparisonOperatorHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace ApplicationSignals
89} // namespace Aws
const ServiceLevelIndicatorMetric & GetSliMetric() const
ServiceLevelIndicator & WithSliMetric(SliMetricT &&value)
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicator(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicator & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceLevelIndicator & WithComparisonOperator(ServiceLevelIndicatorComparisonOperator value)
void SetComparisonOperator(ServiceLevelIndicatorComparisonOperator value)
ServiceLevelIndicator & WithMetricThreshold(double value)
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicator()=default
ServiceLevelIndicatorComparisonOperator GetComparisonOperator() const
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue