// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.Batch
{
    internal partial class InternalCreateBatchRequest
    {
        internal IDictionary<string, BinaryData> _serializedAdditionalRawData;

        public InternalCreateBatchRequest(string inputFileId, InternalBatchOperationEndpoint endpoint)
        {
            Argument.AssertNotNull(inputFileId, nameof(inputFileId));

            InputFileId = inputFileId;
            Endpoint = endpoint;
            Metadata = new ChangeTrackingDictionary<string, string>();
        }

        internal InternalCreateBatchRequest(string inputFileId, InternalBatchOperationEndpoint endpoint, InternalBatchCompletionTimeframe completionWindow, IDictionary<string, string> metadata, IDictionary<string, BinaryData> serializedAdditionalRawData)
        {
            InputFileId = inputFileId;
            Endpoint = endpoint;
            CompletionWindow = completionWindow;
            Metadata = metadata;
            _serializedAdditionalRawData = serializedAdditionalRawData;
        }

        internal InternalCreateBatchRequest()
        {
        }

        public string InputFileId { get; }
        public InternalBatchOperationEndpoint Endpoint { get; }
        public InternalBatchCompletionTimeframe CompletionWindow { get; } = InternalBatchCompletionTimeframe._24h;

        public IDictionary<string, string> Metadata { get; set; }
    }
}
