AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MobileDeviceAccessOverride.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workmail/model/MobileDeviceAccessRuleEffect.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkMail
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_WORKMAIL_API MobileDeviceAccessOverride() = default;
39 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetUserId() const { return m_userId; }
47 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
48 template<typename UserIdT = Aws::String>
49 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
50 template<typename UserIdT = Aws::String>
51 MobileDeviceAccessOverride& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
59 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
60 template<typename DeviceIdT = Aws::String>
61 void SetDeviceId(DeviceIdT&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::forward<DeviceIdT>(value); }
62 template<typename DeviceIdT = Aws::String>
63 MobileDeviceAccessOverride& WithDeviceId(DeviceIdT&& value) { SetDeviceId(std::forward<DeviceIdT>(value)); return *this;}
65
67
70 inline MobileDeviceAccessRuleEffect GetEffect() const { return m_effect; }
71 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
72 inline void SetEffect(MobileDeviceAccessRuleEffect value) { m_effectHasBeenSet = true; m_effect = value; }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template<typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
84 template<typename DescriptionT = Aws::String>
85 MobileDeviceAccessOverride& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
87
89
92 inline const Aws::Utils::DateTime& GetDateCreated() const { return m_dateCreated; }
93 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
94 template<typename DateCreatedT = Aws::Utils::DateTime>
95 void SetDateCreated(DateCreatedT&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::forward<DateCreatedT>(value); }
96 template<typename DateCreatedT = Aws::Utils::DateTime>
97 MobileDeviceAccessOverride& WithDateCreated(DateCreatedT&& value) { SetDateCreated(std::forward<DateCreatedT>(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetDateModified() const { return m_dateModified; }
105 inline bool DateModifiedHasBeenSet() const { return m_dateModifiedHasBeenSet; }
106 template<typename DateModifiedT = Aws::Utils::DateTime>
107 void SetDateModified(DateModifiedT&& value) { m_dateModifiedHasBeenSet = true; m_dateModified = std::forward<DateModifiedT>(value); }
108 template<typename DateModifiedT = Aws::Utils::DateTime>
109 MobileDeviceAccessOverride& WithDateModified(DateModifiedT&& value) { SetDateModified(std::forward<DateModifiedT>(value)); return *this;}
111 private:
112
113 Aws::String m_userId;
114 bool m_userIdHasBeenSet = false;
115
116 Aws::String m_deviceId;
117 bool m_deviceIdHasBeenSet = false;
118
120 bool m_effectHasBeenSet = false;
121
122 Aws::String m_description;
123 bool m_descriptionHasBeenSet = false;
124
125 Aws::Utils::DateTime m_dateCreated{};
126 bool m_dateCreatedHasBeenSet = false;
127
128 Aws::Utils::DateTime m_dateModified{};
129 bool m_dateModifiedHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace WorkMail
134} // namespace Aws
AWS_WORKMAIL_API MobileDeviceAccessOverride(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
MobileDeviceAccessOverride & WithDateCreated(DateCreatedT &&value)
MobileDeviceAccessOverride & WithDeviceId(DeviceIdT &&value)
MobileDeviceAccessOverride & WithUserId(UserIdT &&value)
void SetEffect(MobileDeviceAccessRuleEffect value)
AWS_WORKMAIL_API MobileDeviceAccessOverride()=default
AWS_WORKMAIL_API MobileDeviceAccessOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
MobileDeviceAccessOverride & WithEffect(MobileDeviceAccessRuleEffect value)
MobileDeviceAccessOverride & WithDescription(DescriptionT &&value)
MobileDeviceAccessOverride & WithDateModified(DateModifiedT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue