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 com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModelMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager
managerMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Refreshable
refresh, refreshAsync
-
Method Details
-
etag
String etag()Gets the etag.- Returns:
- the etag value.
-
id
String id()Gets resource ID.- Returns:
- the id value.
-
immutabilityPeriodSinceCreationInDays
int immutabilityPeriodSinceCreationInDays()Gets the immutability period since creation in days.- Returns:
- the immutabilityPeriodSinceCreationInDays value.
-
name
String name()Gets immutability policy name.- Returns:
- the name value.
-
state
ImmutabilityPolicyState state()Gets immutability policy state.- Returns:
- the state value.
-
type
String type()Gets the type of immutability policy.- Returns:
- the type value.
-
lock
void lock()Locks the immutability policy. -
lockAsync
Locks the immutability policy.- Returns:
- the completion
-
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
Extends the immutability policy.- Parameters:
immutabilityPeriodSinceCreationInDays- The immutability period for the blobs in the container since the policy creation, in days.- Returns:
- the completion
-