/* * 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 lightsail-2016-11-28.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.Lightsail.Model { /// /// Container for the parameters to the UpdateDistribution operation. /// Updates an existing Amazon Lightsail content delivery network (CDN) distribution. /// /// /// /// Use this action to update the configuration of your existing distribution. /// /// public partial class UpdateDistributionRequest : AmazonLightsailRequest { private List _cacheBehaviors = new List(); private CacheSettings _cacheBehaviorSettings; private CacheBehavior _defaultCacheBehavior; private string _distributionName; private bool? _isEnabled; private InputOrigin _origin; /// /// Gets and sets the property CacheBehaviors. /// /// An array of objects that describe the per-path cache behavior for the distribution. /// /// public List CacheBehaviors { get { return this._cacheBehaviors; } set { this._cacheBehaviors = value; } } // Check to see if CacheBehaviors property is set internal bool IsSetCacheBehaviors() { return this._cacheBehaviors != null && this._cacheBehaviors.Count > 0; } /// /// Gets and sets the property CacheBehaviorSettings. /// /// An object that describes the cache behavior settings for the distribution. /// /// /// /// The cacheBehaviorSettings specified in your UpdateDistributionRequest /// will replace your distribution's existing settings. /// /// /// public CacheSettings CacheBehaviorSettings { get { return this._cacheBehaviorSettings; } set { this._cacheBehaviorSettings = value; } } // Check to see if CacheBehaviorSettings property is set internal bool IsSetCacheBehaviorSettings() { return this._cacheBehaviorSettings != null; } /// /// Gets and sets the property DefaultCacheBehavior. /// /// An object that describes the default cache behavior for the distribution. /// /// public CacheBehavior DefaultCacheBehavior { get { return this._defaultCacheBehavior; } set { this._defaultCacheBehavior = value; } } // Check to see if DefaultCacheBehavior property is set internal bool IsSetDefaultCacheBehavior() { return this._defaultCacheBehavior != null; } /// /// Gets and sets the property DistributionName. /// /// The name of the distribution to update. /// /// /// /// Use the GetDistributions action to get a list of distribution names that /// you can specify. /// /// [AWSProperty(Required=true)] public string DistributionName { get { return this._distributionName; } set { this._distributionName = value; } } // Check to see if DistributionName property is set internal bool IsSetDistributionName() { return this._distributionName != null; } /// /// Gets and sets the property IsEnabled. /// /// Indicates whether to enable the distribution. /// /// public bool IsEnabled { get { return this._isEnabled.GetValueOrDefault(); } set { this._isEnabled = value; } } // Check to see if IsEnabled property is set internal bool IsSetIsEnabled() { return this._isEnabled.HasValue; } /// /// Gets and sets the property Origin. /// /// An object that describes the origin resource for the distribution, such as a Lightsail /// instance, bucket, or load balancer. /// /// /// /// The distribution pulls, caches, and serves content from the origin. /// /// public InputOrigin Origin { get { return this._origin; } set { this._origin = value; } } // Check to see if Origin property is set internal bool IsSetOrigin() { return this._origin != null; } } }