@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LifecyclePolicy extends Object implements Serializable, Cloneable, StructuredPojo
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.
| Constructor and Description |
|---|
LifecyclePolicy() |
| Modifier and Type | Method and Description |
|---|---|
LifecyclePolicy |
clone() |
boolean |
equals(Object obj) |
String |
getTransitionToIA()
Describes the period of time that a file is not accessed, after which it transitions to IA storage.
|
String |
getTransitionToPrimaryStorageClass()
Describes when to transition a file from IA storage to primary storage.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setTransitionToIA(String transitionToIA)
Describes the period of time that a file is not accessed, after which it transitions to IA storage.
|
void |
setTransitionToPrimaryStorageClass(String transitionToPrimaryStorageClass)
Describes when to transition a file from IA storage to primary storage.
|
String |
toString()
Returns a string representation of this object.
|
LifecyclePolicy |
withTransitionToIA(String transitionToIA)
Describes the period of time that a file is not accessed, after which it transitions to IA storage.
|
LifecyclePolicy |
withTransitionToIA(TransitionToIARules transitionToIA)
Describes the period of time that a file is not accessed, after which it transitions to IA storage.
|
LifecyclePolicy |
withTransitionToPrimaryStorageClass(String transitionToPrimaryStorageClass)
Describes when to transition a file from IA storage to primary storage.
|
LifecyclePolicy |
withTransitionToPrimaryStorageClass(TransitionToPrimaryStorageClassRules transitionToPrimaryStorageClass)
Describes when to transition a file from IA storage to primary storage.
|
public void setTransitionToIA(String 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.
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.TransitionToIARulespublic String getTransitionToIA()
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.
TransitionToIARulespublic LifecyclePolicy withTransitionToIA(String 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.
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.TransitionToIARulespublic LifecyclePolicy withTransitionToIA(TransitionToIARules 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.
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.TransitionToIARulespublic void setTransitionToPrimaryStorageClass(String 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.
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.TransitionToPrimaryStorageClassRulespublic String getTransitionToPrimaryStorageClass()
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.
TransitionToPrimaryStorageClassRulespublic LifecyclePolicy withTransitionToPrimaryStorageClass(String 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.
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.TransitionToPrimaryStorageClassRulespublic LifecyclePolicy withTransitionToPrimaryStorageClass(TransitionToPrimaryStorageClassRules 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.
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.TransitionToPrimaryStorageClassRulespublic String toString()
toString in class ObjectObject.toString()public LifecyclePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.