/*
 * Copyright Amazon.com, Inc. or its affiliates. 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.
 * A copy of the License is located at
 * 
 *  http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file 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.
 */
/*
 * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model.
 */
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudFront.Model
{
    /// 
    /// Container for the parameters to the UpdateDistribution operation.
    /// Updates the configuration for a CloudFront distribution.
    /// 
    ///  
    /// 
    /// The update process includes getting the current distribution configuration, updating
    /// it to make your changes, and then submitting an UpdateDistribution request
    /// to make the updates.
    /// 
    ///  
    /// 
    ///  To update a web distribution using the CloudFront API 
    /// 
    ///   -  
    /// 
    /// Use 
GetDistributionConfig to get the current configuration, including
    /// the version identifier (ETag).
    /// 
    ///    -  
    /// 
    /// Update the distribution configuration that was returned in the response. Note the
    /// following important requirements and restrictions:
    /// 
    ///  
 -  
    /// 
    /// You must rename the 
ETag field to IfMatch, leaving the value
    /// unchanged. (Set the value of IfMatch to the value of ETag,
    /// then remove the ETag field.)
    /// 
    ///    -  
    /// 
    /// You can't change the value of 
CallerReference.
    /// 
    ///    
   -  
    /// 
    /// Submit an 
UpdateDistribution request, providing the distribution configuration.
    /// The new configuration replaces the existing configuration. The values that you specify
    /// in an UpdateDistribution request are not merged into your existing configuration.
    /// Make sure to include all fields: the ones that you modified and also the ones that
    /// you didn't.
    /// 
    ///    
    /// 
    public partial class UpdateDistributionRequest : AmazonCloudFrontRequest
    {
        private DistributionConfig _distributionConfig;
        private string _id;
        private string _ifMatch;
        /// 
        /// Empty constructor used to set  properties independently even when a simple constructor is available
        /// 
        public UpdateDistributionRequest() { }
        /// 
        /// Instantiates UpdateDistributionRequest with the parameterized properties
        /// 
        /// The distribution's id.
        /// The value of the ETag header that you received when retrieving the distribution's configuration. For example: E2QWRUHAPOMQZL.
        /// The distribution's configuration information.
        public UpdateDistributionRequest(string id, string ifMatch, DistributionConfig distributionConfig)
        {
            _id = id;
            _ifMatch = ifMatch;
            _distributionConfig = distributionConfig;
        }
        /// 
        /// Gets and sets the property DistributionConfig. 
        /// 
        /// The distribution's configuration information.
        /// 
        /// 
        [AWSProperty(Required=true)]
        public DistributionConfig DistributionConfig
        {
            get { return this._distributionConfig; }
            set { this._distributionConfig = value; }
        }
        // Check to see if DistributionConfig property is set
        internal bool IsSetDistributionConfig()
        {
            return this._distributionConfig != null;
        }
        /// 
        /// Gets and sets the property Id. 
        /// 
        /// The distribution's id.
        /// 
        /// 
        [AWSProperty(Required=true)]
        public string Id
        {
            get { return this._id; }
            set { this._id = value; }
        }
        // Check to see if Id property is set
        internal bool IsSetId()
        {
            return this._id != null;
        }
        /// 
        /// Gets and sets the property IfMatch. 
        /// 
        /// The value of the ETag header that you received when retrieving the distribution's
        /// configuration. For example: E2QWRUHAPOMQZL.
        /// 
        /// 
        public string IfMatch
        {
            get { return this._ifMatch; }
            set { this._ifMatch = value; }
        }
        // Check to see if IfMatch property is set
        internal bool IsSetIfMatch()
        {
            return this._ifMatch != null;
        }
    }
}