// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

namespace Microsoft.Azure.Management.Analysis.Models
{
    using Microsoft.Azure;
    using Microsoft.Azure.Management;
    using Microsoft.Azure.Management.Analysis;
    using Newtonsoft.Json;
    using System.Linq;

    /// <summary>
    /// An object that represents SKU details for existing resources
    /// </summary>
    public partial class SkuDetailsForExistingResource
    {
        /// <summary>
        /// Initializes a new instance of the SkuDetailsForExistingResource
        /// class.
        /// </summary>
        public SkuDetailsForExistingResource()
        {
          CustomInit();
        }

        /// <summary>
        /// Initializes a new instance of the SkuDetailsForExistingResource
        /// class.
        /// </summary>
        /// <param name="sku">The SKU in SKU details for existing
        /// resources.</param>
        public SkuDetailsForExistingResource(ResourceSku sku = default(ResourceSku))
        {
            Sku = sku;
            CustomInit();
        }

        /// <summary>
        /// An initialization method that performs custom operations like setting defaults
        /// </summary>
        partial void CustomInit();

        /// <summary>
        /// Gets or sets the SKU in SKU details for existing resources.
        /// </summary>
        [JsonProperty(PropertyName = "sku")]
        public ResourceSku Sku { get; set; }

        /// <summary>
        /// Validate the object.
        /// </summary>
        /// <exception cref="Rest.ValidationException">
        /// Thrown if validation fails
        /// </exception>
        public virtual void Validate()
        {
            if (Sku != null)
            {
                Sku.Validate();
            }
        }
    }
}
