/*
* 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 elasticfilesystem-2015-02-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.ElasticFileSystem.Model
{
///
/// Describes a policy used by EFS lifecycle management and EFS Intelligent-Tiering that
/// specifies when to transition files into and out of the file system's Infrequent Access
/// (IA) storage class. For more information, see EFS
/// IntelligentāTiering and EFS Lifecycle Management.
///
///
///
/// When using the put-lifecycle-configuration
CLI command or the PutLifecycleConfiguration
/// API action, Amazon EFS requires that each LifecyclePolicy
object have
/// only a single transition. This means that in a request body, LifecyclePolicies
/// must be structured as an array of LifecyclePolicy
objects, one object
/// for each transition, TransitionToIA
, TransitionToPrimaryStorageClass
.
/// For more information, see the request examples in PutLifecycleConfiguration.
///
///
///
public partial class LifecyclePolicy
{
private TransitionToIARules _transitionToIA;
private TransitionToPrimaryStorageClassRules _transitionToPrimaryStorageClass;
///
/// Gets and sets the property TransitionToIA.
///
/// Describes the period of time that a file is not accessed, after which it transitions
/// to IA storage. Metadata operations such as listing the contents of a directory don't
/// count as file access events.
///
///
public TransitionToIARules TransitionToIA
{
get { return this._transitionToIA; }
set { this._transitionToIA = value; }
}
// Check to see if TransitionToIA property is set
internal bool IsSetTransitionToIA()
{
return this._transitionToIA != null;
}
///
/// Gets and sets the property TransitionToPrimaryStorageClass.
///
/// Describes when to transition a file from IA storage to primary storage. Metadata operations
/// such as listing the contents of a directory don't count as file access events.
///
///
public TransitionToPrimaryStorageClassRules TransitionToPrimaryStorageClass
{
get { return this._transitionToPrimaryStorageClass; }
set { this._transitionToPrimaryStorageClass = value; }
}
// Check to see if TransitionToPrimaryStorageClass property is set
internal bool IsSetTransitionToPrimaryStorageClass()
{
return this._transitionToPrimaryStorageClass != null;
}
}
}