// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.Files
{
    internal partial class InternalUploadPart
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        internal InternalUploadPart(string id, DateTimeOffset createdAt, string uploadId)
        {
            Id = id;
            CreatedAt = createdAt;
            UploadId = uploadId;
        }

        internal InternalUploadPart(string id, DateTimeOffset createdAt, string uploadId, string @object, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Id = id;
            CreatedAt = createdAt;
            UploadId = uploadId;
            Object = @object;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string Id { get; }

        public DateTimeOffset CreatedAt { get; }

        public string UploadId { get; }

        public string Object { get; } = "upload.part";

        internal IDictionary<string, BinaryData> SerializedAdditionalRawData
        {
            get => _additionalBinaryDataProperties;
            set => _additionalBinaryDataProperties = value;
        }
    }
}
