// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using OpenAI;

namespace OpenAI.Containers
{
    [Experimental("OPENAI001")]
    public partial class CreateContainerBody
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

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

        internal CreateContainerBody(string name, IList<string> fileIds, CreateContainerBodyExpiresAfter 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; }

        public CreateContainerBodyExpiresAfter ExpiresAfter { get; }

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