// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace SampleTypeSpec
{
    /// <summary> An item model for XML array testing. </summary>
    public partial class XmlItem
    {
        /// <summary> Keeps track of any properties unknown to the library. </summary>
        private protected readonly IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        /// <summary> Initializes a new instance of <see cref="XmlItem"/>. </summary>
        /// <param name="itemName"> The item name. </param>
        /// <param name="itemValue"> The item value. </param>
        /// <param name="itemId"> Item ID as attribute. </param>
        /// <exception cref="ArgumentNullException"> <paramref name="itemName"/> or <paramref name="itemId"/> is null. </exception>
        public XmlItem(string itemName, int itemValue, string itemId)
        {
            Argument.AssertNotNull(itemName, nameof(itemName));
            Argument.AssertNotNull(itemId, nameof(itemId));

            ItemName = itemName;
            ItemValue = itemValue;
            ItemId = itemId;
        }

        /// <summary> Initializes a new instance of <see cref="XmlItem"/>. </summary>
        /// <param name="itemName"> The item name. </param>
        /// <param name="itemValue"> The item value. </param>
        /// <param name="itemId"> Item ID as attribute. </param>
        /// <param name="additionalBinaryDataProperties"> Keeps track of any properties unknown to the library. </param>
        internal XmlItem(string itemName, int itemValue, string itemId, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            ItemName = itemName;
            ItemValue = itemValue;
            ItemId = itemId;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        /// <summary> The item name. </summary>
        public string ItemName { get; set; }

        /// <summary> The item value. </summary>
        public int ItemValue { get; set; }

        /// <summary> Item ID as attribute. </summary>
        public string ItemId { get; set; }
    }
}
