AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ServiceLevelIndicatorConfig.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/ServiceLevelIndicatorMetricConfig.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
35 {
36 public:
37 AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorConfig() = default;
38 AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorConfig(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const ServiceLevelIndicatorMetricConfig& GetSliMetricConfig() const { return m_sliMetricConfig; }
48 inline bool SliMetricConfigHasBeenSet() const { return m_sliMetricConfigHasBeenSet; }
49 template<typename SliMetricConfigT = ServiceLevelIndicatorMetricConfig>
50 void SetSliMetricConfig(SliMetricConfigT&& value) { m_sliMetricConfigHasBeenSet = true; m_sliMetricConfig = std::forward<SliMetricConfigT>(value); }
51 template<typename SliMetricConfigT = ServiceLevelIndicatorMetricConfig>
52 ServiceLevelIndicatorConfig& WithSliMetricConfig(SliMetricConfigT&& value) { SetSliMetricConfig(std::forward<SliMetricConfigT>(value)); return *this;}
54
56
61 inline double GetMetricThreshold() const { return m_metricThreshold; }
62 inline bool MetricThresholdHasBeenSet() const { return m_metricThresholdHasBeenSet; }
63 inline void SetMetricThreshold(double value) { m_metricThresholdHasBeenSet = true; m_metricThreshold = value; }
64 inline ServiceLevelIndicatorConfig& WithMetricThreshold(double value) { SetMetricThreshold(value); return *this;}
66
68
72 inline ServiceLevelIndicatorComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
73 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
74 inline void SetComparisonOperator(ServiceLevelIndicatorComparisonOperator value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
77 private:
78
79 ServiceLevelIndicatorMetricConfig m_sliMetricConfig;
80 bool m_sliMetricConfigHasBeenSet = false;
81
82 double m_metricThreshold{0.0};
83 bool m_metricThresholdHasBeenSet = false;
84
86 bool m_comparisonOperatorHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace ApplicationSignals
91} // 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