// 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.WebSites.Models
{
    using Azure;
    using Management;
    using WebSites;
    using Rest;
    using Rest.Serialization;
    using Newtonsoft.Json;
    using System.Collections;
    using System.Collections.Generic;
    using System.Linq;

    /// <summary>
    /// Domain ownership Identifier.
    /// </summary>
    [JsonTransformation]
    public partial class DomainOwnershipIdentifier : Resource
    {
        /// <summary>
        /// Initializes a new instance of the DomainOwnershipIdentifier class.
        /// </summary>
        public DomainOwnershipIdentifier() { }

        /// <summary>
        /// Initializes a new instance of the DomainOwnershipIdentifier class.
        /// </summary>
        /// <param name="location">Resource Location.</param>
        /// <param name="id">Resource Id.</param>
        /// <param name="name">Resource Name.</param>
        /// <param name="kind">Kind of resource.</param>
        /// <param name="type">Resource type.</param>
        /// <param name="tags">Resource tags.</param>
        /// <param name="ownershipId">Ownership Id.</param>
        public DomainOwnershipIdentifier(string location, string id = default(string), string name = default(string), string kind = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), string ownershipId = default(string))
            : base(location, id, name, kind, type, tags)
        {
            OwnershipId = ownershipId;
        }

        /// <summary>
        /// Gets or sets ownership Id.
        /// </summary>
        [JsonProperty(PropertyName = "properties.ownershipId")]
        public string OwnershipId { get; set; }

        /// <summary>
        /// Validate the object.
        /// </summary>
        /// <exception cref="ValidationException">
        /// Thrown if validation fails
        /// </exception>
        public override void Validate()
        {
            base.Validate();
        }
    }
}

