AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceLevelIndicatorMetricConfig.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/MetricDataQuery.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ApplicationSignals
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorMetricConfig();
42 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
65 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const{ return m_keyAttributes; }
66 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
67 inline void SetKeyAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = value; }
68 inline void SetKeyAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::move(value); }
71 inline ServiceLevelIndicatorMetricConfig& AddKeyAttributes(const Aws::String& key, const Aws::String& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, value); return *this; }
72 inline ServiceLevelIndicatorMetricConfig& AddKeyAttributes(Aws::String&& key, const Aws::String& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), value); return *this; }
73 inline ServiceLevelIndicatorMetricConfig& AddKeyAttributes(const Aws::String& key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, std::move(value)); return *this; }
74 inline ServiceLevelIndicatorMetricConfig& AddKeyAttributes(Aws::String&& key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), std::move(value)); return *this; }
75 inline ServiceLevelIndicatorMetricConfig& AddKeyAttributes(const char* key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, std::move(value)); return *this; }
76 inline ServiceLevelIndicatorMetricConfig& AddKeyAttributes(Aws::String&& key, const char* value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), value); return *this; }
77 inline ServiceLevelIndicatorMetricConfig& AddKeyAttributes(const char* key, const char* value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, value); return *this; }
79
81
85 inline const Aws::String& GetOperationName() const{ return m_operationName; }
86 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
87 inline void SetOperationName(const Aws::String& value) { m_operationNameHasBeenSet = true; m_operationName = value; }
88 inline void SetOperationName(Aws::String&& value) { m_operationNameHasBeenSet = true; m_operationName = std::move(value); }
89 inline void SetOperationName(const char* value) { m_operationNameHasBeenSet = true; m_operationName.assign(value); }
91 inline ServiceLevelIndicatorMetricConfig& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;}
92 inline ServiceLevelIndicatorMetricConfig& WithOperationName(const char* value) { SetOperationName(value); return *this;}
94
96
101 inline const ServiceLevelIndicatorMetricType& GetMetricType() const{ return m_metricType; }
102 inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
103 inline void SetMetricType(const ServiceLevelIndicatorMetricType& value) { m_metricTypeHasBeenSet = true; m_metricType = value; }
104 inline void SetMetricType(ServiceLevelIndicatorMetricType&& value) { m_metricTypeHasBeenSet = true; m_metricType = std::move(value); }
108
110
117 inline const Aws::String& GetStatistic() const{ return m_statistic; }
118 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
119 inline void SetStatistic(const Aws::String& value) { m_statisticHasBeenSet = true; m_statistic = value; }
120 inline void SetStatistic(Aws::String&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
121 inline void SetStatistic(const char* value) { m_statisticHasBeenSet = true; m_statistic.assign(value); }
122 inline ServiceLevelIndicatorMetricConfig& WithStatistic(const Aws::String& value) { SetStatistic(value); return *this;}
123 inline ServiceLevelIndicatorMetricConfig& WithStatistic(Aws::String&& value) { SetStatistic(std::move(value)); return *this;}
124 inline ServiceLevelIndicatorMetricConfig& WithStatistic(const char* value) { SetStatistic(value); return *this;}
126
128
134 inline int GetPeriodSeconds() const{ return m_periodSeconds; }
135 inline bool PeriodSecondsHasBeenSet() const { return m_periodSecondsHasBeenSet; }
136 inline void SetPeriodSeconds(int value) { m_periodSecondsHasBeenSet = true; m_periodSeconds = value; }
137 inline ServiceLevelIndicatorMetricConfig& WithPeriodSeconds(int value) { SetPeriodSeconds(value); return *this;}
139
141
145 inline const Aws::Vector<MetricDataQuery>& GetMetricDataQueries() const{ return m_metricDataQueries; }
146 inline bool MetricDataQueriesHasBeenSet() const { return m_metricDataQueriesHasBeenSet; }
147 inline void SetMetricDataQueries(const Aws::Vector<MetricDataQuery>& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries = value; }
148 inline void SetMetricDataQueries(Aws::Vector<MetricDataQuery>&& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries = std::move(value); }
151 inline ServiceLevelIndicatorMetricConfig& AddMetricDataQueries(const MetricDataQuery& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries.push_back(value); return *this; }
152 inline ServiceLevelIndicatorMetricConfig& AddMetricDataQueries(MetricDataQuery&& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries.push_back(std::move(value)); return *this; }
154 private:
155
157 bool m_keyAttributesHasBeenSet = false;
158
159 Aws::String m_operationName;
160 bool m_operationNameHasBeenSet = false;
161
163 bool m_metricTypeHasBeenSet = false;
164
165 Aws::String m_statistic;
166 bool m_statisticHasBeenSet = false;
167
168 int m_periodSeconds;
169 bool m_periodSecondsHasBeenSet = false;
170
171 Aws::Vector<MetricDataQuery> m_metricDataQueries;
172 bool m_metricDataQueriesHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace ApplicationSignals
177} // namespace Aws
ServiceLevelIndicatorMetricConfig & AddKeyAttributes(const Aws::String &key, const Aws::String &value)
ServiceLevelIndicatorMetricConfig & WithMetricType(ServiceLevelIndicatorMetricType &&value)
ServiceLevelIndicatorMetricConfig & WithMetricDataQueries(const Aws::Vector< MetricDataQuery > &value)
ServiceLevelIndicatorMetricConfig & AddKeyAttributes(Aws::String &&key, const char *value)
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorMetricConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorMetricConfig(Aws::Utils::Json::JsonView jsonValue)
void SetKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ServiceLevelIndicatorMetricConfig & WithOperationName(Aws::String &&value)
ServiceLevelIndicatorMetricConfig & WithStatistic(const Aws::String &value)
ServiceLevelIndicatorMetricConfig & WithOperationName(const char *value)
ServiceLevelIndicatorMetricConfig & AddKeyAttributes(Aws::String &&key, const Aws::String &value)
ServiceLevelIndicatorMetricConfig & WithStatistic(Aws::String &&value)
ServiceLevelIndicatorMetricConfig & WithKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
ServiceLevelIndicatorMetricConfig & AddMetricDataQueries(MetricDataQuery &&value)
ServiceLevelIndicatorMetricConfig & WithOperationName(const Aws::String &value)
ServiceLevelIndicatorMetricConfig & AddMetricDataQueries(const MetricDataQuery &value)
ServiceLevelIndicatorMetricConfig & WithKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ServiceLevelIndicatorMetricConfig & WithMetricDataQueries(Aws::Vector< MetricDataQuery > &&value)
ServiceLevelIndicatorMetricConfig & AddKeyAttributes(const char *key, Aws::String &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceLevelIndicatorMetricConfig & AddKeyAttributes(const char *key, const char *value)
ServiceLevelIndicatorMetricConfig & AddKeyAttributes(const Aws::String &key, Aws::String &&value)
ServiceLevelIndicatorMetricConfig & WithMetricType(const ServiceLevelIndicatorMetricType &value)
ServiceLevelIndicatorMetricConfig & AddKeyAttributes(Aws::String &&key, Aws::String &&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