// <auto-generated/>

#nullable disable

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

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

        internal InternalBatchRequestOutputResponse() : this(default, null, null, null)
        {
        }

        internal InternalBatchRequestOutputResponse(int? statusCode, string requestId, IDictionary<string, BinaryData> body, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            StatusCode = statusCode;
            RequestId = requestId;
            Body = body ?? new ChangeTrackingDictionary<string, BinaryData>();
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public int? StatusCode { get; }

        public string RequestId { get; }

        public IDictionary<string, BinaryData> Body { get; }

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