AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
49 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
50 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
51 inline MobileDeviceAccessOverride& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
52 inline MobileDeviceAccessOverride& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
53 inline MobileDeviceAccessOverride& WithUserId(const char* value) { SetUserId(value); return *this;}
55
57
60 inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
61 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
62 inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
63 inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
64 inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
65 inline MobileDeviceAccessOverride& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
66 inline MobileDeviceAccessOverride& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
67 inline MobileDeviceAccessOverride& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
69
71
74 inline const MobileDeviceAccessRuleEffect& GetEffect() const{ return m_effect; }
75 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
76 inline void SetEffect(const MobileDeviceAccessRuleEffect& value) { m_effectHasBeenSet = true; m_effect = value; }
77 inline void SetEffect(MobileDeviceAccessRuleEffect&& value) { m_effectHasBeenSet = true; m_effect = std::move(value); }
78 inline MobileDeviceAccessOverride& WithEffect(const MobileDeviceAccessRuleEffect& value) { SetEffect(value); return *this;}
79 inline MobileDeviceAccessOverride& WithEffect(MobileDeviceAccessRuleEffect&& value) { SetEffect(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetDescription() const{ return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
89 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
90 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
91 inline MobileDeviceAccessOverride& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
92 inline MobileDeviceAccessOverride& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
93 inline MobileDeviceAccessOverride& WithDescription(const char* value) { SetDescription(value); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; }
101 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
102 inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
103 inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
105 inline MobileDeviceAccessOverride& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(std::move(value)); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetDateModified() const{ return m_dateModified; }
113 inline bool DateModifiedHasBeenSet() const { return m_dateModifiedHasBeenSet; }
114 inline void SetDateModified(const Aws::Utils::DateTime& value) { m_dateModifiedHasBeenSet = true; m_dateModified = value; }
115 inline void SetDateModified(Aws::Utils::DateTime&& value) { m_dateModifiedHasBeenSet = true; m_dateModified = std::move(value); }
117 inline MobileDeviceAccessOverride& WithDateModified(Aws::Utils::DateTime&& value) { SetDateModified(std::move(value)); return *this;}
119 private:
120
121 Aws::String m_userId;
122 bool m_userIdHasBeenSet = false;
123
124 Aws::String m_deviceId;
125 bool m_deviceIdHasBeenSet = false;
126
128 bool m_effectHasBeenSet = false;
129
130 Aws::String m_description;
131 bool m_descriptionHasBeenSet = false;
132
133 Aws::Utils::DateTime m_dateCreated;
134 bool m_dateCreatedHasBeenSet = false;
135
136 Aws::Utils::DateTime m_dateModified;
137 bool m_dateModifiedHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace WorkMail
142} // namespace Aws
MobileDeviceAccessOverride & WithDateCreated(Aws::Utils::DateTime &&value)
AWS_WORKMAIL_API MobileDeviceAccessOverride(Aws::Utils::Json::JsonView jsonValue)
MobileDeviceAccessOverride & WithDateModified(const Aws::Utils::DateTime &value)
MobileDeviceAccessOverride & WithDescription(const Aws::String &value)
MobileDeviceAccessOverride & WithDeviceId(const char *value)
MobileDeviceAccessOverride & WithDateCreated(const Aws::Utils::DateTime &value)
MobileDeviceAccessOverride & WithDeviceId(const Aws::String &value)
void SetEffect(MobileDeviceAccessRuleEffect &&value)
MobileDeviceAccessOverride & WithUserId(const char *value)
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
MobileDeviceAccessOverride & WithDescription(Aws::String &&value)
void SetDateCreated(const Aws::Utils::DateTime &value)
MobileDeviceAccessOverride & WithEffect(MobileDeviceAccessRuleEffect &&value)
const MobileDeviceAccessRuleEffect & GetEffect() const
MobileDeviceAccessOverride & WithUserId(Aws::String &&value)
MobileDeviceAccessOverride & WithDeviceId(Aws::String &&value)
MobileDeviceAccessOverride & WithUserId(const Aws::String &value)
MobileDeviceAccessOverride & WithDescription(const char *value)
void SetDateModified(const Aws::Utils::DateTime &value)
void SetEffect(const MobileDeviceAccessRuleEffect &value)
AWS_WORKMAIL_API MobileDeviceAccessOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
MobileDeviceAccessOverride & WithEffect(const MobileDeviceAccessRuleEffect &value)
MobileDeviceAccessOverride & WithDateModified(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue