AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventDimensions.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/pinpoint/model/SetDimension.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/pinpoint/model/AttributeDimension.h>
12#include <aws/pinpoint/model/MetricDimension.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 Pinpoint
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_PINPOINT_API EventDimensions();
40 AWS_PINPOINT_API EventDimensions(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::Map<Aws::String, AttributeDimension>& GetAttributes() const{ return m_attributes; }
52 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
53 inline void SetAttributes(const Aws::Map<Aws::String, AttributeDimension>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
54 inline void SetAttributes(Aws::Map<Aws::String, AttributeDimension>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
57 inline EventDimensions& AddAttributes(const Aws::String& key, const AttributeDimension& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
58 inline EventDimensions& AddAttributes(Aws::String&& key, const AttributeDimension& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
59 inline EventDimensions& AddAttributes(const Aws::String& key, AttributeDimension&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
60 inline EventDimensions& AddAttributes(Aws::String&& key, AttributeDimension&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
61 inline EventDimensions& AddAttributes(const char* key, AttributeDimension&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
62 inline EventDimensions& AddAttributes(const char* key, const AttributeDimension& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
64
66
75 inline const SetDimension& GetEventType() const{ return m_eventType; }
76 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
77 inline void SetEventType(const SetDimension& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
78 inline void SetEventType(SetDimension&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
79 inline EventDimensions& WithEventType(const SetDimension& value) { SetEventType(value); return *this;}
80 inline EventDimensions& WithEventType(SetDimension&& value) { SetEventType(std::move(value)); return *this;}
82
84
89 inline const Aws::Map<Aws::String, MetricDimension>& GetMetrics() const{ return m_metrics; }
90 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
91 inline void SetMetrics(const Aws::Map<Aws::String, MetricDimension>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
92 inline void SetMetrics(Aws::Map<Aws::String, MetricDimension>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
94 inline EventDimensions& WithMetrics(Aws::Map<Aws::String, MetricDimension>&& value) { SetMetrics(std::move(value)); return *this;}
95 inline EventDimensions& AddMetrics(const Aws::String& key, const MetricDimension& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
96 inline EventDimensions& AddMetrics(Aws::String&& key, const MetricDimension& value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), value); return *this; }
97 inline EventDimensions& AddMetrics(const Aws::String& key, MetricDimension&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, std::move(value)); return *this; }
98 inline EventDimensions& AddMetrics(Aws::String&& key, MetricDimension&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), std::move(value)); return *this; }
99 inline EventDimensions& AddMetrics(const char* key, MetricDimension&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, std::move(value)); return *this; }
100 inline EventDimensions& AddMetrics(const char* key, const MetricDimension& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
102 private:
103
105 bool m_attributesHasBeenSet = false;
106
107 SetDimension m_eventType;
108 bool m_eventTypeHasBeenSet = false;
109
111 bool m_metricsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Pinpoint
116} // namespace Aws
EventDimensions & AddMetrics(const Aws::String &key, const MetricDimension &value)
EventDimensions & AddAttributes(Aws::String &&key, AttributeDimension &&value)
EventDimensions & AddMetrics(Aws::String &&key, const MetricDimension &value)
AWS_PINPOINT_API EventDimensions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
EventDimensions & WithEventType(const SetDimension &value)
void SetAttributes(Aws::Map< Aws::String, AttributeDimension > &&value)
const Aws::Map< Aws::String, AttributeDimension > & GetAttributes() const
EventDimensions & WithMetrics(const Aws::Map< Aws::String, MetricDimension > &value)
EventDimensions & WithMetrics(Aws::Map< Aws::String, MetricDimension > &&value)
EventDimensions & AddAttributes(const char *key, AttributeDimension &&value)
EventDimensions & AddMetrics(const char *key, const MetricDimension &value)
void SetAttributes(const Aws::Map< Aws::String, AttributeDimension > &value)
EventDimensions & AddAttributes(const Aws::String &key, const AttributeDimension &value)
EventDimensions & WithAttributes(Aws::Map< Aws::String, AttributeDimension > &&value)
EventDimensions & WithEventType(SetDimension &&value)
AWS_PINPOINT_API EventDimensions(Aws::Utils::Json::JsonView jsonValue)
EventDimensions & WithAttributes(const Aws::Map< Aws::String, AttributeDimension > &value)
EventDimensions & AddAttributes(const Aws::String &key, AttributeDimension &&value)
EventDimensions & AddAttributes(Aws::String &&key, const AttributeDimension &value)
const SetDimension & GetEventType() const
void SetEventType(SetDimension &&value)
EventDimensions & AddMetrics(const char *key, MetricDimension &&value)
void SetMetrics(const Aws::Map< Aws::String, MetricDimension > &value)
const Aws::Map< Aws::String, MetricDimension > & GetMetrics() const
EventDimensions & AddMetrics(Aws::String &&key, MetricDimension &&value)
void SetMetrics(Aws::Map< Aws::String, MetricDimension > &&value)
void SetEventType(const SetDimension &value)
EventDimensions & AddMetrics(const Aws::String &key, MetricDimension &&value)
EventDimensions & AddAttributes(const char *key, const AttributeDimension &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
Aws::Utils::Json::JsonValue JsonValue