// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.Sql.Models
{
    using Newtonsoft.Json;
    using System.Linq;

    /// <summary>
    /// Contains information for manual implementation for an Azure SQL
    /// Database, Server or Elastic Pool Recommended Action.
    /// </summary>
    public partial class RecommendedActionImplementationInfo
    {
        /// <summary>
        /// Initializes a new instance of the
        /// RecommendedActionImplementationInfo class.
        /// </summary>
        public RecommendedActionImplementationInfo()
        {
            CustomInit();
        }

        /// <summary>
        /// Initializes a new instance of the
        /// RecommendedActionImplementationInfo class.
        /// </summary>
        /// <param name="method">Gets the method in which this recommended
        /// action can be manually implemented. e.g., TSql, AzurePowerShell.
        /// Possible values include: 'TSql', 'AzurePowerShell'</param>
        /// <param name="script">Gets the manual implementation script. e.g.,
        /// T-SQL script that could be executed on the database.</param>
        public RecommendedActionImplementationInfo(ImplementationMethod? method = default(ImplementationMethod?), string script = default(string))
        {
            Method = method;
            Script = script;
            CustomInit();
        }

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

        /// <summary>
        /// Gets the method in which this recommended action can be manually
        /// implemented. e.g., TSql, AzurePowerShell. Possible values include:
        /// 'TSql', 'AzurePowerShell'
        /// </summary>
        [JsonProperty(PropertyName = "method")]
        public ImplementationMethod? Method { get; private set; }

        /// <summary>
        /// Gets the manual implementation script. e.g., T-SQL script that
        /// could be executed on the database.
        /// </summary>
        [JsonProperty(PropertyName = "script")]
        public string Script { get; private set; }

    }
}
