AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
EndpointDemographic.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.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
29 public:
30 AWS_PINPOINT_API EndpointDemographic() = default;
33 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAppVersion() const { return m_appVersion; }
40 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
41 template <typename AppVersionT = Aws::String>
42 void SetAppVersion(AppVersionT&& value) {
43 m_appVersionHasBeenSet = true;
44 m_appVersion = std::forward<AppVersionT>(value);
45 }
46 template <typename AppVersionT = Aws::String>
47 EndpointDemographic& WithAppVersion(AppVersionT&& value) {
48 SetAppVersion(std::forward<AppVersionT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetLocale() const { return m_locale; }
60 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
61 template <typename LocaleT = Aws::String>
62 void SetLocale(LocaleT&& value) {
63 m_localeHasBeenSet = true;
64 m_locale = std::forward<LocaleT>(value);
65 }
66 template <typename LocaleT = Aws::String>
67 EndpointDemographic& WithLocale(LocaleT&& value) {
68 SetLocale(std::forward<LocaleT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetMake() const { return m_make; }
78 inline bool MakeHasBeenSet() const { return m_makeHasBeenSet; }
79 template <typename MakeT = Aws::String>
80 void SetMake(MakeT&& value) {
81 m_makeHasBeenSet = true;
82 m_make = std::forward<MakeT>(value);
83 }
84 template <typename MakeT = Aws::String>
85 EndpointDemographic& WithMake(MakeT&& value) {
86 SetMake(std::forward<MakeT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetModel() const { return m_model; }
97 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
98 template <typename ModelT = Aws::String>
99 void SetModel(ModelT&& value) {
100 m_modelHasBeenSet = true;
101 m_model = std::forward<ModelT>(value);
102 }
103 template <typename ModelT = Aws::String>
105 SetModel(std::forward<ModelT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetModelVersion() const { return m_modelVersion; }
115 inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
116 template <typename ModelVersionT = Aws::String>
117 void SetModelVersion(ModelVersionT&& value) {
118 m_modelVersionHasBeenSet = true;
119 m_modelVersion = std::forward<ModelVersionT>(value);
120 }
121 template <typename ModelVersionT = Aws::String>
122 EndpointDemographic& WithModelVersion(ModelVersionT&& value) {
123 SetModelVersion(std::forward<ModelVersionT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetPlatform() const { return m_platform; }
133 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
134 template <typename PlatformT = Aws::String>
135 void SetPlatform(PlatformT&& value) {
136 m_platformHasBeenSet = true;
137 m_platform = std::forward<PlatformT>(value);
138 }
139 template <typename PlatformT = Aws::String>
140 EndpointDemographic& WithPlatform(PlatformT&& value) {
141 SetPlatform(std::forward<PlatformT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
151 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
152 template <typename PlatformVersionT = Aws::String>
153 void SetPlatformVersion(PlatformVersionT&& value) {
154 m_platformVersionHasBeenSet = true;
155 m_platformVersion = std::forward<PlatformVersionT>(value);
156 }
157 template <typename PlatformVersionT = Aws::String>
158 EndpointDemographic& WithPlatformVersion(PlatformVersionT&& value) {
159 SetPlatformVersion(std::forward<PlatformVersionT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::String& GetTimezone() const { return m_timezone; }
170 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
171 template <typename TimezoneT = Aws::String>
172 void SetTimezone(TimezoneT&& value) {
173 m_timezoneHasBeenSet = true;
174 m_timezone = std::forward<TimezoneT>(value);
175 }
176 template <typename TimezoneT = Aws::String>
177 EndpointDemographic& WithTimezone(TimezoneT&& value) {
178 SetTimezone(std::forward<TimezoneT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_appVersion;
184 bool m_appVersionHasBeenSet = false;
185
186 Aws::String m_locale;
187 bool m_localeHasBeenSet = false;
188
189 Aws::String m_make;
190 bool m_makeHasBeenSet = false;
191
192 Aws::String m_model;
193 bool m_modelHasBeenSet = false;
194
195 Aws::String m_modelVersion;
196 bool m_modelVersionHasBeenSet = false;
197
198 Aws::String m_platform;
199 bool m_platformHasBeenSet = false;
200
201 Aws::String m_platformVersion;
202 bool m_platformVersionHasBeenSet = false;
203
204 Aws::String m_timezone;
205 bool m_timezoneHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace Pinpoint
210} // namespace Aws
EndpointDemographic & WithPlatform(PlatformT &&value)
EndpointDemographic & WithLocale(LocaleT &&value)
AWS_PINPOINT_API EndpointDemographic(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API EndpointDemographic()=default
void SetPlatformVersion(PlatformVersionT &&value)
EndpointDemographic & WithModel(ModelT &&value)
EndpointDemographic & WithModelVersion(ModelVersionT &&value)
EndpointDemographic & WithTimezone(TimezoneT &&value)
EndpointDemographic & WithAppVersion(AppVersionT &&value)
EndpointDemographic & WithMake(MakeT &&value)
AWS_PINPOINT_API EndpointDemographic & operator=(Aws::Utils::Json::JsonView jsonValue)
EndpointDemographic & WithPlatformVersion(PlatformVersionT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue