AWS SDK for C++  1.9.157
AWS SDK for C++
PutMobileDeviceAccessOverrideRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace WorkMail
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "PutMobileDeviceAccessOverride"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
43 
48  inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
49 
54  inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
55 
60  inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
61 
66  inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
67 
72  inline PutMobileDeviceAccessOverrideRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
73 
78  inline PutMobileDeviceAccessOverrideRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
79 
84  inline PutMobileDeviceAccessOverrideRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
85 
86 
95  inline const Aws::String& GetUserId() const{ return m_userId; }
96 
105  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
106 
115  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
116 
125  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
126 
135  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
136 
145  inline PutMobileDeviceAccessOverrideRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
146 
155  inline PutMobileDeviceAccessOverrideRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
156 
165  inline PutMobileDeviceAccessOverrideRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
166 
167 
172  inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
173 
178  inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
179 
184  inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
185 
190  inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
191 
196  inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
197 
202  inline PutMobileDeviceAccessOverrideRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
203 
208  inline PutMobileDeviceAccessOverrideRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
209 
214  inline PutMobileDeviceAccessOverrideRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
215 
216 
220  inline const MobileDeviceAccessRuleEffect& GetEffect() const{ return m_effect; }
221 
225  inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
226 
230  inline void SetEffect(const MobileDeviceAccessRuleEffect& value) { m_effectHasBeenSet = true; m_effect = value; }
231 
235  inline void SetEffect(MobileDeviceAccessRuleEffect&& value) { m_effectHasBeenSet = true; m_effect = std::move(value); }
236 
240  inline PutMobileDeviceAccessOverrideRequest& WithEffect(const MobileDeviceAccessRuleEffect& value) { SetEffect(value); return *this;}
241 
245  inline PutMobileDeviceAccessOverrideRequest& WithEffect(MobileDeviceAccessRuleEffect&& value) { SetEffect(std::move(value)); return *this;}
246 
247 
251  inline const Aws::String& GetDescription() const{ return m_description; }
252 
256  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
257 
261  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
262 
266  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
267 
271  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
272 
276  inline PutMobileDeviceAccessOverrideRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
277 
281  inline PutMobileDeviceAccessOverrideRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
282 
286  inline PutMobileDeviceAccessOverrideRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
287 
288  private:
289 
290  Aws::String m_organizationId;
291  bool m_organizationIdHasBeenSet;
292 
293  Aws::String m_userId;
294  bool m_userIdHasBeenSet;
295 
296  Aws::String m_deviceId;
297  bool m_deviceIdHasBeenSet;
298 
300  bool m_effectHasBeenSet;
301 
302  Aws::String m_description;
303  bool m_descriptionHasBeenSet;
304  };
305 
306 } // namespace Model
307 } // namespace WorkMail
308 } // namespace Aws
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::DeviceIdHasBeenSet
bool DeviceIdHasBeenSet() const
Definition: PutMobileDeviceAccessOverrideRequest.h:178
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SetEffect
void SetEffect(MobileDeviceAccessRuleEffect &&value)
Definition: PutMobileDeviceAccessOverrideRequest.h:235
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: PutMobileDeviceAccessOverrideRequest.h:66
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutMobileDeviceAccessOverrideRequest.h:31
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: PutMobileDeviceAccessOverrideRequest.h:48
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::WithEffect
PutMobileDeviceAccessOverrideRequest & WithEffect(MobileDeviceAccessRuleEffect &&value)
Definition: PutMobileDeviceAccessOverrideRequest.h:245
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: PutMobileDeviceAccessOverrideRequest.h:256
Aws::WorkMail::WorkMailRequest
Definition: WorkMailRequest.h:17
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::WithDescription
PutMobileDeviceAccessOverrideRequest & WithDescription(Aws::String &&value)
Definition: PutMobileDeviceAccessOverrideRequest.h:281
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::WithOrganizationId
PutMobileDeviceAccessOverrideRequest & WithOrganizationId(Aws::String &&value)
Definition: PutMobileDeviceAccessOverrideRequest.h:78
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::GetDescription
const Aws::String & GetDescription() const
Definition: PutMobileDeviceAccessOverrideRequest.h:251
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SetUserId
void SetUserId(Aws::String &&value)
Definition: PutMobileDeviceAccessOverrideRequest.h:125
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::WithDescription
PutMobileDeviceAccessOverrideRequest & WithDescription(const Aws::String &value)
Definition: PutMobileDeviceAccessOverrideRequest.h:276
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SetDeviceId
void SetDeviceId(const Aws::String &value)
Definition: PutMobileDeviceAccessOverrideRequest.h:184
WorkMail_EXPORTS.h
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SetDeviceId
void SetDeviceId(const char *value)
Definition: PutMobileDeviceAccessOverrideRequest.h:196
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::GetDeviceId
const Aws::String & GetDeviceId() const
Definition: PutMobileDeviceAccessOverrideRequest.h:172
WorkMailRequest.h
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: PutMobileDeviceAccessOverrideRequest.h:266
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SetEffect
void SetEffect(const MobileDeviceAccessRuleEffect &value)
Definition: PutMobileDeviceAccessOverrideRequest.h:230
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SetUserId
void SetUserId(const Aws::String &value)
Definition: PutMobileDeviceAccessOverrideRequest.h:115
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::WithDeviceId
PutMobileDeviceAccessOverrideRequest & WithDeviceId(const char *value)
Definition: PutMobileDeviceAccessOverrideRequest.h:214
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::WithOrganizationId
PutMobileDeviceAccessOverrideRequest & WithOrganizationId(const Aws::String &value)
Definition: PutMobileDeviceAccessOverrideRequest.h:72
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::WithUserId
PutMobileDeviceAccessOverrideRequest & WithUserId(const char *value)
Definition: PutMobileDeviceAccessOverrideRequest.h:165
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::WithEffect
PutMobileDeviceAccessOverrideRequest & WithEffect(const MobileDeviceAccessRuleEffect &value)
Definition: PutMobileDeviceAccessOverrideRequest.h:240
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::WithUserId
PutMobileDeviceAccessOverrideRequest & WithUserId(const Aws::String &value)
Definition: PutMobileDeviceAccessOverrideRequest.h:145
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SetDescription
void SetDescription(const char *value)
Definition: PutMobileDeviceAccessOverrideRequest.h:271
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: PutMobileDeviceAccessOverrideRequest.h:261
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SetDeviceId
void SetDeviceId(Aws::String &&value)
Definition: PutMobileDeviceAccessOverrideRequest.h:190
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::WithOrganizationId
PutMobileDeviceAccessOverrideRequest & WithOrganizationId(const char *value)
Definition: PutMobileDeviceAccessOverrideRequest.h:84
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: PutMobileDeviceAccessOverrideRequest.h:60
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: PutMobileDeviceAccessOverrideRequest.h:54
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SetUserId
void SetUserId(const char *value)
Definition: PutMobileDeviceAccessOverrideRequest.h:135
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: PutMobileDeviceAccessOverrideRequest.h:42
AWSString.h
MobileDeviceAccessRuleEffect.h
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::WithDeviceId
PutMobileDeviceAccessOverrideRequest & WithDeviceId(const Aws::String &value)
Definition: PutMobileDeviceAccessOverrideRequest.h:202
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::PutMobileDeviceAccessOverrideRequest
PutMobileDeviceAccessOverrideRequest()
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::GetEffect
const MobileDeviceAccessRuleEffect & GetEffect() const
Definition: PutMobileDeviceAccessOverrideRequest.h:220
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::EffectHasBeenSet
bool EffectHasBeenSet() const
Definition: PutMobileDeviceAccessOverrideRequest.h:225
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: PutMobileDeviceAccessOverrideRequest.h:105
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::WithDescription
PutMobileDeviceAccessOverrideRequest & WithDescription(const char *value)
Definition: PutMobileDeviceAccessOverrideRequest.h:286
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::PutMobileDeviceAccessOverrideRequest::WithUserId
PutMobileDeviceAccessOverrideRequest & WithUserId(Aws::String &&value)
Definition: PutMobileDeviceAccessOverrideRequest.h:155
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::GetUserId
const Aws::String & GetUserId() const
Definition: PutMobileDeviceAccessOverrideRequest.h:95
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest::WithDeviceId
PutMobileDeviceAccessOverrideRequest & WithDeviceId(Aws::String &&value)
Definition: PutMobileDeviceAccessOverrideRequest.h:208
Aws::WorkMail::Model::PutMobileDeviceAccessOverrideRequest
Definition: PutMobileDeviceAccessOverrideRequest.h:23