/* * 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 document. /// public partial class DocumentMetadata { private DateTime? _createdTimestamp; private string _creatorId; private string _id; private List _labels = new List(); private DocumentVersionMetadata _latestVersionMetadata; private DateTime? _modifiedTimestamp; private string _parentFolderId; private ResourceStateType _resourceState; /// /// Gets and sets the property CreatedTimestamp. /// /// The time when the document was created. /// /// public DateTime CreatedTimestamp { get { return this._createdTimestamp.GetValueOrDefault(); } set { this._createdTimestamp = value; } } // Check to see if CreatedTimestamp property is set internal bool IsSetCreatedTimestamp() { return this._createdTimestamp.HasValue; } /// /// Gets and sets the property CreatorId. /// /// The ID of the creator. /// /// [AWSProperty(Min=1, Max=256)] public string CreatorId { get { return this._creatorId; } set { this._creatorId = value; } } // Check to see if CreatorId property is set internal bool IsSetCreatorId() { return this._creatorId != null; } /// /// Gets and sets the property Id. /// /// The ID of the document. /// /// [AWSProperty(Min=1, Max=128)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// /// Gets and sets the property Labels. /// /// List of labels on the document. /// /// [AWSProperty(Max=20)] public List Labels { get { return this._labels; } set { this._labels = value; } } // Check to see if Labels property is set internal bool IsSetLabels() { return this._labels != null && this._labels.Count > 0; } /// /// Gets and sets the property LatestVersionMetadata. /// /// The latest version of the document. /// /// public DocumentVersionMetadata LatestVersionMetadata { get { return this._latestVersionMetadata; } set { this._latestVersionMetadata = value; } } // Check to see if LatestVersionMetadata property is set internal bool IsSetLatestVersionMetadata() { return this._latestVersionMetadata != null; } /// /// Gets and sets the property ModifiedTimestamp. /// /// The time when the document was updated. /// /// public DateTime ModifiedTimestamp { get { return this._modifiedTimestamp.GetValueOrDefault(); } set { this._modifiedTimestamp = value; } } // Check to see if ModifiedTimestamp property is set internal bool IsSetModifiedTimestamp() { return this._modifiedTimestamp.HasValue; } /// /// Gets and sets the property ParentFolderId. /// /// The ID of the parent folder. /// /// [AWSProperty(Min=1, Max=128)] public string ParentFolderId { get { return this._parentFolderId; } set { this._parentFolderId = value; } } // Check to see if ParentFolderId property is set internal bool IsSetParentFolderId() { return this._parentFolderId != null; } /// /// Gets and sets the property ResourceState. /// /// The resource state. /// /// public ResourceStateType ResourceState { get { return this._resourceState; } set { this._resourceState = value; } } // Check to see if ResourceState property is set internal bool IsSetResourceState() { return this._resourceState != null; } } }