Class B2FileRetention


  • public class B2FileRetention
    extends java.lang.Object
    • Field Detail

      • NONE

        public static final B2FileRetention NONE
        static field for convenience to use with updateFileRetention() to turn off retention
    • Constructor Detail

      • B2FileRetention

        public B2FileRetention​(java.lang.String mode,
                               java.lang.Long retainUntilTimestamp)
    • Method Detail

      • getFileRetentionFromHeadersOrNull

        public static B2FileRetention getFileRetentionFromHeadersOrNull​(B2Headers headers)
        Construct a B2FileRetention from B2Headers, or null if the required headers are not present
        Parameters:
        headers - B2Headers
        Returns:
        a new B2FileRetention or null
      • getMode

        public java.lang.String getMode()
      • getRetainUntilTimestamp

        public java.lang.Long getRetainUntilTimestamp()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object