// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

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

        internal FineTuningJobEvent(string id, DateTimeOffset createdAt, FineTuningJobEventLevel level, string message)
        {
            Id = id;
            CreatedAt = createdAt;
            Level = level;
            Message = message;
        }

        internal FineTuningJobEvent(InternalFineTuningJobEventObject @object, string id, DateTimeOffset createdAt, FineTuningJobEventLevel level, string message, InternalFineTuningJobEventType? @type, BinaryData data, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Object = @object;
            Id = id;
            CreatedAt = createdAt;
            Level = level;
            Message = message;
            Type = @type;
            Data = data;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public InternalFineTuningJobEventObject Object { get; } = "fine_tuning.job.event";

        public string Id { get; }

        public DateTimeOffset CreatedAt { get; }

        public FineTuningJobEventLevel Level { get; }

        public string Message { get; }

        public InternalFineTuningJobEventType? Type { get; }

        public BinaryData Data { get; }

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