// 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.RecoveryServices.SiteRecovery.Models
{
    using Microsoft.Azure;
    using Microsoft.Azure.Management;
    using Microsoft.Azure.Management.RecoveryServices;
    using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
    using Newtonsoft.Json;
    using System.Linq;

    /// <summary>
    /// Network Mapping model.
    /// Ideally it should have been possible to inherit this class from prev
    /// version in
    /// InheritedModels as long as there is no difference in structure or
    /// method signature.
    /// Since there were no base Models for certain fields and methods viz
    /// NetworkMappingProperties
    /// and Load with required return type, the class has been introduced in
    /// its entirety with
    /// references to base models to facilitate exensions in subsequent
    /// versions.
    /// </summary>
    public partial class NetworkMapping : Resource
    {
        /// <summary>
        /// Initializes a new instance of the NetworkMapping class.
        /// </summary>
        public NetworkMapping()
        {
          CustomInit();
        }

        /// <summary>
        /// Initializes a new instance of the NetworkMapping class.
        /// </summary>
        /// <param name="id">Resource Id</param>
        /// <param name="name">Resource Name</param>
        /// <param name="type">Resource Type</param>
        /// <param name="location">Resource Location</param>
        /// <param name="properties">The Network Mapping Properties.</param>
        public NetworkMapping(string id = default(string), string name = default(string), string type = default(string), string location = default(string), NetworkMappingProperties properties = default(NetworkMappingProperties))
            : base(id, name, type, location)
        {
            Properties = properties;
            CustomInit();
        }

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

        /// <summary>
        /// Gets or sets the Network Mapping Properties.
        /// </summary>
        [JsonProperty(PropertyName = "properties")]
        public NetworkMappingProperties Properties { get; set; }

    }
}
