/*
* 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 activity information.
///
public partial class Activity
{
private CommentMetadata _commentMetadata;
private UserMetadata _initiator;
private bool? _isIndirectActivity;
private string _organizationId;
private ResourceMetadata _originalParent;
private Participants _participants;
private ResourceMetadata _resourceMetadata;
private DateTime? _timeStamp;
private ActivityType _type;
///
/// Gets and sets the property CommentMetadata.
///
/// Metadata of the commenting activity. This is an optional field and is filled for commenting
/// activities.
///
///
public CommentMetadata CommentMetadata
{
get { return this._commentMetadata; }
set { this._commentMetadata = value; }
}
// Check to see if CommentMetadata property is set
internal bool IsSetCommentMetadata()
{
return this._commentMetadata != null;
}
///
/// Gets and sets the property Initiator.
///
/// The user who performed the action.
///
///
public UserMetadata Initiator
{
get { return this._initiator; }
set { this._initiator = value; }
}
// Check to see if Initiator property is set
internal bool IsSetInitiator()
{
return this._initiator != null;
}
///
/// Gets and sets the property IsIndirectActivity.
///
/// Indicates whether an activity is indirect or direct. An indirect activity results
/// from a direct activity performed on a parent resource. For example, sharing a parent
/// folder (the direct activity) shares all of the subfolders and documents within the
/// parent folder (the indirect activity).
///
///
public bool IsIndirectActivity
{
get { return this._isIndirectActivity.GetValueOrDefault(); }
set { this._isIndirectActivity = value; }
}
// Check to see if IsIndirectActivity property is set
internal bool IsSetIsIndirectActivity()
{
return this._isIndirectActivity.HasValue;
}
///
/// Gets and sets the property OrganizationId.
///
/// The ID of the organization.
///
///
[AWSProperty(Min=1, Max=256)]
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 OriginalParent.
///
/// The original parent of the resource. This is an optional field and is filled for move
/// activities.
///
///
public ResourceMetadata OriginalParent
{
get { return this._originalParent; }
set { this._originalParent = value; }
}
// Check to see if OriginalParent property is set
internal bool IsSetOriginalParent()
{
return this._originalParent != null;
}
///
/// Gets and sets the property Participants.
///
/// The list of users or groups impacted by this action. This is an optional field and
/// is filled for the following sharing activities: DOCUMENT_SHARED, DOCUMENT_SHARED,
/// DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.
///
///
public Participants Participants
{
get { return this._participants; }
set { this._participants = value; }
}
// Check to see if Participants property is set
internal bool IsSetParticipants()
{
return this._participants != null;
}
///
/// Gets and sets the property ResourceMetadata.
///
/// The metadata of the resource involved in the user action.
///
///
public ResourceMetadata ResourceMetadata
{
get { return this._resourceMetadata; }
set { this._resourceMetadata = value; }
}
// Check to see if ResourceMetadata property is set
internal bool IsSetResourceMetadata()
{
return this._resourceMetadata != null;
}
///
/// Gets and sets the property TimeStamp.
///
/// The timestamp when the action was performed.
///
///
public DateTime TimeStamp
{
get { return this._timeStamp.GetValueOrDefault(); }
set { this._timeStamp = value; }
}
// Check to see if TimeStamp property is set
internal bool IsSetTimeStamp()
{
return this._timeStamp.HasValue;
}
///
/// Gets and sets the property Type.
///
/// The activity type.
///
///
public ActivityType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}