AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
MobileDeviceAccessRule.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/workmail/WorkMail_EXPORTS.h>
11#include <aws/workmail/model/MobileDeviceAccessRuleEffect.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkMail {
23namespace Model {
24
32 public:
33 AWS_WORKMAIL_API MobileDeviceAccessRule() = default;
36 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetMobileDeviceAccessRuleId() const { return m_mobileDeviceAccessRuleId; }
43 inline bool MobileDeviceAccessRuleIdHasBeenSet() const { return m_mobileDeviceAccessRuleIdHasBeenSet; }
44 template <typename MobileDeviceAccessRuleIdT = Aws::String>
45 void SetMobileDeviceAccessRuleId(MobileDeviceAccessRuleIdT&& value) {
46 m_mobileDeviceAccessRuleIdHasBeenSet = true;
47 m_mobileDeviceAccessRuleId = std::forward<MobileDeviceAccessRuleIdT>(value);
48 }
49 template <typename MobileDeviceAccessRuleIdT = Aws::String>
50 MobileDeviceAccessRule& WithMobileDeviceAccessRuleId(MobileDeviceAccessRuleIdT&& value) {
51 SetMobileDeviceAccessRuleId(std::forward<MobileDeviceAccessRuleIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 MobileDeviceAccessRule& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
97 inline MobileDeviceAccessRuleEffect GetEffect() const { return m_effect; }
98 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
100 m_effectHasBeenSet = true;
101 m_effect = value;
102 }
104 SetEffect(value);
105 return *this;
106 }
108
110
113 inline const Aws::Vector<Aws::String>& GetDeviceTypes() const { return m_deviceTypes; }
114 inline bool DeviceTypesHasBeenSet() const { return m_deviceTypesHasBeenSet; }
115 template <typename DeviceTypesT = Aws::Vector<Aws::String>>
116 void SetDeviceTypes(DeviceTypesT&& value) {
117 m_deviceTypesHasBeenSet = true;
118 m_deviceTypes = std::forward<DeviceTypesT>(value);
119 }
120 template <typename DeviceTypesT = Aws::Vector<Aws::String>>
122 SetDeviceTypes(std::forward<DeviceTypesT>(value));
123 return *this;
124 }
125 template <typename DeviceTypesT = Aws::String>
126 MobileDeviceAccessRule& AddDeviceTypes(DeviceTypesT&& value) {
127 m_deviceTypesHasBeenSet = true;
128 m_deviceTypes.emplace_back(std::forward<DeviceTypesT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::Vector<Aws::String>& GetNotDeviceTypes() const { return m_notDeviceTypes; }
139 inline bool NotDeviceTypesHasBeenSet() const { return m_notDeviceTypesHasBeenSet; }
140 template <typename NotDeviceTypesT = Aws::Vector<Aws::String>>
141 void SetNotDeviceTypes(NotDeviceTypesT&& value) {
142 m_notDeviceTypesHasBeenSet = true;
143 m_notDeviceTypes = std::forward<NotDeviceTypesT>(value);
144 }
145 template <typename NotDeviceTypesT = Aws::Vector<Aws::String>>
146 MobileDeviceAccessRule& WithNotDeviceTypes(NotDeviceTypesT&& value) {
147 SetNotDeviceTypes(std::forward<NotDeviceTypesT>(value));
148 return *this;
149 }
150 template <typename NotDeviceTypesT = Aws::String>
151 MobileDeviceAccessRule& AddNotDeviceTypes(NotDeviceTypesT&& value) {
152 m_notDeviceTypesHasBeenSet = true;
153 m_notDeviceTypes.emplace_back(std::forward<NotDeviceTypesT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Vector<Aws::String>& GetDeviceModels() const { return m_deviceModels; }
163 inline bool DeviceModelsHasBeenSet() const { return m_deviceModelsHasBeenSet; }
164 template <typename DeviceModelsT = Aws::Vector<Aws::String>>
165 void SetDeviceModels(DeviceModelsT&& value) {
166 m_deviceModelsHasBeenSet = true;
167 m_deviceModels = std::forward<DeviceModelsT>(value);
168 }
169 template <typename DeviceModelsT = Aws::Vector<Aws::String>>
170 MobileDeviceAccessRule& WithDeviceModels(DeviceModelsT&& value) {
171 SetDeviceModels(std::forward<DeviceModelsT>(value));
172 return *this;
173 }
174 template <typename DeviceModelsT = Aws::String>
175 MobileDeviceAccessRule& AddDeviceModels(DeviceModelsT&& value) {
176 m_deviceModelsHasBeenSet = true;
177 m_deviceModels.emplace_back(std::forward<DeviceModelsT>(value));
178 return *this;
179 }
181
183
187 inline const Aws::Vector<Aws::String>& GetNotDeviceModels() const { return m_notDeviceModels; }
188 inline bool NotDeviceModelsHasBeenSet() const { return m_notDeviceModelsHasBeenSet; }
189 template <typename NotDeviceModelsT = Aws::Vector<Aws::String>>
190 void SetNotDeviceModels(NotDeviceModelsT&& value) {
191 m_notDeviceModelsHasBeenSet = true;
192 m_notDeviceModels = std::forward<NotDeviceModelsT>(value);
193 }
194 template <typename NotDeviceModelsT = Aws::Vector<Aws::String>>
195 MobileDeviceAccessRule& WithNotDeviceModels(NotDeviceModelsT&& value) {
196 SetNotDeviceModels(std::forward<NotDeviceModelsT>(value));
197 return *this;
198 }
199 template <typename NotDeviceModelsT = Aws::String>
200 MobileDeviceAccessRule& AddNotDeviceModels(NotDeviceModelsT&& value) {
201 m_notDeviceModelsHasBeenSet = true;
202 m_notDeviceModels.emplace_back(std::forward<NotDeviceModelsT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Vector<Aws::String>& GetDeviceOperatingSystems() const { return m_deviceOperatingSystems; }
212 inline bool DeviceOperatingSystemsHasBeenSet() const { return m_deviceOperatingSystemsHasBeenSet; }
213 template <typename DeviceOperatingSystemsT = Aws::Vector<Aws::String>>
214 void SetDeviceOperatingSystems(DeviceOperatingSystemsT&& value) {
215 m_deviceOperatingSystemsHasBeenSet = true;
216 m_deviceOperatingSystems = std::forward<DeviceOperatingSystemsT>(value);
217 }
218 template <typename DeviceOperatingSystemsT = Aws::Vector<Aws::String>>
219 MobileDeviceAccessRule& WithDeviceOperatingSystems(DeviceOperatingSystemsT&& value) {
220 SetDeviceOperatingSystems(std::forward<DeviceOperatingSystemsT>(value));
221 return *this;
222 }
223 template <typename DeviceOperatingSystemsT = Aws::String>
224 MobileDeviceAccessRule& AddDeviceOperatingSystems(DeviceOperatingSystemsT&& value) {
225 m_deviceOperatingSystemsHasBeenSet = true;
226 m_deviceOperatingSystems.emplace_back(std::forward<DeviceOperatingSystemsT>(value));
227 return *this;
228 }
230
232
236 inline const Aws::Vector<Aws::String>& GetNotDeviceOperatingSystems() const { return m_notDeviceOperatingSystems; }
237 inline bool NotDeviceOperatingSystemsHasBeenSet() const { return m_notDeviceOperatingSystemsHasBeenSet; }
238 template <typename NotDeviceOperatingSystemsT = Aws::Vector<Aws::String>>
239 void SetNotDeviceOperatingSystems(NotDeviceOperatingSystemsT&& value) {
240 m_notDeviceOperatingSystemsHasBeenSet = true;
241 m_notDeviceOperatingSystems = std::forward<NotDeviceOperatingSystemsT>(value);
242 }
243 template <typename NotDeviceOperatingSystemsT = Aws::Vector<Aws::String>>
244 MobileDeviceAccessRule& WithNotDeviceOperatingSystems(NotDeviceOperatingSystemsT&& value) {
245 SetNotDeviceOperatingSystems(std::forward<NotDeviceOperatingSystemsT>(value));
246 return *this;
247 }
248 template <typename NotDeviceOperatingSystemsT = Aws::String>
249 MobileDeviceAccessRule& AddNotDeviceOperatingSystems(NotDeviceOperatingSystemsT&& value) {
250 m_notDeviceOperatingSystemsHasBeenSet = true;
251 m_notDeviceOperatingSystems.emplace_back(std::forward<NotDeviceOperatingSystemsT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::Vector<Aws::String>& GetDeviceUserAgents() const { return m_deviceUserAgents; }
261 inline bool DeviceUserAgentsHasBeenSet() const { return m_deviceUserAgentsHasBeenSet; }
262 template <typename DeviceUserAgentsT = Aws::Vector<Aws::String>>
263 void SetDeviceUserAgents(DeviceUserAgentsT&& value) {
264 m_deviceUserAgentsHasBeenSet = true;
265 m_deviceUserAgents = std::forward<DeviceUserAgentsT>(value);
266 }
267 template <typename DeviceUserAgentsT = Aws::Vector<Aws::String>>
268 MobileDeviceAccessRule& WithDeviceUserAgents(DeviceUserAgentsT&& value) {
269 SetDeviceUserAgents(std::forward<DeviceUserAgentsT>(value));
270 return *this;
271 }
272 template <typename DeviceUserAgentsT = Aws::String>
273 MobileDeviceAccessRule& AddDeviceUserAgents(DeviceUserAgentsT&& value) {
274 m_deviceUserAgentsHasBeenSet = true;
275 m_deviceUserAgents.emplace_back(std::forward<DeviceUserAgentsT>(value));
276 return *this;
277 }
279
281
285 inline const Aws::Vector<Aws::String>& GetNotDeviceUserAgents() const { return m_notDeviceUserAgents; }
286 inline bool NotDeviceUserAgentsHasBeenSet() const { return m_notDeviceUserAgentsHasBeenSet; }
287 template <typename NotDeviceUserAgentsT = Aws::Vector<Aws::String>>
288 void SetNotDeviceUserAgents(NotDeviceUserAgentsT&& value) {
289 m_notDeviceUserAgentsHasBeenSet = true;
290 m_notDeviceUserAgents = std::forward<NotDeviceUserAgentsT>(value);
291 }
292 template <typename NotDeviceUserAgentsT = Aws::Vector<Aws::String>>
293 MobileDeviceAccessRule& WithNotDeviceUserAgents(NotDeviceUserAgentsT&& value) {
294 SetNotDeviceUserAgents(std::forward<NotDeviceUserAgentsT>(value));
295 return *this;
296 }
297 template <typename NotDeviceUserAgentsT = Aws::String>
298 MobileDeviceAccessRule& AddNotDeviceUserAgents(NotDeviceUserAgentsT&& value) {
299 m_notDeviceUserAgentsHasBeenSet = true;
300 m_notDeviceUserAgents.emplace_back(std::forward<NotDeviceUserAgentsT>(value));
301 return *this;
302 }
304
306
309 inline const Aws::Utils::DateTime& GetDateCreated() const { return m_dateCreated; }
310 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
311 template <typename DateCreatedT = Aws::Utils::DateTime>
312 void SetDateCreated(DateCreatedT&& value) {
313 m_dateCreatedHasBeenSet = true;
314 m_dateCreated = std::forward<DateCreatedT>(value);
315 }
316 template <typename DateCreatedT = Aws::Utils::DateTime>
318 SetDateCreated(std::forward<DateCreatedT>(value));
319 return *this;
320 }
322
324
327 inline const Aws::Utils::DateTime& GetDateModified() const { return m_dateModified; }
328 inline bool DateModifiedHasBeenSet() const { return m_dateModifiedHasBeenSet; }
329 template <typename DateModifiedT = Aws::Utils::DateTime>
330 void SetDateModified(DateModifiedT&& value) {
331 m_dateModifiedHasBeenSet = true;
332 m_dateModified = std::forward<DateModifiedT>(value);
333 }
334 template <typename DateModifiedT = Aws::Utils::DateTime>
335 MobileDeviceAccessRule& WithDateModified(DateModifiedT&& value) {
336 SetDateModified(std::forward<DateModifiedT>(value));
337 return *this;
338 }
340 private:
341 Aws::String m_mobileDeviceAccessRuleId;
342
343 Aws::String m_name;
344
345 Aws::String m_description;
346
348
349 Aws::Vector<Aws::String> m_deviceTypes;
350
351 Aws::Vector<Aws::String> m_notDeviceTypes;
352
353 Aws::Vector<Aws::String> m_deviceModels;
354
355 Aws::Vector<Aws::String> m_notDeviceModels;
356
357 Aws::Vector<Aws::String> m_deviceOperatingSystems;
358
359 Aws::Vector<Aws::String> m_notDeviceOperatingSystems;
360
361 Aws::Vector<Aws::String> m_deviceUserAgents;
362
363 Aws::Vector<Aws::String> m_notDeviceUserAgents;
364
365 Aws::Utils::DateTime m_dateCreated{};
366
367 Aws::Utils::DateTime m_dateModified{};
368 bool m_mobileDeviceAccessRuleIdHasBeenSet = false;
369 bool m_nameHasBeenSet = false;
370 bool m_descriptionHasBeenSet = false;
371 bool m_effectHasBeenSet = false;
372 bool m_deviceTypesHasBeenSet = false;
373 bool m_notDeviceTypesHasBeenSet = false;
374 bool m_deviceModelsHasBeenSet = false;
375 bool m_notDeviceModelsHasBeenSet = false;
376 bool m_deviceOperatingSystemsHasBeenSet = false;
377 bool m_notDeviceOperatingSystemsHasBeenSet = false;
378 bool m_deviceUserAgentsHasBeenSet = false;
379 bool m_notDeviceUserAgentsHasBeenSet = false;
380 bool m_dateCreatedHasBeenSet = false;
381 bool m_dateModifiedHasBeenSet = false;
382};
383
384} // namespace Model
385} // namespace WorkMail
386} // namespace Aws
AWS_WORKMAIL_API MobileDeviceAccessRule()=default
AWS_WORKMAIL_API MobileDeviceAccessRule(Aws::Utils::Json::JsonView jsonValue)
void SetDeviceUserAgents(DeviceUserAgentsT &&value)
const Aws::Vector< Aws::String > & GetNotDeviceOperatingSystems() const
const Aws::Vector< Aws::String > & GetNotDeviceTypes() const
MobileDeviceAccessRule & WithDeviceOperatingSystems(DeviceOperatingSystemsT &&value)
void SetNotDeviceOperatingSystems(NotDeviceOperatingSystemsT &&value)
AWS_WORKMAIL_API MobileDeviceAccessRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeviceOperatingSystems(DeviceOperatingSystemsT &&value)
MobileDeviceAccessRule & WithName(NameT &&value)
MobileDeviceAccessRule & WithDescription(DescriptionT &&value)
MobileDeviceAccessRule & WithDeviceUserAgents(DeviceUserAgentsT &&value)
const Aws::Utils::DateTime & GetDateCreated() const
MobileDeviceAccessRule & WithNotDeviceUserAgents(NotDeviceUserAgentsT &&value)
MobileDeviceAccessRule & WithDeviceModels(DeviceModelsT &&value)
const Aws::Utils::DateTime & GetDateModified() const
MobileDeviceAccessRule & WithMobileDeviceAccessRuleId(MobileDeviceAccessRuleIdT &&value)
const Aws::Vector< Aws::String > & GetDeviceTypes() const
MobileDeviceAccessRule & WithDateCreated(DateCreatedT &&value)
const Aws::Vector< Aws::String > & GetNotDeviceUserAgents() const
const Aws::Vector< Aws::String > & GetNotDeviceModels() const
void SetMobileDeviceAccessRuleId(MobileDeviceAccessRuleIdT &&value)
MobileDeviceAccessRule & AddNotDeviceUserAgents(NotDeviceUserAgentsT &&value)
MobileDeviceAccessRule & AddNotDeviceOperatingSystems(NotDeviceOperatingSystemsT &&value)
MobileDeviceAccessRule & WithNotDeviceModels(NotDeviceModelsT &&value)
MobileDeviceAccessRule & AddDeviceTypes(DeviceTypesT &&value)
MobileDeviceAccessRule & WithDeviceTypes(DeviceTypesT &&value)
MobileDeviceAccessRule & AddNotDeviceModels(NotDeviceModelsT &&value)
const Aws::Vector< Aws::String > & GetDeviceUserAgents() const
MobileDeviceAccessRule & AddDeviceOperatingSystems(DeviceOperatingSystemsT &&value)
MobileDeviceAccessRule & WithDateModified(DateModifiedT &&value)
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
MobileDeviceAccessRule & WithEffect(MobileDeviceAccessRuleEffect value)
MobileDeviceAccessRule & AddNotDeviceTypes(NotDeviceTypesT &&value)
const Aws::Vector< Aws::String > & GetDeviceModels() const
MobileDeviceAccessRule & AddDeviceModels(DeviceModelsT &&value)
MobileDeviceAccessRuleEffect GetEffect() const
MobileDeviceAccessRule & WithNotDeviceOperatingSystems(NotDeviceOperatingSystemsT &&value)
const Aws::Vector< Aws::String > & GetDeviceOperatingSystems() const
MobileDeviceAccessRule & WithNotDeviceTypes(NotDeviceTypesT &&value)
MobileDeviceAccessRule & AddDeviceUserAgents(DeviceUserAgentsT &&value)
void SetEffect(MobileDeviceAccessRuleEffect value)
void SetNotDeviceUserAgents(NotDeviceUserAgentsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue