AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ServiceLevelIndicatorMetric.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/application-signals/model/ServiceLevelIndicatorMetricType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/application-signals/model/DependencyConfig.h>
13#include <aws/application-signals/model/MetricDataQuery.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ApplicationSignals
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorMetric() = default;
41 AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorMetric(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
63 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const { return m_keyAttributes; }
64 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
65 template<typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
66 void SetKeyAttributes(KeyAttributesT&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::forward<KeyAttributesT>(value); }
67 template<typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
68 ServiceLevelIndicatorMetric& WithKeyAttributes(KeyAttributesT&& value) { SetKeyAttributes(std::forward<KeyAttributesT>(value)); return *this;}
69 template<typename KeyAttributesKeyT = Aws::String, typename KeyAttributesValueT = Aws::String>
70 ServiceLevelIndicatorMetric& AddKeyAttributes(KeyAttributesKeyT&& key, KeyAttributesValueT&& value) {
71 m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value)); return *this;
72 }
74
76
80 inline const Aws::String& GetOperationName() const { return m_operationName; }
81 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
82 template<typename OperationNameT = Aws::String>
83 void SetOperationName(OperationNameT&& value) { m_operationNameHasBeenSet = true; m_operationName = std::forward<OperationNameT>(value); }
84 template<typename OperationNameT = Aws::String>
85 ServiceLevelIndicatorMetric& WithOperationName(OperationNameT&& value) { SetOperationName(std::forward<OperationNameT>(value)); return *this;}
87
89
94 inline ServiceLevelIndicatorMetricType GetMetricType() const { return m_metricType; }
95 inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
96 inline void SetMetricType(ServiceLevelIndicatorMetricType value) { m_metricTypeHasBeenSet = true; m_metricType = value; }
99
101
106 inline const Aws::Vector<MetricDataQuery>& GetMetricDataQueries() const { return m_metricDataQueries; }
107 inline bool MetricDataQueriesHasBeenSet() const { return m_metricDataQueriesHasBeenSet; }
108 template<typename MetricDataQueriesT = Aws::Vector<MetricDataQuery>>
109 void SetMetricDataQueries(MetricDataQueriesT&& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries = std::forward<MetricDataQueriesT>(value); }
110 template<typename MetricDataQueriesT = Aws::Vector<MetricDataQuery>>
111 ServiceLevelIndicatorMetric& WithMetricDataQueries(MetricDataQueriesT&& value) { SetMetricDataQueries(std::forward<MetricDataQueriesT>(value)); return *this;}
112 template<typename MetricDataQueriesT = MetricDataQuery>
113 ServiceLevelIndicatorMetric& AddMetricDataQueries(MetricDataQueriesT&& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries.emplace_back(std::forward<MetricDataQueriesT>(value)); return *this; }
115
117
121 inline const DependencyConfig& GetDependencyConfig() const { return m_dependencyConfig; }
122 inline bool DependencyConfigHasBeenSet() const { return m_dependencyConfigHasBeenSet; }
123 template<typename DependencyConfigT = DependencyConfig>
124 void SetDependencyConfig(DependencyConfigT&& value) { m_dependencyConfigHasBeenSet = true; m_dependencyConfig = std::forward<DependencyConfigT>(value); }
125 template<typename DependencyConfigT = DependencyConfig>
126 ServiceLevelIndicatorMetric& WithDependencyConfig(DependencyConfigT&& value) { SetDependencyConfig(std::forward<DependencyConfigT>(value)); return *this;}
128 private:
129
131 bool m_keyAttributesHasBeenSet = false;
132
133 Aws::String m_operationName;
134 bool m_operationNameHasBeenSet = false;
135
137 bool m_metricTypeHasBeenSet = false;
138
139 Aws::Vector<MetricDataQuery> m_metricDataQueries;
140 bool m_metricDataQueriesHasBeenSet = false;
141
142 DependencyConfig m_dependencyConfig;
143 bool m_dependencyConfigHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace ApplicationSignals
148} // namespace Aws
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorMetric()=default
ServiceLevelIndicatorMetric & WithMetricType(ServiceLevelIndicatorMetricType value)
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
ServiceLevelIndicatorMetric & WithDependencyConfig(DependencyConfigT &&value)
ServiceLevelIndicatorMetric & WithOperationName(OperationNameT &&value)
const Aws::Vector< MetricDataQuery > & GetMetricDataQueries() const
ServiceLevelIndicatorMetric & AddMetricDataQueries(MetricDataQueriesT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorMetric(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceLevelIndicatorMetric & WithMetricDataQueries(MetricDataQueriesT &&value)
ServiceLevelIndicatorMetric & WithKeyAttributes(KeyAttributesT &&value)
ServiceLevelIndicatorMetric & AddKeyAttributes(KeyAttributesKeyT &&key, KeyAttributesValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue