// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using OpenAI;

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

        internal VectorStoreFileAssociation(DateTimeOffset createdAt, string vectorStoreId, VectorStoreFileAssociationStatus status, VectorStoreFileAssociationError lastError, string fileId, int size)
        {
            CreatedAt = createdAt;
            VectorStoreId = vectorStoreId;
            Status = status;
            LastError = lastError;
            FileId = fileId;
            Size = size;
            Attributes = new ChangeTrackingDictionary<string, BinaryData>();
        }

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

        public DateTimeOffset CreatedAt { get; }

        public string VectorStoreId { get; }

        public VectorStoreFileAssociationStatus Status { get; }

        public VectorStoreFileAssociationError LastError { get; }

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