// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.VectorStores
{
    public partial class VectorStoreFileAssociation
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        internal VectorStoreFileAssociation(DateTimeOffset createdAt, string vectorStoreId, VectorStores.VectorStoreFileAssociationStatus status, VectorStoreFileAssociationError lastError, string fileId, int size)
        {
            CreatedAt = createdAt;
            VectorStoreId = vectorStoreId;
            Status = status;
            LastError = lastError;
            FileId = fileId;
            Size = size;
        }

        internal VectorStoreFileAssociation(DateTimeOffset createdAt, string vectorStoreId, VectorStores.VectorStoreFileAssociationStatus status, VectorStoreFileAssociationError lastError, InternalVectorStoreFileObjectObject @object, string fileId, int size, FileChunkingStrategy chunkingStrategy, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            CreatedAt = createdAt;
            VectorStoreId = vectorStoreId;
            Status = status;
            LastError = lastError;
            this.Object = @object;
            FileId = fileId;
            Size = size;
            ChunkingStrategy = chunkingStrategy;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public DateTimeOffset CreatedAt { get; }

        public string VectorStoreId { get; }

        public VectorStores.VectorStoreFileAssociationStatus Status { get; }

        public VectorStoreFileAssociationError LastError { get; }

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