AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServiceLevelIndicatorConfig.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/ServiceLevelIndicatorMetricConfig.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
31 public:
32 AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorConfig() = default;
33 AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const ServiceLevelIndicatorMetricConfig& GetSliMetricConfig() const { return m_sliMetricConfig; }
42 inline bool SliMetricConfigHasBeenSet() const { return m_sliMetricConfigHasBeenSet; }
43 template <typename SliMetricConfigT = ServiceLevelIndicatorMetricConfig>
44 void SetSliMetricConfig(SliMetricConfigT&& value) {
45 m_sliMetricConfigHasBeenSet = true;
46 m_sliMetricConfig = std::forward<SliMetricConfigT>(value);
47 }
48 template <typename SliMetricConfigT = ServiceLevelIndicatorMetricConfig>
50 SetSliMetricConfig(std::forward<SliMetricConfigT>(value));
51 return *this;
52 }
54
56
61 inline double GetMetricThreshold() const { return m_metricThreshold; }
62 inline bool MetricThresholdHasBeenSet() const { return m_metricThresholdHasBeenSet; }
63 inline void SetMetricThreshold(double value) {
64 m_metricThresholdHasBeenSet = true;
65 m_metricThreshold = value;
66 }
68 SetMetricThreshold(value);
69 return *this;
70 }
72
74
78 inline ServiceLevelIndicatorComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
79 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
81 m_comparisonOperatorHasBeenSet = true;
82 m_comparisonOperator = value;
83 }
86 return *this;
87 }
89 private:
90 ServiceLevelIndicatorMetricConfig m_sliMetricConfig;
91
92 double m_metricThreshold{0.0};
93
95 bool m_sliMetricConfigHasBeenSet = false;
96 bool m_metricThresholdHasBeenSet = false;
97 bool m_comparisonOperatorHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace ApplicationSignals
102} // namespace Aws
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorConfig(Aws::Utils::Json::JsonView jsonValue)
ServiceLevelIndicatorConfig & WithSliMetricConfig(SliMetricConfigT &&value)
const ServiceLevelIndicatorMetricConfig & GetSliMetricConfig() const
ServiceLevelIndicatorComparisonOperator GetComparisonOperator() const
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComparisonOperator(ServiceLevelIndicatorComparisonOperator value)
ServiceLevelIndicatorConfig & WithComparisonOperator(ServiceLevelIndicatorComparisonOperator value)
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorConfig()=default
Aws::Utils::Json::JsonValue JsonValue