AWS SDK for C++  1.9.157
AWS SDK for C++
MobileDeviceAccessOverride.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace WorkMail
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetUserId() const{ return m_userId; }
46 
50  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
51 
55  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
56 
60  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
61 
65  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
66 
70  inline MobileDeviceAccessOverride& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
71 
75  inline MobileDeviceAccessOverride& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
76 
80  inline MobileDeviceAccessOverride& WithUserId(const char* value) { SetUserId(value); return *this;}
81 
82 
86  inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
87 
91  inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
92 
96  inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
97 
101  inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
102 
106  inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
107 
111  inline MobileDeviceAccessOverride& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
112 
116  inline MobileDeviceAccessOverride& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
117 
121  inline MobileDeviceAccessOverride& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
122 
123 
127  inline const MobileDeviceAccessRuleEffect& GetEffect() const{ return m_effect; }
128 
132  inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
133 
137  inline void SetEffect(const MobileDeviceAccessRuleEffect& value) { m_effectHasBeenSet = true; m_effect = value; }
138 
142  inline void SetEffect(MobileDeviceAccessRuleEffect&& value) { m_effectHasBeenSet = true; m_effect = std::move(value); }
143 
147  inline MobileDeviceAccessOverride& WithEffect(const MobileDeviceAccessRuleEffect& value) { SetEffect(value); return *this;}
148 
152  inline MobileDeviceAccessOverride& WithEffect(MobileDeviceAccessRuleEffect&& value) { SetEffect(std::move(value)); return *this;}
153 
154 
158  inline const Aws::String& GetDescription() const{ return m_description; }
159 
163  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
164 
168  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
169 
173  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
174 
178  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
179 
183  inline MobileDeviceAccessOverride& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
184 
188  inline MobileDeviceAccessOverride& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
189 
193  inline MobileDeviceAccessOverride& WithDescription(const char* value) { SetDescription(value); return *this;}
194 
195 
199  inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; }
200 
204  inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
205 
209  inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
210 
214  inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
215 
219  inline MobileDeviceAccessOverride& WithDateCreated(const Aws::Utils::DateTime& value) { SetDateCreated(value); return *this;}
220 
224  inline MobileDeviceAccessOverride& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(std::move(value)); return *this;}
225 
226 
230  inline const Aws::Utils::DateTime& GetDateModified() const{ return m_dateModified; }
231 
235  inline bool DateModifiedHasBeenSet() const { return m_dateModifiedHasBeenSet; }
236 
240  inline void SetDateModified(const Aws::Utils::DateTime& value) { m_dateModifiedHasBeenSet = true; m_dateModified = value; }
241 
245  inline void SetDateModified(Aws::Utils::DateTime&& value) { m_dateModifiedHasBeenSet = true; m_dateModified = std::move(value); }
246 
250  inline MobileDeviceAccessOverride& WithDateModified(const Aws::Utils::DateTime& value) { SetDateModified(value); return *this;}
251 
255  inline MobileDeviceAccessOverride& WithDateModified(Aws::Utils::DateTime&& value) { SetDateModified(std::move(value)); return *this;}
256 
257  private:
258 
259  Aws::String m_userId;
260  bool m_userIdHasBeenSet;
261 
262  Aws::String m_deviceId;
263  bool m_deviceIdHasBeenSet;
264 
266  bool m_effectHasBeenSet;
267 
268  Aws::String m_description;
269  bool m_descriptionHasBeenSet;
270 
271  Aws::Utils::DateTime m_dateCreated;
272  bool m_dateCreatedHasBeenSet;
273 
274  Aws::Utils::DateTime m_dateModified;
275  bool m_dateModifiedHasBeenSet;
276  };
277 
278 } // namespace Model
279 } // namespace WorkMail
280 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetDeviceId
void SetDeviceId(Aws::String &&value)
Definition: MobileDeviceAccessOverride.h:101
Aws::WorkMail::Model::MobileDeviceAccessOverride
Definition: MobileDeviceAccessOverride.h:34
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithDateModified
MobileDeviceAccessOverride & WithDateModified(Aws::Utils::DateTime &&value)
Definition: MobileDeviceAccessOverride.h:255
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetDescription
void SetDescription(Aws::String &&value)
Definition: MobileDeviceAccessOverride.h:173
Aws::WorkMail::Model::MobileDeviceAccessOverride::EffectHasBeenSet
bool EffectHasBeenSet() const
Definition: MobileDeviceAccessOverride.h:132
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithEffect
MobileDeviceAccessOverride & WithEffect(MobileDeviceAccessRuleEffect &&value)
Definition: MobileDeviceAccessOverride.h:152
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetDeviceId
void SetDeviceId(const char *value)
Definition: MobileDeviceAccessOverride.h:106
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithDeviceId
MobileDeviceAccessOverride & WithDeviceId(const Aws::String &value)
Definition: MobileDeviceAccessOverride.h:111
DateTime.h
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithDateCreated
MobileDeviceAccessOverride & WithDateCreated(Aws::Utils::DateTime &&value)
Definition: MobileDeviceAccessOverride.h:224
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithDescription
MobileDeviceAccessOverride & WithDescription(Aws::String &&value)
Definition: MobileDeviceAccessOverride.h:188
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithUserId
MobileDeviceAccessOverride & WithUserId(const Aws::String &value)
Definition: MobileDeviceAccessOverride.h:70
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetDateCreated
void SetDateCreated(const Aws::Utils::DateTime &value)
Definition: MobileDeviceAccessOverride.h:209
Aws::WorkMail::Model::MobileDeviceAccessOverride::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: MobileDeviceAccessOverride.h:50
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithDeviceId
MobileDeviceAccessOverride & WithDeviceId(const char *value)
Definition: MobileDeviceAccessOverride.h:121
WorkMail_EXPORTS.h
Aws::WorkMail::Model::MobileDeviceAccessOverride::MobileDeviceAccessOverride
MobileDeviceAccessOverride()
Aws::WorkMail::Model::MobileDeviceAccessOverride::GetDeviceId
const Aws::String & GetDeviceId() const
Definition: MobileDeviceAccessOverride.h:86
Aws::WorkMail::Model::MobileDeviceAccessOverride::GetDateModified
const Aws::Utils::DateTime & GetDateModified() const
Definition: MobileDeviceAccessOverride.h:230
Aws::WorkMail::Model::MobileDeviceAccessOverride::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: MobileDeviceAccessOverride.h:163
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetUserId
void SetUserId(const Aws::String &value)
Definition: MobileDeviceAccessOverride.h:55
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithDateModified
MobileDeviceAccessOverride & WithDateModified(const Aws::Utils::DateTime &value)
Definition: MobileDeviceAccessOverride.h:250
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithDeviceId
MobileDeviceAccessOverride & WithDeviceId(Aws::String &&value)
Definition: MobileDeviceAccessOverride.h:116
Aws::WorkMail::Model::MobileDeviceAccessOverride::MobileDeviceAccessOverride
MobileDeviceAccessOverride(Aws::Utils::Json::JsonView jsonValue)
Aws::WorkMail::Model::MobileDeviceAccessOverride::DateCreatedHasBeenSet
bool DateCreatedHasBeenSet() const
Definition: MobileDeviceAccessOverride.h:204
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetDeviceId
void SetDeviceId(const Aws::String &value)
Definition: MobileDeviceAccessOverride.h:96
Aws::WorkMail::Model::MobileDeviceAccessOverride::GetEffect
const MobileDeviceAccessRuleEffect & GetEffect() const
Definition: MobileDeviceAccessOverride.h:127
Aws::WorkMail::Model::MobileDeviceAccessOverride::GetUserId
const Aws::String & GetUserId() const
Definition: MobileDeviceAccessOverride.h:45
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetEffect
void SetEffect(MobileDeviceAccessRuleEffect &&value)
Definition: MobileDeviceAccessOverride.h:142
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithDescription
MobileDeviceAccessOverride & WithDescription(const char *value)
Definition: MobileDeviceAccessOverride.h:193
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetDateModified
void SetDateModified(Aws::Utils::DateTime &&value)
Definition: MobileDeviceAccessOverride.h:245
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetDateModified
void SetDateModified(const Aws::Utils::DateTime &value)
Definition: MobileDeviceAccessOverride.h:240
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetDateCreated
void SetDateCreated(Aws::Utils::DateTime &&value)
Definition: MobileDeviceAccessOverride.h:214
MobileDeviceAccessRuleEffect.h
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetEffect
void SetEffect(const MobileDeviceAccessRuleEffect &value)
Definition: MobileDeviceAccessOverride.h:137
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithDateCreated
MobileDeviceAccessOverride & WithDateCreated(const Aws::Utils::DateTime &value)
Definition: MobileDeviceAccessOverride.h:219
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithDescription
MobileDeviceAccessOverride & WithDescription(const Aws::String &value)
Definition: MobileDeviceAccessOverride.h:183
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetUserId
void SetUserId(const char *value)
Definition: MobileDeviceAccessOverride.h:65
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetUserId
void SetUserId(Aws::String &&value)
Definition: MobileDeviceAccessOverride.h:60
Aws::WorkMail::Model::MobileDeviceAccessOverride::DeviceIdHasBeenSet
bool DeviceIdHasBeenSet() const
Definition: MobileDeviceAccessOverride.h:91
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetDescription
void SetDescription(const Aws::String &value)
Definition: MobileDeviceAccessOverride.h:168
Aws::WorkMail::Model::MobileDeviceAccessOverride::GetDescription
const Aws::String & GetDescription() const
Definition: MobileDeviceAccessOverride.h:158
Aws::WorkMail::Model::MobileDeviceAccessOverride::SetDescription
void SetDescription(const char *value)
Definition: MobileDeviceAccessOverride.h:178
Aws::WorkMail::Model::MobileDeviceAccessOverride::GetDateCreated
const Aws::Utils::DateTime & GetDateCreated() const
Definition: MobileDeviceAccessOverride.h:199
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::MobileDeviceAccessRuleEffect
MobileDeviceAccessRuleEffect
Definition: MobileDeviceAccessRuleEffect.h:17
Aws::WorkMail::Model::MobileDeviceAccessOverride::operator=
MobileDeviceAccessOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithUserId
MobileDeviceAccessOverride & WithUserId(const char *value)
Definition: MobileDeviceAccessOverride.h:80
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithEffect
MobileDeviceAccessOverride & WithEffect(const MobileDeviceAccessRuleEffect &value)
Definition: MobileDeviceAccessOverride.h:147
Aws::WorkMail::Model::MobileDeviceAccessOverride::DateModifiedHasBeenSet
bool DateModifiedHasBeenSet() const
Definition: MobileDeviceAccessOverride.h:235
Aws::WorkMail::Model::MobileDeviceAccessOverride::WithUserId
MobileDeviceAccessOverride & WithUserId(Aws::String &&value)
Definition: MobileDeviceAccessOverride.h:75
Aws::WorkMail::Model::MobileDeviceAccessOverride::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const