AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_PINPOINT_API SegmentDemographics() = default;
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const SetDimension& GetAppVersion() const { return m_appVersion; }
47 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
48 template<typename AppVersionT = SetDimension>
49 void SetAppVersion(AppVersionT&& value) { m_appVersionHasBeenSet = true; m_appVersion = std::forward<AppVersionT>(value); }
50 template<typename AppVersionT = SetDimension>
51 SegmentDemographics& WithAppVersion(AppVersionT&& value) { SetAppVersion(std::forward<AppVersionT>(value)); return *this;}
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) { m_channelHasBeenSet = true; m_channel = std::forward<ChannelT>(value); }
62 template<typename ChannelT = SetDimension>
63 SegmentDemographics& WithChannel(ChannelT&& value) { SetChannel(std::forward<ChannelT>(value)); return *this;}
65
67
70 inline const SetDimension& GetDeviceType() const { return m_deviceType; }
71 inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; }
72 template<typename DeviceTypeT = SetDimension>
73 void SetDeviceType(DeviceTypeT&& value) { m_deviceTypeHasBeenSet = true; m_deviceType = std::forward<DeviceTypeT>(value); }
74 template<typename DeviceTypeT = SetDimension>
75 SegmentDemographics& WithDeviceType(DeviceTypeT&& value) { SetDeviceType(std::forward<DeviceTypeT>(value)); return *this;}
77
79
82 inline const SetDimension& GetMake() const { return m_make; }
83 inline bool MakeHasBeenSet() const { return m_makeHasBeenSet; }
84 template<typename MakeT = SetDimension>
85 void SetMake(MakeT&& value) { m_makeHasBeenSet = true; m_make = std::forward<MakeT>(value); }
86 template<typename MakeT = SetDimension>
87 SegmentDemographics& WithMake(MakeT&& value) { SetMake(std::forward<MakeT>(value)); return *this;}
89
91
94 inline const SetDimension& GetModel() const { return m_model; }
95 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
96 template<typename ModelT = SetDimension>
97 void SetModel(ModelT&& value) { m_modelHasBeenSet = true; m_model = std::forward<ModelT>(value); }
98 template<typename ModelT = SetDimension>
99 SegmentDemographics& WithModel(ModelT&& value) { SetModel(std::forward<ModelT>(value)); return *this;}
101
103
106 inline const SetDimension& GetPlatform() const { return m_platform; }
107 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
108 template<typename PlatformT = SetDimension>
109 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet = true; m_platform = std::forward<PlatformT>(value); }
110 template<typename PlatformT = SetDimension>
111 SegmentDemographics& WithPlatform(PlatformT&& value) { SetPlatform(std::forward<PlatformT>(value)); return *this;}
113 private:
114
115 SetDimension m_appVersion;
116 bool m_appVersionHasBeenSet = false;
117
118 SetDimension m_channel;
119 bool m_channelHasBeenSet = false;
120
121 SetDimension m_deviceType;
122 bool m_deviceTypeHasBeenSet = false;
123
124 SetDimension m_make;
125 bool m_makeHasBeenSet = false;
126
127 SetDimension m_model;
128 bool m_modelHasBeenSet = false;
129
130 SetDimension m_platform;
131 bool m_platformHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Pinpoint
136} // 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