// <auto-generated/>

#nullable disable

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

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

        public InternalCreateContainerBody(string name)
        {
            Argument.AssertNotNull(name, nameof(name));

            Name = name;
            FileIds = new ChangeTrackingList<string>();
        }

        internal InternalCreateContainerBody(string name, IList<string> fileIds, InternalCreateContainerBodyExpiresAfter expiresAfter, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Name = name;
            FileIds = fileIds ?? new ChangeTrackingList<string>();
            ExpiresAfter = expiresAfter;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string Name { get; }

        public IList<string> FileIds { get; }

        internal InternalCreateContainerBodyExpiresAfter ExpiresAfter { get; set; }

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