AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename AttributesT = Aws::Map<Aws::String, AttributeDimension>>
54 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
55 template<typename AttributesT = Aws::Map<Aws::String, AttributeDimension>>
56 EventDimensions& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
57 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = AttributeDimension>
58 EventDimensions& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
59 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
60 }
62
64
73 inline const SetDimension& GetEventType() const { return m_eventType; }
74 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
75 template<typename EventTypeT = SetDimension>
76 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
77 template<typename EventTypeT = SetDimension>
78 EventDimensions& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
80
82
87 inline const Aws::Map<Aws::String, MetricDimension>& GetMetrics() const { return m_metrics; }
88 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
89 template<typename MetricsT = Aws::Map<Aws::String, MetricDimension>>
90 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
91 template<typename MetricsT = Aws::Map<Aws::String, MetricDimension>>
92 EventDimensions& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
93 template<typename MetricsKeyT = Aws::String, typename MetricsValueT = MetricDimension>
94 EventDimensions& AddMetrics(MetricsKeyT&& key, MetricsValueT&& value) {
95 m_metricsHasBeenSet = true; m_metrics.emplace(std::forward<MetricsKeyT>(key), std::forward<MetricsValueT>(value)); return *this;
96 }
98 private:
99
101 bool m_attributesHasBeenSet = false;
102
103 SetDimension m_eventType;
104 bool m_eventTypeHasBeenSet = false;
105
107 bool m_metricsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Pinpoint
112} // namespace Aws
EventDimensions & WithAttributes(AttributesT &&value)
AWS_PINPOINT_API EventDimensions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
EventDimensions & AddMetrics(MetricsKeyT &&key, MetricsValueT &&value)
const Aws::Map< Aws::String, AttributeDimension > & GetAttributes() const
AWS_PINPOINT_API EventDimensions(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API EventDimensions()=default
EventDimensions & WithEventType(EventTypeT &&value)
const SetDimension & GetEventType() const
void SetAttributes(AttributesT &&value)
EventDimensions & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
const Aws::Map< Aws::String, MetricDimension > & GetMetrics() const
EventDimensions & WithMetrics(MetricsT &&value)
void SetEventType(EventTypeT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue