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

// <auto-generated/>

#nullable disable

using System;

namespace SampleTypeSpec
{
    /// <summary> A nested model for XML testing. </summary>
    public partial class XmlNestedModel
    {
        /// <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> 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; }
    }
}
