/* * 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 mediastore-data-2017-09-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.MediaStoreData.Model { /// /// A metadata entry for a folder or object. /// public partial class Item { private long? _contentLength; private string _contentType; private string _eTag; private DateTime? _lastModified; private string _name; private ItemType _type; /// /// Gets and sets the property ContentLength. /// /// The length of the item in bytes. /// /// [AWSProperty(Min=0)] public long ContentLength { get { return this._contentLength.GetValueOrDefault(); } set { this._contentLength = value; } } // Check to see if ContentLength property is set internal bool IsSetContentLength() { return this._contentLength.HasValue; } /// /// Gets and sets the property ContentType. /// /// The content type of the item. /// /// public string ContentType { get { return this._contentType; } set { this._contentType = value; } } // Check to see if ContentType property is set internal bool IsSetContentType() { return this._contentType != null; } /// /// Gets and sets the property ETag. /// /// The ETag that represents a unique instance of the item. /// /// [AWSProperty(Min=1, Max=64)] public string ETag { get { return this._eTag; } set { this._eTag = value; } } // Check to see if ETag property is set internal bool IsSetETag() { return this._eTag != null; } /// /// Gets and sets the property LastModified. /// /// The date and time that the item was last modified. /// /// public DateTime LastModified { get { return this._lastModified.GetValueOrDefault(); } set { this._lastModified = value; } } // Check to see if LastModified property is set internal bool IsSetLastModified() { return this._lastModified.HasValue; } /// /// Gets and sets the property Name. /// /// The name of the item. /// /// 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 Type. /// /// The item type (folder or object). /// /// public ItemType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }