Interface ImmutabilityPolicy
- All Superinterfaces:
HasInnerModel<ImmutabilityPolicyInner>, HasManager<StorageManager>, Indexable, Refreshable<ImmutabilityPolicy>, Updatable<ImmutabilityPolicy.Update>
public interface ImmutabilityPolicy
extends HasInnerModel<ImmutabilityPolicyInner>, Indexable, Refreshable<ImmutabilityPolicy>, Updatable<ImmutabilityPolicy.Update>, HasManager<StorageManager>
Type representing ImmutabilityPolicy.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe entirety of the ImmutabilityPolicy definition.static interfaceGrouping of ImmutabilityPolicy definition stages.static interfaceThe template for a ImmutabilityPolicy update operation, containing all the settings that can be modified.static interfaceGrouping of ImmutabilityPolicy update stages. -
Method Summary
Modifier and TypeMethodDescriptionetag()Gets the etag.voidextend(int immutabilityPeriodSinceCreationInDays) Extends the immutability policy.extendAsync(int immutabilityPeriodSinceCreationInDays) Extends the immutability policy.id()Gets resource ID.intGets the immutability period since creation in days.voidlock()Locks the immutability policy.Locks the immutability policy.name()Gets immutability policy name.state()Gets immutability policy state.type()Gets the type of immutability policy.Methods inherited from interface HasInnerModel
innerModelMethods inherited from interface HasManager
managerMethods inherited from interface Refreshable
refresh, refreshAsync
-
Method Details
-
etag
-
id
-
immutabilityPeriodSinceCreationInDays
int immutabilityPeriodSinceCreationInDays()Gets the immutability period since creation in days.- Returns:
- the immutabilityPeriodSinceCreationInDays value.
-
name
-
state
-
type
-
lock
void lock()Locks the immutability policy. -
lockAsync
-
extend
void extend(int immutabilityPeriodSinceCreationInDays) Extends the immutability policy.- Parameters:
immutabilityPeriodSinceCreationInDays- The immutability period for the blobs in the container since the policy creation, in days.
-
extendAsync
-