/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the workmail-2017-10-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.WorkMail.Model { /// /// The override object. /// public partial class MobileDeviceAccessOverride { private DateTime? _dateCreated; private DateTime? _dateModified; private string _description; private string _deviceId; private MobileDeviceAccessRuleEffect _effect; private string _userId; /// /// Gets and sets the property DateCreated. /// /// The date the override was first created. /// /// public DateTime DateCreated { get { return this._dateCreated.GetValueOrDefault(); } set { this._dateCreated = value; } } // Check to see if DateCreated property is set internal bool IsSetDateCreated() { return this._dateCreated.HasValue; } /// /// Gets and sets the property DateModified. /// /// The date the override was last modified. /// /// public DateTime DateModified { get { return this._dateModified.GetValueOrDefault(); } set { this._dateModified = value; } } // Check to see if DateModified property is set internal bool IsSetDateModified() { return this._dateModified.HasValue; } /// /// Gets and sets the property Description. /// /// A description of the override. /// /// [AWSProperty(Min=1, Max=256)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property DeviceId. /// /// The device to which the override applies. /// /// [AWSProperty(Min=1, Max=32)] public string DeviceId { get { return this._deviceId; } set { this._deviceId = value; } } // Check to see if DeviceId property is set internal bool IsSetDeviceId() { return this._deviceId != null; } /// /// Gets and sets the property Effect. /// /// The effect of the override, ALLOW or DENY. /// /// public MobileDeviceAccessRuleEffect Effect { get { return this._effect; } set { this._effect = value; } } // Check to see if Effect property is set internal bool IsSetEffect() { return this._effect != null; } /// /// Gets and sets the property UserId. /// /// The WorkMail user to which the access override applies. /// /// [AWSProperty(Min=12, Max=256)] public string UserId { get { return this._userId; } set { this._userId = value; } } // Check to see if UserId property is set internal bool IsSetUserId() { return this._userId != null; } } }