// 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 1.0.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

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

    /// <summary>
    /// VirtualNetworkGatewaySku details
    /// </summary>
    public partial class VirtualNetworkGatewaySku
    {
        /// <summary>
        /// Initializes a new instance of the VirtualNetworkGatewaySku class.
        /// </summary>
        public VirtualNetworkGatewaySku() { }

        /// <summary>
        /// Initializes a new instance of the VirtualNetworkGatewaySku class.
        /// </summary>
        /// <param name="name">Gateway SKU name. Possible values are: 'Basic',
        /// 'HighPerformance','Standard', and 'UltraPerformance'. Possible
        /// values include: 'Basic', 'HighPerformance', 'Standard',
        /// 'UltraPerformance'</param>
        /// <param name="tier">Gateway SKU tier. Possible values are: 'Basic',
        /// 'HighPerformance','Standard', and 'UltraPerformance'. Possible
        /// values include: 'Basic', 'HighPerformance', 'Standard',
        /// 'UltraPerformance'</param>
        /// <param name="capacity">The capacity.</param>
        public VirtualNetworkGatewaySku(string name, string tier, int? capacity = default(int?))
        {
            Name = name;
            Tier = tier;
            Capacity = capacity;
        }

        /// <summary>
        /// Gets or sets gateway SKU name. Possible values are: 'Basic',
        /// 'HighPerformance','Standard', and 'UltraPerformance'. Possible
        /// values include: 'Basic', 'HighPerformance', 'Standard',
        /// 'UltraPerformance'
        /// </summary>
        [JsonProperty(PropertyName = "name")]
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets gateway SKU tier. Possible values are: 'Basic',
        /// 'HighPerformance','Standard', and 'UltraPerformance'. Possible
        /// values include: 'Basic', 'HighPerformance', 'Standard',
        /// 'UltraPerformance'
        /// </summary>
        [JsonProperty(PropertyName = "tier")]
        public string Tier { get; set; }

        /// <summary>
        /// Gets or sets the capacity.
        /// </summary>
        [JsonProperty(PropertyName = "capacity")]
        public int? Capacity { get; set; }

        /// <summary>
        /// Validate the object.
        /// </summary>
        /// <exception cref="ValidationException">
        /// Thrown if validation fails
        /// </exception>
        public virtual void Validate()
        {
            if (Name == null)
            {
                throw new ValidationException(ValidationRules.CannotBeNull, "Name");
            }
            if (Tier == null)
            {
                throw new ValidationException(ValidationRules.CannotBeNull, "Tier");
            }
        }
    }
}

