AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RequestBasedServiceLevelIndicator.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/RequestBasedServiceLevelIndicatorMetric.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 RequestBasedServiceLevelIndicator() = default;
39 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const RequestBasedServiceLevelIndicatorMetric& GetRequestBasedSliMetric() const { return m_requestBasedSliMetric; }
48 inline bool RequestBasedSliMetricHasBeenSet() const { return m_requestBasedSliMetricHasBeenSet; }
49 template<typename RequestBasedSliMetricT = RequestBasedServiceLevelIndicatorMetric>
50 void SetRequestBasedSliMetric(RequestBasedSliMetricT&& value) { m_requestBasedSliMetricHasBeenSet = true; m_requestBasedSliMetric = std::forward<RequestBasedSliMetricT>(value); }
51 template<typename RequestBasedSliMetricT = RequestBasedServiceLevelIndicatorMetric>
52 RequestBasedServiceLevelIndicator& WithRequestBasedSliMetric(RequestBasedSliMetricT&& value) { SetRequestBasedSliMetric(std::forward<RequestBasedSliMetricT>(value)); return *this;}
54
56
60 inline double GetMetricThreshold() const { return m_metricThreshold; }
61 inline bool MetricThresholdHasBeenSet() const { return m_metricThresholdHasBeenSet; }
62 inline void SetMetricThreshold(double value) { m_metricThresholdHasBeenSet = true; m_metricThreshold = value; }
63 inline RequestBasedServiceLevelIndicator& WithMetricThreshold(double value) { SetMetricThreshold(value); return *this;}
65
67
71 inline ServiceLevelIndicatorComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
72 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
73 inline void SetComparisonOperator(ServiceLevelIndicatorComparisonOperator value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
76 private:
77
78 RequestBasedServiceLevelIndicatorMetric m_requestBasedSliMetric;
79 bool m_requestBasedSliMetricHasBeenSet = false;
80
81 double m_metricThreshold{0.0};
82 bool m_metricThresholdHasBeenSet = false;
83
85 bool m_comparisonOperatorHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace ApplicationSignals
90} // namespace Aws
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API RequestBasedServiceLevelIndicator & operator=(Aws::Utils::Json::JsonView jsonValue)
RequestBasedServiceLevelIndicator & WithComparisonOperator(ServiceLevelIndicatorComparisonOperator value)
AWS_APPLICATIONSIGNALS_API RequestBasedServiceLevelIndicator()=default
AWS_APPLICATIONSIGNALS_API RequestBasedServiceLevelIndicator(Aws::Utils::Json::JsonView jsonValue)
const RequestBasedServiceLevelIndicatorMetric & GetRequestBasedSliMetric() const
RequestBasedServiceLevelIndicator & WithRequestBasedSliMetric(RequestBasedSliMetricT &&value)
void SetComparisonOperator(ServiceLevelIndicatorComparisonOperator value)
Aws::Utils::Json::JsonValue JsonValue