AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceSummary.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/application-signals/model/MetricReference.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ApplicationSignals
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_APPLICATIONSIGNALS_API ServiceSummary();
39 AWS_APPLICATIONSIGNALS_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONSIGNALS_API ServiceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
61 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const{ return m_keyAttributes; }
62 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
63 inline void SetKeyAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = value; }
64 inline void SetKeyAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::move(value); }
66 inline ServiceSummary& WithKeyAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetKeyAttributes(std::move(value)); return *this;}
67 inline ServiceSummary& AddKeyAttributes(const Aws::String& key, const Aws::String& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, value); return *this; }
68 inline ServiceSummary& AddKeyAttributes(Aws::String&& key, const Aws::String& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), value); return *this; }
69 inline ServiceSummary& AddKeyAttributes(const Aws::String& key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, std::move(value)); return *this; }
70 inline ServiceSummary& AddKeyAttributes(Aws::String&& key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), std::move(value)); return *this; }
71 inline ServiceSummary& AddKeyAttributes(const char* key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, std::move(value)); return *this; }
72 inline ServiceSummary& AddKeyAttributes(Aws::String&& key, const char* value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), value); return *this; }
73 inline ServiceSummary& AddKeyAttributes(const char* key, const char* value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, value); return *this; }
75
77
108 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetAttributeMaps() const{ return m_attributeMaps; }
109 inline bool AttributeMapsHasBeenSet() const { return m_attributeMapsHasBeenSet; }
110 inline void SetAttributeMaps(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { m_attributeMapsHasBeenSet = true; m_attributeMaps = value; }
111 inline void SetAttributeMaps(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { m_attributeMapsHasBeenSet = true; m_attributeMaps = std::move(value); }
114 inline ServiceSummary& AddAttributeMaps(const Aws::Map<Aws::String, Aws::String>& value) { m_attributeMapsHasBeenSet = true; m_attributeMaps.push_back(value); return *this; }
115 inline ServiceSummary& AddAttributeMaps(Aws::Map<Aws::String, Aws::String>&& value) { m_attributeMapsHasBeenSet = true; m_attributeMaps.push_back(std::move(value)); return *this; }
117
119
123 inline const Aws::Vector<MetricReference>& GetMetricReferences() const{ return m_metricReferences; }
124 inline bool MetricReferencesHasBeenSet() const { return m_metricReferencesHasBeenSet; }
125 inline void SetMetricReferences(const Aws::Vector<MetricReference>& value) { m_metricReferencesHasBeenSet = true; m_metricReferences = value; }
126 inline void SetMetricReferences(Aws::Vector<MetricReference>&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences = std::move(value); }
128 inline ServiceSummary& WithMetricReferences(Aws::Vector<MetricReference>&& value) { SetMetricReferences(std::move(value)); return *this;}
129 inline ServiceSummary& AddMetricReferences(const MetricReference& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.push_back(value); return *this; }
130 inline ServiceSummary& AddMetricReferences(MetricReference&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.push_back(std::move(value)); return *this; }
132 private:
133
135 bool m_keyAttributesHasBeenSet = false;
136
138 bool m_attributeMapsHasBeenSet = false;
139
140 Aws::Vector<MetricReference> m_metricReferences;
141 bool m_metricReferencesHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace ApplicationSignals
146} // namespace Aws
AWS_APPLICATIONSIGNALS_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue)
ServiceSummary & AddKeyAttributes(const char *key, const char *value)
ServiceSummary & AddKeyAttributes(const Aws::String &key, Aws::String &&value)
AWS_APPLICATIONSIGNALS_API ServiceSummary()
void SetAttributeMaps(const Aws::Vector< Aws::Map< Aws::String, Aws::String > > &value)
ServiceSummary & WithAttributeMaps(Aws::Vector< Aws::Map< Aws::String, Aws::String > > &&value)
ServiceSummary & WithMetricReferences(Aws::Vector< MetricReference > &&value)
void SetKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
ServiceSummary & AddMetricReferences(MetricReference &&value)
AWS_APPLICATIONSIGNALS_API ServiceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceSummary & WithKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ServiceSummary & AddKeyAttributes(const Aws::String &key, const Aws::String &value)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetAttributeMaps() const
ServiceSummary & WithMetricReferences(const Aws::Vector< MetricReference > &value)
ServiceSummary & WithAttributeMaps(const Aws::Vector< Aws::Map< Aws::String, Aws::String > > &value)
ServiceSummary & AddMetricReferences(const MetricReference &value)
const Aws::Vector< MetricReference > & GetMetricReferences() const
ServiceSummary & AddKeyAttributes(const char *key, Aws::String &&value)
void SetAttributeMaps(Aws::Vector< Aws::Map< Aws::String, Aws::String > > &&value)
ServiceSummary & AddKeyAttributes(Aws::String &&key, const Aws::String &value)
void SetMetricReferences(const Aws::Vector< MetricReference > &value)
ServiceSummary & WithKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
ServiceSummary & AddKeyAttributes(Aws::String &&key, const char *value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetricReferences(Aws::Vector< MetricReference > &&value)
ServiceSummary & AddKeyAttributes(Aws::String &&key, Aws::String &&value)
void SetKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
ServiceSummary & AddAttributeMaps(Aws::Map< Aws::String, Aws::String > &&value)
ServiceSummary & AddAttributeMaps(const Aws::Map< Aws::String, 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