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 B2FileRetention
NONE
static 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 boolean
equals(java.lang.Object o)
static B2FileRetention
getFileRetentionFromHeadersOrNull(B2Headers headers)
Construct a B2FileRetention from B2Headers, or null if the required headers are not presentjava.lang.String
getMode()
java.lang.Long
getRetainUntilTimestamp()
int
hashCode()
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-