AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/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 ServiceLevelIndicatorMetric();
40 AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorMetric(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
62 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const{ return m_keyAttributes; }
63 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
64 inline void SetKeyAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = value; }
65 inline void SetKeyAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::move(value); }
68 inline ServiceLevelIndicatorMetric& AddKeyAttributes(const Aws::String& key, const Aws::String& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, value); return *this; }
69 inline ServiceLevelIndicatorMetric& AddKeyAttributes(Aws::String&& key, const Aws::String& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), value); return *this; }
70 inline ServiceLevelIndicatorMetric& AddKeyAttributes(const Aws::String& key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, std::move(value)); return *this; }
71 inline ServiceLevelIndicatorMetric& AddKeyAttributes(Aws::String&& key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), std::move(value)); return *this; }
72 inline ServiceLevelIndicatorMetric& AddKeyAttributes(const char* key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, std::move(value)); return *this; }
73 inline ServiceLevelIndicatorMetric& AddKeyAttributes(Aws::String&& key, const char* value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), value); return *this; }
74 inline ServiceLevelIndicatorMetric& AddKeyAttributes(const char* key, const char* value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, value); return *this; }
76
78
82 inline const Aws::String& GetOperationName() const{ return m_operationName; }
83 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
84 inline void SetOperationName(const Aws::String& value) { m_operationNameHasBeenSet = true; m_operationName = value; }
85 inline void SetOperationName(Aws::String&& value) { m_operationNameHasBeenSet = true; m_operationName = std::move(value); }
86 inline void SetOperationName(const char* value) { m_operationNameHasBeenSet = true; m_operationName.assign(value); }
87 inline ServiceLevelIndicatorMetric& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;}
88 inline ServiceLevelIndicatorMetric& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;}
89 inline ServiceLevelIndicatorMetric& WithOperationName(const char* value) { SetOperationName(value); return *this;}
91
93
98 inline const ServiceLevelIndicatorMetricType& GetMetricType() const{ return m_metricType; }
99 inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
100 inline void SetMetricType(const ServiceLevelIndicatorMetricType& value) { m_metricTypeHasBeenSet = true; m_metricType = value; }
101 inline void SetMetricType(ServiceLevelIndicatorMetricType&& value) { m_metricTypeHasBeenSet = true; m_metricType = std::move(value); }
105
107
112 inline const Aws::Vector<MetricDataQuery>& GetMetricDataQueries() const{ return m_metricDataQueries; }
113 inline bool MetricDataQueriesHasBeenSet() const { return m_metricDataQueriesHasBeenSet; }
114 inline void SetMetricDataQueries(const Aws::Vector<MetricDataQuery>& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries = value; }
115 inline void SetMetricDataQueries(Aws::Vector<MetricDataQuery>&& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries = std::move(value); }
118 inline ServiceLevelIndicatorMetric& AddMetricDataQueries(const MetricDataQuery& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries.push_back(value); return *this; }
119 inline ServiceLevelIndicatorMetric& AddMetricDataQueries(MetricDataQuery&& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries.push_back(std::move(value)); return *this; }
121 private:
122
124 bool m_keyAttributesHasBeenSet = false;
125
126 Aws::String m_operationName;
127 bool m_operationNameHasBeenSet = false;
128
130 bool m_metricTypeHasBeenSet = false;
131
132 Aws::Vector<MetricDataQuery> m_metricDataQueries;
133 bool m_metricDataQueriesHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace ApplicationSignals
138} // namespace Aws
void SetMetricDataQueries(Aws::Vector< MetricDataQuery > &&value)
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
ServiceLevelIndicatorMetric & WithOperationName(const Aws::String &value)
void SetMetricType(const ServiceLevelIndicatorMetricType &value)
ServiceLevelIndicatorMetric & AddKeyAttributes(const char *key, const char *value)
ServiceLevelIndicatorMetric & WithKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetMetricDataQueries(const Aws::Vector< MetricDataQuery > &value)
const Aws::Vector< MetricDataQuery > & GetMetricDataQueries() const
ServiceLevelIndicatorMetric & WithKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ServiceLevelIndicatorMetric & AddKeyAttributes(const Aws::String &key, const Aws::String &value)
ServiceLevelIndicatorMetric & WithMetricDataQueries(const Aws::Vector< MetricDataQuery > &value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceLevelIndicatorMetric & WithMetricType(const ServiceLevelIndicatorMetricType &value)
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorMetric(Aws::Utils::Json::JsonView jsonValue)
ServiceLevelIndicatorMetric & AddMetricDataQueries(MetricDataQuery &&value)
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceLevelIndicatorMetric & AddMetricDataQueries(const MetricDataQuery &value)
ServiceLevelIndicatorMetric & AddKeyAttributes(const char *key, Aws::String &&value)
ServiceLevelIndicatorMetric & WithMetricDataQueries(Aws::Vector< MetricDataQuery > &&value)
ServiceLevelIndicatorMetric & WithOperationName(Aws::String &&value)
ServiceLevelIndicatorMetric & WithOperationName(const char *value)
ServiceLevelIndicatorMetric & AddKeyAttributes(Aws::String &&key, const char *value)
void SetKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ServiceLevelIndicatorMetric & AddKeyAttributes(Aws::String &&key, const Aws::String &value)
ServiceLevelIndicatorMetric & WithMetricType(ServiceLevelIndicatorMetricType &&value)
const ServiceLevelIndicatorMetricType & GetMetricType() const
ServiceLevelIndicatorMetric & AddKeyAttributes(Aws::String &&key, Aws::String &&value)
ServiceLevelIndicatorMetric & AddKeyAttributes(const 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