AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SegmentDimensions.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/SegmentBehaviors.h>
10#include <aws/pinpoint/model/SegmentDemographics.h>
11#include <aws/pinpoint/model/SegmentLocation.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/pinpoint/model/AttributeDimension.h>
14#include <aws/pinpoint/model/MetricDimension.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Pinpoint
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_PINPOINT_API SegmentDimensions();
41 AWS_PINPOINT_API SegmentDimensions(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::Map<Aws::String, AttributeDimension>& GetAttributes() const{ return m_attributes; }
51 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
52 inline void SetAttributes(const Aws::Map<Aws::String, AttributeDimension>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
53 inline void SetAttributes(Aws::Map<Aws::String, AttributeDimension>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
56 inline SegmentDimensions& AddAttributes(const Aws::String& key, const AttributeDimension& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
57 inline SegmentDimensions& AddAttributes(Aws::String&& key, const AttributeDimension& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
58 inline SegmentDimensions& AddAttributes(const Aws::String& key, AttributeDimension&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
59 inline SegmentDimensions& AddAttributes(Aws::String&& key, AttributeDimension&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
60 inline SegmentDimensions& AddAttributes(const char* key, AttributeDimension&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
61 inline SegmentDimensions& AddAttributes(const char* key, const AttributeDimension& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
63
65
69 inline const SegmentBehaviors& GetBehavior() const{ return m_behavior; }
70 inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
71 inline void SetBehavior(const SegmentBehaviors& value) { m_behaviorHasBeenSet = true; m_behavior = value; }
72 inline void SetBehavior(SegmentBehaviors&& value) { m_behaviorHasBeenSet = true; m_behavior = std::move(value); }
73 inline SegmentDimensions& WithBehavior(const SegmentBehaviors& value) { SetBehavior(value); return *this;}
74 inline SegmentDimensions& WithBehavior(SegmentBehaviors&& value) { SetBehavior(std::move(value)); return *this;}
76
78
81 inline const SegmentDemographics& GetDemographic() const{ return m_demographic; }
82 inline bool DemographicHasBeenSet() const { return m_demographicHasBeenSet; }
83 inline void SetDemographic(const SegmentDemographics& value) { m_demographicHasBeenSet = true; m_demographic = value; }
84 inline void SetDemographic(SegmentDemographics&& value) { m_demographicHasBeenSet = true; m_demographic = std::move(value); }
85 inline SegmentDimensions& WithDemographic(const SegmentDemographics& value) { SetDemographic(value); return *this;}
86 inline SegmentDimensions& WithDemographic(SegmentDemographics&& value) { SetDemographic(std::move(value)); return *this;}
88
90
94 inline const SegmentLocation& GetLocation() const{ return m_location; }
95 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
96 inline void SetLocation(const SegmentLocation& value) { m_locationHasBeenSet = true; m_location = value; }
97 inline void SetLocation(SegmentLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
98 inline SegmentDimensions& WithLocation(const SegmentLocation& value) { SetLocation(value); return *this;}
99 inline SegmentDimensions& WithLocation(SegmentLocation&& value) { SetLocation(std::move(value)); return *this;}
101
103
106 inline const Aws::Map<Aws::String, MetricDimension>& GetMetrics() const{ return m_metrics; }
107 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
108 inline void SetMetrics(const Aws::Map<Aws::String, MetricDimension>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
109 inline void SetMetrics(Aws::Map<Aws::String, MetricDimension>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
111 inline SegmentDimensions& WithMetrics(Aws::Map<Aws::String, MetricDimension>&& value) { SetMetrics(std::move(value)); return *this;}
112 inline SegmentDimensions& AddMetrics(const Aws::String& key, const MetricDimension& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
113 inline SegmentDimensions& AddMetrics(Aws::String&& key, const MetricDimension& value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), value); return *this; }
114 inline SegmentDimensions& AddMetrics(const Aws::String& key, MetricDimension&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, std::move(value)); return *this; }
115 inline SegmentDimensions& AddMetrics(Aws::String&& key, MetricDimension&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), std::move(value)); return *this; }
116 inline SegmentDimensions& AddMetrics(const char* key, MetricDimension&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, std::move(value)); return *this; }
117 inline SegmentDimensions& AddMetrics(const char* key, const MetricDimension& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
119
121
124 inline const Aws::Map<Aws::String, AttributeDimension>& GetUserAttributes() const{ return m_userAttributes; }
125 inline bool UserAttributesHasBeenSet() const { return m_userAttributesHasBeenSet; }
126 inline void SetUserAttributes(const Aws::Map<Aws::String, AttributeDimension>& value) { m_userAttributesHasBeenSet = true; m_userAttributes = value; }
127 inline void SetUserAttributes(Aws::Map<Aws::String, AttributeDimension>&& value) { m_userAttributesHasBeenSet = true; m_userAttributes = std::move(value); }
130 inline SegmentDimensions& AddUserAttributes(const Aws::String& key, const AttributeDimension& value) { m_userAttributesHasBeenSet = true; m_userAttributes.emplace(key, value); return *this; }
131 inline SegmentDimensions& AddUserAttributes(Aws::String&& key, const AttributeDimension& value) { m_userAttributesHasBeenSet = true; m_userAttributes.emplace(std::move(key), value); return *this; }
132 inline SegmentDimensions& AddUserAttributes(const Aws::String& key, AttributeDimension&& value) { m_userAttributesHasBeenSet = true; m_userAttributes.emplace(key, std::move(value)); return *this; }
133 inline SegmentDimensions& AddUserAttributes(Aws::String&& key, AttributeDimension&& value) { m_userAttributesHasBeenSet = true; m_userAttributes.emplace(std::move(key), std::move(value)); return *this; }
134 inline SegmentDimensions& AddUserAttributes(const char* key, AttributeDimension&& value) { m_userAttributesHasBeenSet = true; m_userAttributes.emplace(key, std::move(value)); return *this; }
135 inline SegmentDimensions& AddUserAttributes(const char* key, const AttributeDimension& value) { m_userAttributesHasBeenSet = true; m_userAttributes.emplace(key, value); return *this; }
137 private:
138
140 bool m_attributesHasBeenSet = false;
141
142 SegmentBehaviors m_behavior;
143 bool m_behaviorHasBeenSet = false;
144
145 SegmentDemographics m_demographic;
146 bool m_demographicHasBeenSet = false;
147
148 SegmentLocation m_location;
149 bool m_locationHasBeenSet = false;
150
152 bool m_metricsHasBeenSet = false;
153
155 bool m_userAttributesHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace Pinpoint
160} // namespace Aws
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBehavior(SegmentBehaviors &&value)
SegmentDimensions & AddAttributes(const char *key, AttributeDimension &&value)
void SetMetrics(const Aws::Map< Aws::String, MetricDimension > &value)
SegmentDimensions & WithUserAttributes(Aws::Map< Aws::String, AttributeDimension > &&value)
SegmentDimensions & AddUserAttributes(const char *key, AttributeDimension &&value)
SegmentDimensions & WithBehavior(SegmentBehaviors &&value)
SegmentDimensions & WithAttributes(Aws::Map< Aws::String, AttributeDimension > &&value)
SegmentDimensions & AddUserAttributes(Aws::String &&key, const AttributeDimension &value)
SegmentDimensions & AddAttributes(const Aws::String &key, const AttributeDimension &value)
SegmentDimensions & WithUserAttributes(const Aws::Map< Aws::String, AttributeDimension > &value)
SegmentDimensions & WithMetrics(const Aws::Map< Aws::String, MetricDimension > &value)
SegmentDimensions & WithMetrics(Aws::Map< Aws::String, MetricDimension > &&value)
SegmentDimensions & AddMetrics(const char *key, const MetricDimension &value)
SegmentDimensions & AddMetrics(Aws::String &&key, const MetricDimension &value)
SegmentDimensions & AddUserAttributes(Aws::String &&key, AttributeDimension &&value)
const Aws::Map< Aws::String, AttributeDimension > & GetUserAttributes() const
SegmentDimensions & AddMetrics(const Aws::String &key, MetricDimension &&value)
SegmentDimensions & WithLocation(const SegmentLocation &value)
const Aws::Map< Aws::String, AttributeDimension > & GetAttributes() const
void SetUserAttributes(Aws::Map< Aws::String, AttributeDimension > &&value)
void SetMetrics(Aws::Map< Aws::String, MetricDimension > &&value)
SegmentDimensions & WithDemographic(SegmentDemographics &&value)
AWS_PINPOINT_API SegmentDimensions(Aws::Utils::Json::JsonView jsonValue)
void SetDemographic(const SegmentDemographics &value)
void SetAttributes(Aws::Map< Aws::String, AttributeDimension > &&value)
SegmentDimensions & AddAttributes(Aws::String &&key, AttributeDimension &&value)
SegmentDimensions & AddAttributes(const Aws::String &key, AttributeDimension &&value)
void SetDemographic(SegmentDemographics &&value)
SegmentDimensions & AddUserAttributes(const char *key, const AttributeDimension &value)
const SegmentDemographics & GetDemographic() const
SegmentDimensions & WithDemographic(const SegmentDemographics &value)
SegmentDimensions & AddUserAttributes(const Aws::String &key, const AttributeDimension &value)
SegmentDimensions & AddAttributes(const char *key, const AttributeDimension &value)
const SegmentBehaviors & GetBehavior() const
SegmentDimensions & AddMetrics(Aws::String &&key, MetricDimension &&value)
void SetAttributes(const Aws::Map< Aws::String, AttributeDimension > &value)
SegmentDimensions & WithAttributes(const Aws::Map< Aws::String, AttributeDimension > &value)
const SegmentLocation & GetLocation() const
void SetLocation(SegmentLocation &&value)
void SetLocation(const SegmentLocation &value)
void SetBehavior(const SegmentBehaviors &value)
SegmentDimensions & WithLocation(SegmentLocation &&value)
SegmentDimensions & AddMetrics(const char *key, MetricDimension &&value)
SegmentDimensions & WithBehavior(const SegmentBehaviors &value)
SegmentDimensions & AddMetrics(const Aws::String &key, const MetricDimension &value)
AWS_PINPOINT_API SegmentDimensions & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, MetricDimension > & GetMetrics() const
SegmentDimensions & AddAttributes(Aws::String &&key, const AttributeDimension &value)
SegmentDimensions & AddUserAttributes(const Aws::String &key, AttributeDimension &&value)
void SetUserAttributes(const Aws::Map< Aws::String, 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