/* *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. */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.S3.Model { /// /// The S3 Intelligent-Tiering storage class is designed to /// optimize storage costs by automatically moving data to the most /// cost-effective storage access tier, without additional operational overhead. /// public class Tiering { private int? days; private IntelligentTieringAccessTier accessTier; /// /// The number of consecutive days of no access after which an object /// will be eligible to be transitioned to the corresponding tier. The minimum number of /// days specified for Archive Access tier must be at least 90 days and Deep Archive Access tier /// must be at least 180 days. The maximum can be up to 2 years (730 days). /// public int Days { get { return this.days.GetValueOrDefault(); } set { this.days = value; } } // Check to see if intelligentTieringDays property is set internal bool IsSetDays() { return this.days.HasValue; } /// /// S3 Intelligent-Tiering access tier. /// See /// Storage class for automatically optimizing frequently and infrequently accessed objects /// for a list of access tiers in the S3 Intelligent-Tiering storage class. /// public IntelligentTieringAccessTier AccessTier { get { return this.accessTier; } set { this.accessTier = value; } } // Check to see if Status property is set internal bool IsSetAccessTier() { return this.accessTier != null; } } }