// ------------------------------------------------------------------------------
//  Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
// ------------------------------------------------------------------------------

// **NOTE** This file was generated by a tool and any changes will be overwritten.

// Template Source: Templates\CSharp\Model\EntityType.cs.tt

namespace Microsoft.Graph
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Runtime.Serialization;
    using Newtonsoft.Json;

    /// <summary>
    /// The type File Attachment.
    /// </summary>
    [JsonObject(MemberSerialization = MemberSerialization.OptIn)]
    public partial class FileAttachment : Attachment
    {
    
        /// <summary>
        /// Gets or sets content id.
        /// The ID of the attachment in the Exchange store.
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "contentId", Required = Newtonsoft.Json.Required.Default)]
        public string ContentId { get; set; }
    
        /// <summary>
        /// Gets or sets content location.
        /// The Uniform Resource Identifier (URI) that corresponds to the location of the content of the attachment.
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "contentLocation", Required = Newtonsoft.Json.Required.Default)]
        public string ContentLocation { get; set; }
    
        /// <summary>
        /// Gets or sets content bytes.
        /// The binary contents of the file.
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "contentBytes", Required = Newtonsoft.Json.Required.Default)]
        public byte[] ContentBytes { get; set; }
    
    }
}

