Class BlobInfo.Retention (2.45.0)

public static final class BlobInfo.Retention implements Serializable

Defines a blob's Retention policy. Can only be used on objects in a retention-enabled bucket.

Inheritance

Object > BlobInfo.Retention

Implements

Serializable

Static Methods

newBuilder()

public static BlobInfo.Retention.Builder newBuilder()
Returns
Type Description
BlobInfo.Retention.Builder

Constructors

Retention(BlobInfo.Retention.Builder builder)

public Retention(BlobInfo.Retention.Builder builder)
Parameter
Name Description
builder BlobInfo.Retention.Builder

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getMode()

public BlobInfo.Retention.Mode getMode()

Returns the retention policy's Mode. Can be Locked or Unlocked.

Returns
Type Description
BlobInfo.Retention.Mode

getRetainUntilTime()

public OffsetDateTime getRetainUntilTime()

Returns what time this object will be retained until, if the mode is Locked.

Returns
Type Description
OffsetDateTime

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public BlobInfo.Retention.Builder toBuilder()
Returns
Type Description
BlobInfo.Retention.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides