Class LifecyclePolicy

    • 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, transitionToIA will return TransitionToIARules.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from transitionToIAAsString().

        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, transitionToIA will return TransitionToIARules.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from transitionToIAAsString().

        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, transitionToPrimaryStorageClass will return TransitionToPrimaryStorageClassRules.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from transitionToPrimaryStorageClassAsString().

        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, transitionToPrimaryStorageClass will return TransitionToPrimaryStorageClassRules.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from transitionToPrimaryStorageClassAsString().

        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, transitionToArchive will return TransitionToArchiveRules.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from transitionToArchiveAsString().

        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, transitionToArchive will return TransitionToArchiveRules.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from transitionToArchiveAsString().

        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
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)