Class SnaplockRetentionPeriod

    • Method Detail

      • defaultRetention

        public final RetentionPeriod defaultRetention()

        The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period.

        Returns:
        The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period.
      • minimumRetention

        public final RetentionPeriod minimumRetention()

        The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.

        Returns:
        The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
      • maximumRetention

        public final RetentionPeriod maximumRetention()

        The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.

        Returns:
        The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
      • 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)