@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LifecyclePolicy extends Object implements Serializable, Cloneable, StructuredPojo
Describes a policy used by Lifecycle management that specifies when to transition files into and out of storage classes. For more information, see Managing file system storage.
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. 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 |
getTransitionToArchive()
The number of days after files were last accessed in primary storage (the Standard storage class) files at which
to move them to Archive storage.
|
String |
getTransitionToIA()
The number of days after files were last accessed in primary storage (the Standard storage class) at which to
move them to Infrequent Access (IA) storage.
|
String |
getTransitionToPrimaryStorageClass()
Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setTransitionToArchive(String transitionToArchive)
The number of days after files were last accessed in primary storage (the Standard storage class) files at which
to move them to Archive storage.
|
void |
setTransitionToIA(String transitionToIA)
The number of days after files were last accessed in primary storage (the Standard storage class) at which to
move them to Infrequent Access (IA) storage.
|
void |
setTransitionToPrimaryStorageClass(String transitionToPrimaryStorageClass)
Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage.
|
String |
toString()
Returns a string representation of this object.
|
LifecyclePolicy |
withTransitionToArchive(String transitionToArchive)
The number of days after files were last accessed in primary storage (the Standard storage class) files at which
to move them to Archive storage.
|
LifecyclePolicy |
withTransitionToArchive(TransitionToArchiveRules transitionToArchive)
The number of days after files were last accessed in primary storage (the Standard storage class) files at which
to move them to Archive storage.
|
LifecyclePolicy |
withTransitionToIA(String transitionToIA)
The number of days after files were last accessed in primary storage (the Standard storage class) at which to
move them to Infrequent Access (IA) storage.
|
LifecyclePolicy |
withTransitionToIA(TransitionToIARules transitionToIA)
The number of days after files were last accessed in primary storage (the Standard storage class) at which to
move them to Infrequent Access (IA) storage.
|
LifecyclePolicy |
withTransitionToPrimaryStorageClass(String transitionToPrimaryStorageClass)
Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage.
|
LifecyclePolicy |
withTransitionToPrimaryStorageClass(TransitionToPrimaryStorageClassRules transitionToPrimaryStorageClass)
Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage.
|
public void setTransitionToIA(String transitionToIA)
The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage. Metadata operations such as listing the contents of a directory don't count as file access events.
transitionToIA
- The number of days after files were last accessed in primary storage (the Standard storage class) at which
to move them to Infrequent Access (IA) storage. Metadata operations such as listing the contents of a
directory don't count as file access events.TransitionToIARules
public String getTransitionToIA()
The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage. Metadata operations such as listing the contents of a directory don't count as file access events.
TransitionToIARules
public LifecyclePolicy withTransitionToIA(String transitionToIA)
The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage. Metadata operations such as listing the contents of a directory don't count as file access events.
transitionToIA
- The number of days after files were last accessed in primary storage (the Standard storage class) at which
to move them to Infrequent Access (IA) storage. Metadata operations such as listing the contents of a
directory don't count as file access events.TransitionToIARules
public LifecyclePolicy withTransitionToIA(TransitionToIARules transitionToIA)
The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage. Metadata operations such as listing the contents of a directory don't count as file access events.
transitionToIA
- The number of days after files were last accessed in primary storage (the Standard storage class) at which
to move them to Infrequent Access (IA) storage. Metadata operations such as listing the contents of a
directory don't count as file access events.TransitionToIARules
public void setTransitionToPrimaryStorageClass(String transitionToPrimaryStorageClass)
Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
transitionToPrimaryStorageClass
- Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage.
Metadata operations such as listing the contents of a directory don't count as file access events.TransitionToPrimaryStorageClassRules
public String getTransitionToPrimaryStorageClass()
Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
TransitionToPrimaryStorageClassRules
public LifecyclePolicy withTransitionToPrimaryStorageClass(String transitionToPrimaryStorageClass)
Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
transitionToPrimaryStorageClass
- Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage.
Metadata operations such as listing the contents of a directory don't count as file access events.TransitionToPrimaryStorageClassRules
public LifecyclePolicy withTransitionToPrimaryStorageClass(TransitionToPrimaryStorageClassRules transitionToPrimaryStorageClass)
Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
transitionToPrimaryStorageClass
- Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage.
Metadata operations such as listing the contents of a directory don't count as file access events.TransitionToPrimaryStorageClassRules
public void setTransitionToArchive(String transitionToArchive)
The number of days after files were last accessed in primary storage (the Standard storage class) files at which to move them to Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
transitionToArchive
- The number of days after files were last accessed in primary storage (the Standard storage class) files at
which to move them to Archive storage. Metadata operations such as listing the contents of a directory
don't count as file access events.TransitionToArchiveRules
public String getTransitionToArchive()
The number of days after files were last accessed in primary storage (the Standard storage class) files at which to move them to Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
TransitionToArchiveRules
public LifecyclePolicy withTransitionToArchive(String transitionToArchive)
The number of days after files were last accessed in primary storage (the Standard storage class) files at which to move them to Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
transitionToArchive
- The number of days after files were last accessed in primary storage (the Standard storage class) files at
which to move them to Archive storage. Metadata operations such as listing the contents of a directory
don't count as file access events.TransitionToArchiveRules
public LifecyclePolicy withTransitionToArchive(TransitionToArchiveRules transitionToArchive)
The number of days after files were last accessed in primary storage (the Standard storage class) files at which to move them to Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
transitionToArchive
- The number of days after files were last accessed in primary storage (the Standard storage class) files at
which to move them to Archive storage. Metadata operations such as listing the contents of a directory
don't count as file access events.TransitionToArchiveRules
public String toString()
toString
in class Object
Object.toString()
public LifecyclePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.