// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace SampleTypeSpec
{
    /// <summary> Pet is a discriminated animal. </summary>
    public partial class Pet : Animal
    {
        /// <summary> Initializes a new instance of <see cref="Pet"/>. </summary>
        /// <param name="name"> Name of the animal. </param>
        /// <param name="trained"> Whether the pet is trained. </param>
        /// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception>
        public Pet(string name, bool trained) : base("pet", name)
        {
            Argument.AssertNotNull(name, nameof(name));

            Trained = trained;
        }

        /// <summary> Initializes a new instance of <see cref="Pet"/>. </summary>
        /// <param name="kind"> The kind of animal. </param>
        /// <param name="name"> Name of the animal. </param>
        /// <param name="additionalBinaryDataProperties"> Keeps track of any properties unknown to the library. </param>
        /// <param name="trained"> Whether the pet is trained. </param>
        internal Pet(string kind, string name, IDictionary<string, BinaryData> additionalBinaryDataProperties, bool trained) : base(kind, name, additionalBinaryDataProperties)
        {
            Trained = trained;
        }

        /// <summary> Initializes a new instance of <see cref="Pet"/>. </summary>
        /// <param name="kind"> The kind of animal. </param>
        /// <param name="name"> Name of the animal. </param>
        /// <param name="trained"> Whether the pet is trained. </param>
        private protected Pet(string kind, string name, bool trained) : base(kind, name)
        {
            Trained = trained;
        }

        /// <summary> Whether the pet is trained. </summary>
        public bool Trained { get; set; }
    }
}
