AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServiceLevelIndicator.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/ServiceLevelIndicatorComparisonOperator.h>
9#include <aws/application-signals/model/ServiceLevelIndicatorMetric.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationSignals {
21namespace Model {
22
30 public:
31 AWS_APPLICATIONSIGNALS_API ServiceLevelIndicator() = default;
32 AWS_APPLICATIONSIGNALS_API ServiceLevelIndicator(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONSIGNALS_API ServiceLevelIndicator& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const ServiceLevelIndicatorMetric& GetSliMetric() const { return m_sliMetric; }
42 inline bool SliMetricHasBeenSet() const { return m_sliMetricHasBeenSet; }
43 template <typename SliMetricT = ServiceLevelIndicatorMetric>
44 void SetSliMetric(SliMetricT&& value) {
45 m_sliMetricHasBeenSet = true;
46 m_sliMetric = std::forward<SliMetricT>(value);
47 }
48 template <typename SliMetricT = ServiceLevelIndicatorMetric>
49 ServiceLevelIndicator& WithSliMetric(SliMetricT&& value) {
50 SetSliMetric(std::forward<SliMetricT>(value));
51 return *this;
52 }
54
56
59 inline double GetMetricThreshold() const { return m_metricThreshold; }
60 inline bool MetricThresholdHasBeenSet() const { return m_metricThresholdHasBeenSet; }
61 inline void SetMetricThreshold(double value) {
62 m_metricThresholdHasBeenSet = true;
63 m_metricThreshold = value;
64 }
66 SetMetricThreshold(value);
67 return *this;
68 }
70
72
76 inline ServiceLevelIndicatorComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
77 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
79 m_comparisonOperatorHasBeenSet = true;
80 m_comparisonOperator = value;
81 }
84 return *this;
85 }
87 private:
89
90 double m_metricThreshold{0.0};
91
93 bool m_sliMetricHasBeenSet = false;
94 bool m_metricThresholdHasBeenSet = false;
95 bool m_comparisonOperatorHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace ApplicationSignals
100} // 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