/*
* 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
{
///
/// Container for the parameters to the PutMobileDeviceAccessOverride operation.
/// Creates or updates a mobile device access override for the given WorkMail organization,
/// user, and device.
///
public partial class PutMobileDeviceAccessOverrideRequest : AmazonWorkMailRequest
{
private string _description;
private string _deviceId;
private MobileDeviceAccessRuleEffect _effect;
private string _organizationId;
private string _userId;
///
/// 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 mobile device for which you create the override. DeviceId
is case
/// insensitive.
///
///
[AWSProperty(Required=true, 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
.
///
///
[AWSProperty(Required=true)]
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 OrganizationId.
///
/// Identifies the WorkMail organization for which you create the override.
///
///
[AWSProperty(Required=true, Min=34, Max=34)]
public string OrganizationId
{
get { return this._organizationId; }
set { this._organizationId = value; }
}
// Check to see if OrganizationId property is set
internal bool IsSetOrganizationId()
{
return this._organizationId != null;
}
///
/// Gets and sets the property UserId.
///
/// The WorkMail user for which you create the override. Accepts the following types of
/// user identities:
///
/// -
///
/// User ID:
12345678-1234-1234-1234-123456789012
or S-1-1-12-1234567890-123456789-123456789-1234
///
///
/// -
///
/// Email address:
user@domain.tld
///
/// -
///
/// User name:
user
///
///
///
[AWSProperty(Required=true, Min=1, 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;
}
}
}