AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSliMetric(const ServiceLevelIndicatorMetric& value) { m_sliMetricHasBeenSet = true; m_sliMetric = value; }
50 inline void SetSliMetric(ServiceLevelIndicatorMetric&& value) { m_sliMetricHasBeenSet = true; m_sliMetric = std::move(value); }
51 inline ServiceLevelIndicator& WithSliMetric(const ServiceLevelIndicatorMetric& value) { SetSliMetric(value); return *this;}
52 inline ServiceLevelIndicator& WithSliMetric(ServiceLevelIndicatorMetric&& value) { SetSliMetric(std::move(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 const ServiceLevelIndicatorComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
71 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
72 inline void SetComparisonOperator(const ServiceLevelIndicatorComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
73 inline void SetComparisonOperator(ServiceLevelIndicatorComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
77 private:
78
80 bool m_sliMetricHasBeenSet = false;
81
82 double m_metricThreshold;
83 bool m_metricThresholdHasBeenSet = false;
84
85 ServiceLevelIndicatorComparisonOperator m_comparisonOperator;
86 bool m_comparisonOperatorHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace ApplicationSignals
91} // namespace Aws
void SetSliMetric(const ServiceLevelIndicatorMetric &value)
const ServiceLevelIndicatorMetric & GetSliMetric() const
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicator(Aws::Utils::Json::JsonView jsonValue)
ServiceLevelIndicator & WithSliMetric(const ServiceLevelIndicatorMetric &value)
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicator & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComparisonOperator(const ServiceLevelIndicatorComparisonOperator &value)
ServiceLevelIndicator & WithSliMetric(ServiceLevelIndicatorMetric &&value)
void SetComparisonOperator(ServiceLevelIndicatorComparisonOperator &&value)
const ServiceLevelIndicatorComparisonOperator & GetComparisonOperator() const
ServiceLevelIndicator & WithComparisonOperator(const ServiceLevelIndicatorComparisonOperator &value)
ServiceLevelIndicator & WithMetricThreshold(double value)
void SetSliMetric(ServiceLevelIndicatorMetric &&value)
ServiceLevelIndicator & WithComparisonOperator(ServiceLevelIndicatorComparisonOperator &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue