// 
// Copyright (c) Microsoft and contributors.  All rights reserved.
// 
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//   http://www.apache.org/licenses/LICENSE-2.0
// 
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// 
// See the License for the specific language governing permissions and
// limitations under the License.
// 

// Warning: This code was generated by a tool.
// 
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

using System;
using System.Linq;

namespace Microsoft.WindowsAzure.Management.Compute.Models
{
    /// <summary>
    /// Contains the name and content of component.
    /// </summary>
    public partial class ComponentSetting
    {
        private string _content;
        
        /// <summary>
        /// Optional. Specifies the base-64 encoded XML formatted content that
        /// is added to the unattend.xml file for the specified path and
        /// component. The XML must be less that 4 KB and must include the
        /// root element for the setting or feature that is being inserted.
        /// </summary>
        public string Content
        {
            get { return this._content; }
            set { this._content = value; }
        }
        
        private string _settingName;
        
        /// <summary>
        /// Required. Specifies the name of the setting to which the content
        /// applies.
        /// </summary>
        public string SettingName
        {
            get { return this._settingName; }
            set { this._settingName = value; }
        }
        
        /// <summary>
        /// Initializes a new instance of the ComponentSetting class.
        /// </summary>
        public ComponentSetting()
        {
        }
        
        /// <summary>
        /// Initializes a new instance of the ComponentSetting class with
        /// required arguments.
        /// </summary>
        public ComponentSetting(string settingName)
            : this()
        {
            if (settingName == null)
            {
                throw new ArgumentNullException("settingName");
            }
            this.SettingName = settingName;
        }
    }
}
