Class B2FileRetention
- java.lang.Object
-
- com.backblaze.b2.client.structures.B2FileRetention
-
public class B2FileRetention extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static B2FileRetentionNONEstatic field for convenience to use with updateFileRetention() to turn off retention
-
Constructor Summary
Constructors Constructor Description B2FileRetention(java.lang.String mode, java.lang.Long retainUntilTimestamp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static B2FileRetentiongetFileRetentionFromHeadersOrNull(B2Headers headers)Construct a B2FileRetention from B2Headers, or null if the required headers are not presentjava.lang.StringgetMode()java.lang.LonggetRetainUntilTimestamp()inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
NONE
public static final B2FileRetention NONE
static field for convenience to use with updateFileRetention() to turn off retention
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-