AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
SegmentDemographics.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/SetDimension.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Pinpoint {
20namespace Model {
21
30 public:
31 AWS_PINPOINT_API SegmentDemographics() = default;
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const SetDimension& GetAppVersion() const { return m_appVersion; }
41 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
42 template <typename AppVersionT = SetDimension>
43 void SetAppVersion(AppVersionT&& value) {
44 m_appVersionHasBeenSet = true;
45 m_appVersion = std::forward<AppVersionT>(value);
46 }
47 template <typename AppVersionT = SetDimension>
48 SegmentDemographics& WithAppVersion(AppVersionT&& value) {
49 SetAppVersion(std::forward<AppVersionT>(value));
50 return *this;
51 }
53
55
58 inline const SetDimension& GetChannel() const { return m_channel; }
59 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
60 template <typename ChannelT = SetDimension>
61 void SetChannel(ChannelT&& value) {
62 m_channelHasBeenSet = true;
63 m_channel = std::forward<ChannelT>(value);
64 }
65 template <typename ChannelT = SetDimension>
66 SegmentDemographics& WithChannel(ChannelT&& value) {
67 SetChannel(std::forward<ChannelT>(value));
68 return *this;
69 }
71
73
76 inline const SetDimension& GetDeviceType() const { return m_deviceType; }
77 inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; }
78 template <typename DeviceTypeT = SetDimension>
79 void SetDeviceType(DeviceTypeT&& value) {
80 m_deviceTypeHasBeenSet = true;
81 m_deviceType = std::forward<DeviceTypeT>(value);
82 }
83 template <typename DeviceTypeT = SetDimension>
84 SegmentDemographics& WithDeviceType(DeviceTypeT&& value) {
85 SetDeviceType(std::forward<DeviceTypeT>(value));
86 return *this;
87 }
89
91
94 inline const SetDimension& GetMake() const { return m_make; }
95 inline bool MakeHasBeenSet() const { return m_makeHasBeenSet; }
96 template <typename MakeT = SetDimension>
97 void SetMake(MakeT&& value) {
98 m_makeHasBeenSet = true;
99 m_make = std::forward<MakeT>(value);
100 }
101 template <typename MakeT = SetDimension>
103 SetMake(std::forward<MakeT>(value));
104 return *this;
105 }
107
109
112 inline const SetDimension& GetModel() const { return m_model; }
113 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
114 template <typename ModelT = SetDimension>
115 void SetModel(ModelT&& value) {
116 m_modelHasBeenSet = true;
117 m_model = std::forward<ModelT>(value);
118 }
119 template <typename ModelT = SetDimension>
121 SetModel(std::forward<ModelT>(value));
122 return *this;
123 }
125
127
130 inline const SetDimension& GetPlatform() const { return m_platform; }
131 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
132 template <typename PlatformT = SetDimension>
133 void SetPlatform(PlatformT&& value) {
134 m_platformHasBeenSet = true;
135 m_platform = std::forward<PlatformT>(value);
136 }
137 template <typename PlatformT = SetDimension>
138 SegmentDemographics& WithPlatform(PlatformT&& value) {
139 SetPlatform(std::forward<PlatformT>(value));
140 return *this;
141 }
143 private:
144 SetDimension m_appVersion;
145 bool m_appVersionHasBeenSet = false;
146
147 SetDimension m_channel;
148 bool m_channelHasBeenSet = false;
149
150 SetDimension m_deviceType;
151 bool m_deviceTypeHasBeenSet = false;
152
153 SetDimension m_make;
154 bool m_makeHasBeenSet = false;
155
156 SetDimension m_model;
157 bool m_modelHasBeenSet = false;
158
159 SetDimension m_platform;
160 bool m_platformHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace Pinpoint
165} // namespace Aws
SegmentDemographics & WithChannel(ChannelT &&value)
SegmentDemographics & WithModel(ModelT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API SegmentDemographics(Aws::Utils::Json::JsonView jsonValue)
SegmentDemographics & WithDeviceType(DeviceTypeT &&value)
SegmentDemographics & WithAppVersion(AppVersionT &&value)
SegmentDemographics & WithPlatform(PlatformT &&value)
AWS_PINPOINT_API SegmentDemographics()=default
SegmentDemographics & WithMake(MakeT &&value)
AWS_PINPOINT_API SegmentDemographics & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue