// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

namespace ApplicationGateway.Models
{
    using Microsoft.Rest;
    using Newtonsoft.Json;
    using System.Linq;

    /// <summary>
    /// VpnClientParameters
    /// </summary>
    public partial class VpnClientParameters
    {
        /// <summary>
        /// Initializes a new instance of the VpnClientParameters class.
        /// </summary>
        public VpnClientParameters()
        {
          CustomInit();
        }

        /// <summary>
        /// Initializes a new instance of the VpnClientParameters class.
        /// </summary>
        /// <param name="processorArchitecture">VPN client Processor
        /// Architecture. Possible values are: 'AMD64' and 'X86'. Possible
        /// values include: 'Amd64', 'X86'</param>
        public VpnClientParameters(string processorArchitecture)
        {
            ProcessorArchitecture = processorArchitecture;
            CustomInit();
        }

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

        /// <summary>
        /// Gets or sets VPN client Processor Architecture. Possible values
        /// are: 'AMD64' and 'X86'. Possible values include: 'Amd64', 'X86'
        /// </summary>
        [JsonProperty(PropertyName = "ProcessorArchitecture")]
        public string ProcessorArchitecture { get; set; }

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