Package com.azure.storage.blob.models
Class BlobImmutabilityPolicy
java.lang.Object
com.azure.storage.blob.models.BlobImmutabilityPolicy
Optional parameters for setting the immutability policy of a blob, blob snapshot or blob version.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetExpiryTime
(OffsetDateTime expiryTime) setPolicyMode
(BlobImmutabilityPolicyMode policyMode)
-
Constructor Details
-
BlobImmutabilityPolicy
public BlobImmutabilityPolicy()
-
-
Method Details
-
getExpiryTime
- Returns:
- The time when the immutability policy expires.
-
setExpiryTime
- Parameters:
expiryTime
- The time when the immutability policy expires.- Returns:
- The updated BlobImmutabilityPolicy
-
getPolicyMode
- Returns:
- The immutability policy mode.
-
setPolicyMode
- Parameters:
policyMode
- The immutability policy mode.- Returns:
- The updated BlobImmutabilityPolicy
-