/* * 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 metadata of a resource. /// public partial class ResourceMetadata { private string _id; private string _name; private string _originalName; private UserMetadata _owner; private string _parentId; private ResourceType _type; private string _versionId; /// /// Gets and sets the property Id. /// /// The ID of the resource. /// /// [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 Name. /// /// The name of the resource. /// /// [AWSProperty(Sensitive=true, Min=1, Max=255)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property OriginalName. /// /// The original name of the resource before a rename operation. /// /// [AWSProperty(Sensitive=true, Min=1, Max=255)] public string OriginalName { get { return this._originalName; } set { this._originalName = value; } } // Check to see if OriginalName property is set internal bool IsSetOriginalName() { return this._originalName != null; } /// /// Gets and sets the property Owner. /// /// The owner of the resource. /// /// public UserMetadata Owner { get { return this._owner; } set { this._owner = value; } } // Check to see if Owner property is set internal bool IsSetOwner() { return this._owner != null; } /// /// Gets and sets the property ParentId. /// /// The parent ID of the resource before a rename operation. /// /// [AWSProperty(Min=1, Max=128)] public string ParentId { get { return this._parentId; } set { this._parentId = value; } } // Check to see if ParentId property is set internal bool IsSetParentId() { return this._parentId != null; } /// /// Gets and sets the property Type. /// /// The type of resource. /// /// public ResourceType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// /// Gets and sets the property VersionId. /// /// The version ID of the resource. This is an optional field and is filled for action /// on document version. /// /// [AWSProperty(Min=1, Max=128)] public string VersionId { get { return this._versionId; } set { this._versionId = value; } } // Check to see if VersionId property is set internal bool IsSetVersionId() { return this._versionId != null; } } }