/* * 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 elasticbeanstalk-2010-12-01.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.ElasticBeanstalk.Model { /// /// A lifecycle rule that deletes application versions after the specified number of days. /// public partial class MaxAgeRule { private bool? _deleteSourceFromS3; private bool? _enabled; private int? _maxAgeInDays; /// /// Gets and sets the property DeleteSourceFromS3. /// /// Set to true to delete a version's source bundle from Amazon S3 when Elastic /// Beanstalk deletes the application version. /// /// public bool DeleteSourceFromS3 { get { return this._deleteSourceFromS3.GetValueOrDefault(); } set { this._deleteSourceFromS3 = value; } } // Check to see if DeleteSourceFromS3 property is set internal bool IsSetDeleteSourceFromS3() { return this._deleteSourceFromS3.HasValue; } /// /// Gets and sets the property Enabled. /// /// Specify true to apply the rule, or false to disable it. /// /// [AWSProperty(Required=true)] public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// /// Gets and sets the property MaxAgeInDays. /// /// Specify the number of days to retain an application versions. /// /// public int MaxAgeInDays { get { return this._maxAgeInDays.GetValueOrDefault(); } set { this._maxAgeInDays = value; } } // Check to see if MaxAgeInDays property is set internal bool IsSetMaxAgeInDays() { return this._maxAgeInDays.HasValue; } } }