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

namespace Microsoft.Azure.Management.WebSites.Models
{
    using System;
    using System.Linq;
    using System.Collections.Generic;
    using Newtonsoft.Json;
    using Microsoft.Rest;
    using Microsoft.Rest.Serialization;
    using Microsoft.Rest.Azure;

    /// <summary>
    /// Note: properties are serialized in JSON format and stored in DB.
    /// if new properties are added they might not be in the
    /// previous data rows
    /// so please handle nulls
    /// </summary>
    public partial class DatabaseBackupSetting
    {
        /// <summary>
        /// Initializes a new instance of the DatabaseBackupSetting class.
        /// </summary>
        public DatabaseBackupSetting() { }

        /// <summary>
        /// Initializes a new instance of the DatabaseBackupSetting class.
        /// </summary>
        public DatabaseBackupSetting(string databaseType = default(string), string name = default(string), string connectionStringName = default(string), string connectionString = default(string))
        {
            DatabaseType = databaseType;
            Name = name;
            ConnectionStringName = connectionStringName;
            ConnectionString = connectionString;
        }

        /// <summary>
        /// SqlAzure / MySql
        /// </summary>
        [JsonProperty(PropertyName = "databaseType")]
        public string DatabaseType { get; set; }

        /// <summary>
        /// </summary>
        [JsonProperty(PropertyName = "name")]
        public string Name { get; set; }

        /// <summary>
        /// Contains a connection string name that is linked to the
        /// SiteConfig.ConnectionStrings.
        /// This is used during restore with overwrite connection
        /// strings options.
        /// </summary>
        [JsonProperty(PropertyName = "connectionStringName")]
        public string ConnectionStringName { get; set; }

        /// <summary>
        /// Contains a connection string to a database which is being backed
        /// up/restored. If the restore should happen to a new database, the
        /// database name inside is the new one.
        /// </summary>
        [JsonProperty(PropertyName = "connectionString")]
        public string ConnectionString { get; set; }

    }
}
