Package com.google.cloud.storage
Class BlobInfo.Retention
java.lang.Object
com.google.cloud.storage.BlobInfo.Retention
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BlobInfo
Defines a blob's Retention policy. Can only be used on objects in a retention-enabled bucket.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getMode()
Returns the retention policy's Mode.Returns what time this object will be retained until, if the mode is Locked.int
hashCode()
static BlobInfo.Retention.Builder
toString()
-
Constructor Details
-
Retention
-
-
Method Details
-
getMode
Returns the retention policy's Mode. Can be Locked or Unlocked. -
getRetainUntilTime
Returns what time this object will be retained until, if the mode is Locked. -
equals
-
hashCode
public int hashCode() -
toString
-
newBuilder
-
toBuilder
-