/// <summary>
 /// Initializes a new instance of the PoolInner class.
 /// </summary>
 /// <param name="displayName">The display name for the pool.</param>
 /// <param name="lastModified">The last modified time of the
 /// pool.</param>
 /// <param name="creationTime">The creation time of the pool.</param>
 /// <param name="provisioningState">The current state of the
 /// pool.</param>
 /// <param name="provisioningStateTransitionTime">The time at which the
 /// pool entered its current state.</param>
 /// <param name="allocationState">Whether the pool is resizing.</param>
 /// <param name="allocationStateTransitionTime">The time at which the
 /// pool entered its current allocation state.</param>
 /// <param name="vmSize">The size of virtual machines in the pool. All
 /// VMs in a pool are the same size.</param>
 /// <param name="deploymentConfiguration">This property describes how
 /// the pool nodes will be deployed - using Cloud Services or Virtual
 /// Machines.</param>
 /// <param name="currentDedicatedNodes">The number of compute nodes
 /// currently in the pool.</param>
 /// <param name="currentLowPriorityNodes">The number of low priority
 /// compute nodes currently in the pool.</param>
 /// <param name="scaleSettings">Settings which configure the number of
 /// nodes in the pool.</param>
 /// <param name="autoScaleRun">The results and errors from the last
 /// execution of the autoscale formula.</param>
 /// <param name="interNodeCommunication">Whether the pool permits
 /// direct communication between nodes.</param>
 /// <param name="networkConfiguration">The network configuration for
 /// the pool.</param>
 /// <param name="maxTasksPerNode">The maximum number of tasks that can
 /// run concurrently on a single compute node in the pool.</param>
 /// <param name="taskSchedulingPolicy">How tasks are distributed across
 /// compute nodes in a pool.</param>
 /// <param name="userAccounts">The list of user accounts to be created
 /// on each node in the pool.</param>
 /// <param name="metadata">A list of name-value pairs associated with
 /// the pool as metadata.</param>
 /// <param name="startTask">A task specified to run on each compute
 /// node as it joins the pool.</param>
 /// <param name="certificates">The list of certificates to be installed
 /// on each compute node in the pool.</param>
 /// <param name="applicationPackages">The list of application packages
 /// to be installed on each compute node in the pool.</param>
 /// <param name="applicationLicenses">The list of application licenses
 /// the Batch service will make available on each compute node in the
 /// pool.</param>
 /// <param name="resizeOperationStatus">Contains details about the
 /// current or last completed resize operation.</param>
 /// <param name="mountConfiguration">A list of file systems to mount on
 /// each node in the pool.</param>
 /// <param name="etag">The ETag of the resource, used for concurrency
 /// statements.</param>
 public PoolInner(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), System.DateTime?lastModified = default(System.DateTime?), System.DateTime?creationTime = default(System.DateTime?), PoolProvisioningState?provisioningState = default(PoolProvisioningState?), System.DateTime?provisioningStateTransitionTime = default(System.DateTime?), AllocationState?allocationState = default(AllocationState?), System.DateTime?allocationStateTransitionTime = default(System.DateTime?), string vmSize = default(string), DeploymentConfiguration deploymentConfiguration = default(DeploymentConfiguration), int?currentDedicatedNodes = default(int?), int?currentLowPriorityNodes = default(int?), ScaleSettings scaleSettings = default(ScaleSettings), AutoScaleRun autoScaleRun = default(AutoScaleRun), InterNodeCommunicationState?interNodeCommunication = default(InterNodeCommunicationState?), NetworkConfiguration networkConfiguration = default(NetworkConfiguration), int?maxTasksPerNode = default(int?), TaskSchedulingPolicy taskSchedulingPolicy = default(TaskSchedulingPolicy), IList <UserAccount> userAccounts = default(IList <UserAccount>), IList <MetadataItem> metadata = default(IList <MetadataItem>), StartTask startTask = default(StartTask), IList <CertificateReference> certificates = default(IList <CertificateReference>), IList <ApplicationPackageReference> applicationPackages = default(IList <ApplicationPackageReference>), IList <string> applicationLicenses = default(IList <string>), ResizeOperationStatus resizeOperationStatus = default(ResizeOperationStatus), IList <MountConfiguration> mountConfiguration = default(IList <MountConfiguration>), string etag = default(string))
     : base(id, name, type)
 {
     DisplayName       = displayName;
     LastModified      = lastModified;
     CreationTime      = creationTime;
     ProvisioningState = provisioningState;
     ProvisioningStateTransitionTime = provisioningStateTransitionTime;
     AllocationState = allocationState;
     AllocationStateTransitionTime = allocationStateTransitionTime;
     VmSize = vmSize;
     DeploymentConfiguration = deploymentConfiguration;
     CurrentDedicatedNodes   = currentDedicatedNodes;
     CurrentLowPriorityNodes = currentLowPriorityNodes;
     ScaleSettings           = scaleSettings;
     AutoScaleRun            = autoScaleRun;
     InterNodeCommunication  = interNodeCommunication;
     NetworkConfiguration    = networkConfiguration;
     MaxTasksPerNode         = maxTasksPerNode;
     TaskSchedulingPolicy    = taskSchedulingPolicy;
     UserAccounts            = userAccounts;
     Metadata              = metadata;
     StartTask             = startTask;
     Certificates          = certificates;
     ApplicationPackages   = applicationPackages;
     ApplicationLicenses   = applicationLicenses;
     ResizeOperationStatus = resizeOperationStatus;
     MountConfiguration    = mountConfiguration;
     Etag = etag;
     CustomInit();
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (DeploymentConfiguration != null)
     {
         DeploymentConfiguration.Validate();
     }
     if (ScaleSettings != null)
     {
         ScaleSettings.Validate();
     }
     if (AutoScaleRun != null)
     {
         AutoScaleRun.Validate();
     }
     if (NetworkConfiguration != null)
     {
         NetworkConfiguration.Validate();
     }
     if (TaskSchedulingPolicy != null)
     {
         TaskSchedulingPolicy.Validate();
     }
     if (UserAccounts != null)
     {
         foreach (var element in UserAccounts)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
     if (Metadata != null)
     {
         foreach (var element1 in Metadata)
         {
             if (element1 != null)
             {
                 element1.Validate();
             }
         }
     }
     if (StartTask != null)
     {
         StartTask.Validate();
     }
     if (Certificates != null)
     {
         foreach (var element2 in Certificates)
         {
             if (element2 != null)
             {
                 element2.Validate();
             }
         }
     }
     if (ApplicationPackages != null)
     {
         foreach (var element3 in ApplicationPackages)
         {
             if (element3 != null)
             {
                 element3.Validate();
             }
         }
     }
     if (MountConfiguration != null)
     {
         foreach (var element4 in MountConfiguration)
         {
             if (element4 != null)
             {
                 element4.Validate();
             }
         }
     }
 }