/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The override object.See Also:
AWS
* API Reference
The WorkMail user to which the access override applies.
*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *The WorkMail user to which the access override applies.
*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *The WorkMail user to which the access override applies.
*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *The WorkMail user to which the access override applies.
*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *The WorkMail user to which the access override applies.
*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *The WorkMail user to which the access override applies.
*/ inline MobileDeviceAccessOverride& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *The WorkMail user to which the access override applies.
*/ inline MobileDeviceAccessOverride& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *The WorkMail user to which the access override applies.
*/ inline MobileDeviceAccessOverride& WithUserId(const char* value) { SetUserId(value); return *this;} /** *The device to which the override applies.
*/ inline const Aws::String& GetDeviceId() const{ return m_deviceId; } /** *The device to which the override applies.
*/ inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; } /** *The device to which the override applies.
*/ inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; } /** *The device to which the override applies.
*/ inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); } /** *The device to which the override applies.
*/ inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); } /** *The device to which the override applies.
*/ inline MobileDeviceAccessOverride& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;} /** *The device to which the override applies.
*/ inline MobileDeviceAccessOverride& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;} /** *The device to which the override applies.
*/ inline MobileDeviceAccessOverride& WithDeviceId(const char* value) { SetDeviceId(value); return *this;} /** *The effect of the override, ALLOW
or DENY
.
The effect of the override, ALLOW
or DENY
.
The effect of the override, ALLOW
or DENY
.
The effect of the override, ALLOW
or DENY
.
The effect of the override, ALLOW
or DENY
.
The effect of the override, ALLOW
or DENY
.
A description of the override.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *A description of the override.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *A description of the override.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *A description of the override.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *A description of the override.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *A description of the override.
*/ inline MobileDeviceAccessOverride& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description of the override.
*/ inline MobileDeviceAccessOverride& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description of the override.
*/ inline MobileDeviceAccessOverride& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The date the override was first created.
*/ inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; } /** *The date the override was first created.
*/ inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; } /** *The date the override was first created.
*/ inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; } /** *The date the override was first created.
*/ inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); } /** *The date the override was first created.
*/ inline MobileDeviceAccessOverride& WithDateCreated(const Aws::Utils::DateTime& value) { SetDateCreated(value); return *this;} /** *The date the override was first created.
*/ inline MobileDeviceAccessOverride& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(std::move(value)); return *this;} /** *The date the override was last modified.
*/ inline const Aws::Utils::DateTime& GetDateModified() const{ return m_dateModified; } /** *The date the override was last modified.
*/ inline bool DateModifiedHasBeenSet() const { return m_dateModifiedHasBeenSet; } /** *The date the override was last modified.
*/ inline void SetDateModified(const Aws::Utils::DateTime& value) { m_dateModifiedHasBeenSet = true; m_dateModified = value; } /** *The date the override was last modified.
*/ inline void SetDateModified(Aws::Utils::DateTime&& value) { m_dateModifiedHasBeenSet = true; m_dateModified = std::move(value); } /** *The date the override was last modified.
*/ inline MobileDeviceAccessOverride& WithDateModified(const Aws::Utils::DateTime& value) { SetDateModified(value); return *this;} /** *The date the override was last modified.
*/ inline MobileDeviceAccessOverride& WithDateModified(Aws::Utils::DateTime&& value) { SetDateModified(std::move(value)); return *this;} private: Aws::String m_userId; bool m_userIdHasBeenSet = false; Aws::String m_deviceId; bool m_deviceIdHasBeenSet = false; MobileDeviceAccessRuleEffect m_effect; bool m_effectHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_dateCreated; bool m_dateCreatedHasBeenSet = false; Aws::Utils::DateTime m_dateModified; bool m_dateModifiedHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws