// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace SampleTypeSpec
{
    /// <summary> A nested model for XML testing. </summary>
    public partial class XmlNestedModel
    {
        /// <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="XmlNestedModel"/>. </summary>
        /// <param name="value"> The value of the nested model. </param>
        /// <param name="nestedId"> An attribute on the nested model. </param>
        /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
        public XmlNestedModel(string value, int nestedId)
        {
            Argument.AssertNotNull(value, nameof(value));

            Value = value;
            NestedId = nestedId;
        }

        /// <summary> Initializes a new instance of <see cref="XmlNestedModel"/>. </summary>
        /// <param name="value"> The value of the nested model. </param>
        /// <param name="nestedId"> An attribute on the nested model. </param>
        /// <param name="additionalBinaryDataProperties"> Keeps track of any properties unknown to the library. </param>
        internal XmlNestedModel(string value, int nestedId, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Value = value;
            NestedId = nestedId;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        /// <summary> The value of the nested model. </summary>
        public string Value { get; set; }

        /// <summary> An attribute on the nested model. </summary>
        public int NestedId { get; set; }
    }
}
