Interface PutObjectHoldOrBuilder (0.2.0)

public interface PutObjectHoldOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEventBasedHold()

public abstract PutObjectHold.HoldStatus getEventBasedHold()

Required. Updates object event based holds state. When object event based hold is set, object cannot be deleted or replaced. Resets object's time in the bucket for the purposes of the retention period.

.google.cloud.storagebatchoperations.v1.PutObjectHold.HoldStatus event_based_hold = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PutObjectHold.HoldStatus

The eventBasedHold.

getEventBasedHoldValue()

public abstract int getEventBasedHoldValue()

Required. Updates object event based holds state. When object event based hold is set, object cannot be deleted or replaced. Resets object's time in the bucket for the purposes of the retention period.

.google.cloud.storagebatchoperations.v1.PutObjectHold.HoldStatus event_based_hold = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for eventBasedHold.

getTemporaryHold()

public abstract PutObjectHold.HoldStatus getTemporaryHold()

Required. Updates object temporary holds state. When object temporary hold is set, object cannot be deleted or replaced.

.google.cloud.storagebatchoperations.v1.PutObjectHold.HoldStatus temporary_hold = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PutObjectHold.HoldStatus

The temporaryHold.

getTemporaryHoldValue()

public abstract int getTemporaryHoldValue()

Required. Updates object temporary holds state. When object temporary hold is set, object cannot be deleted or replaced.

.google.cloud.storagebatchoperations.v1.PutObjectHold.HoldStatus temporary_hold = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for temporaryHold.