Class LifecyclePolicy
- java.lang.Object
-
- software.amazon.awssdk.services.efs.model.LifecyclePolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LifecyclePolicy.Builder,LifecyclePolicy>
@Generated("software.amazon.awssdk:codegen") public final class LifecyclePolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LifecyclePolicy.Builder,LifecyclePolicy>
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-configurationCLI command or thePutLifecycleConfigurationAPI action, Amazon EFS requires that eachLifecyclePolicyobject have only a single transition. This means that in a request body,LifecyclePoliciesmust be structured as an array ofLifecyclePolicyobjects, one object for each transition. For more information, see the request examples in PutLifecycleConfiguration.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLifecyclePolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LifecyclePolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends LifecyclePolicy.Builder>serializableBuilderClass()LifecyclePolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.TransitionToArchiveRulestransitionToArchive()The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage.StringtransitionToArchiveAsString()The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage.TransitionToIARulestransitionToIA()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.StringtransitionToIAAsString()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.TransitionToPrimaryStorageClassRulestransitionToPrimaryStorageClass()Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage.StringtransitionToPrimaryStorageClassAsString()Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
transitionToIA
public final 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.
If the service returns an enum value that is not available in the current SDK version,
transitionToIAwill returnTransitionToIARules.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtransitionToIAAsString().- Returns:
- 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.
- See Also:
TransitionToIARules
-
transitionToIAAsString
public final String transitionToIAAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
transitionToIAwill returnTransitionToIARules.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtransitionToIAAsString().- Returns:
- 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.
- See Also:
TransitionToIARules
-
transitionToPrimaryStorageClass
public final 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.
If the service returns an enum value that is not available in the current SDK version,
transitionToPrimaryStorageClasswill returnTransitionToPrimaryStorageClassRules.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtransitionToPrimaryStorageClassAsString().- Returns:
- 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.
- See Also:
TransitionToPrimaryStorageClassRules
-
transitionToPrimaryStorageClassAsString
public final String transitionToPrimaryStorageClassAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
transitionToPrimaryStorageClasswill returnTransitionToPrimaryStorageClassRules.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtransitionToPrimaryStorageClassAsString().- Returns:
- 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.
- See Also:
TransitionToPrimaryStorageClassRules
-
transitionToArchive
public final TransitionToArchiveRules transitionToArchive()
The number of days after files were last accessed in primary storage (the Standard storage class) 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.
If the service returns an enum value that is not available in the current SDK version,
transitionToArchivewill returnTransitionToArchiveRules.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtransitionToArchiveAsString().- Returns:
- The number of days after files were last accessed in primary storage (the Standard storage class) 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.
- See Also:
TransitionToArchiveRules
-
transitionToArchiveAsString
public final String transitionToArchiveAsString()
The number of days after files were last accessed in primary storage (the Standard storage class) 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.
If the service returns an enum value that is not available in the current SDK version,
transitionToArchivewill returnTransitionToArchiveRules.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtransitionToArchiveAsString().- Returns:
- The number of days after files were last accessed in primary storage (the Standard storage class) 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.
- See Also:
TransitionToArchiveRules
-
toBuilder
public LifecyclePolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LifecyclePolicy.Builder,LifecyclePolicy>
-
builder
public static LifecyclePolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends LifecyclePolicy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-