/*
* 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 workdocs-2016-05-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.WorkDocs.Model
{
///
/// Describes the share results of a resource.
///
public partial class ShareResult
{
private string _inviteePrincipalId;
private string _principalId;
private RoleType _role;
private string _shareId;
private ShareStatusType _status;
private string _statusMessage;
///
/// Gets and sets the property InviteePrincipalId.
///
/// The ID of the invited user.
///
///
[AWSProperty(Min=1, Max=256)]
public string InviteePrincipalId
{
get { return this._inviteePrincipalId; }
set { this._inviteePrincipalId = value; }
}
// Check to see if InviteePrincipalId property is set
internal bool IsSetInviteePrincipalId()
{
return this._inviteePrincipalId != null;
}
///
/// Gets and sets the property PrincipalId.
///
/// The ID of the principal.
///
///
[AWSProperty(Min=1, Max=256)]
public string PrincipalId
{
get { return this._principalId; }
set { this._principalId = value; }
}
// Check to see if PrincipalId property is set
internal bool IsSetPrincipalId()
{
return this._principalId != null;
}
///
/// Gets and sets the property Role.
///
/// The role.
///
///
public RoleType Role
{
get { return this._role; }
set { this._role = value; }
}
// Check to see if Role property is set
internal bool IsSetRole()
{
return this._role != null;
}
///
/// Gets and sets the property ShareId.
///
/// The ID of the resource that was shared.
///
///
[AWSProperty(Min=1, Max=128)]
public string ShareId
{
get { return this._shareId; }
set { this._shareId = value; }
}
// Check to see if ShareId property is set
internal bool IsSetShareId()
{
return this._shareId != null;
}
///
/// Gets and sets the property Status.
///
/// The status.
///
///
public ShareStatusType Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property StatusMessage.
///
/// The status message.
///
///
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string StatusMessage
{
get { return this._statusMessage; }
set { this._statusMessage = value; }
}
// Check to see if StatusMessage property is set
internal bool IsSetStatusMessage()
{
return this._statusMessage != null;
}
}
}