Package com.azure.storage.blob.models
Class BlobAccessPolicy
java.lang.Object
com.azure.storage.blob.models.BlobAccessPolicy
An Access policy.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the expiresOn property: the date-time the policy expires.Get the permissions property: the permissions for the acl policy.Get the startsOn property: the date-time the policy is active.setExpiresOn
(OffsetDateTime expiresOn) Set the expiresOn property: the date-time the policy expires.setPermissions
(String permissions) Set the permissions property: the permissions for the acl policy.setStartsOn
(OffsetDateTime startsOn) Set the startsOn property: the date-time the policy is active.
-
Constructor Details
-
BlobAccessPolicy
public BlobAccessPolicy()Creates an instance of BlobAccessPolicy class.
-
-
Method Details
-
getStartsOn
Get the startsOn property: the date-time the policy is active.- Returns:
- the startsOn value.
-
setStartsOn
Set the startsOn property: the date-time the policy is active.- Parameters:
startsOn
- the startsOn value to set.- Returns:
- the BlobAccessPolicy object itself.
-
getExpiresOn
Get the expiresOn property: the date-time the policy expires.- Returns:
- the expiresOn value.
-
setExpiresOn
Set the expiresOn property: the date-time the policy expires.- Parameters:
expiresOn
- the expiresOn value to set.- Returns:
- the BlobAccessPolicy object itself.
-
getPermissions
Get the permissions property: the permissions for the acl policy.- Returns:
- the permissions value.
-
setPermissions
Set the permissions property: the permissions for the acl policy.- Parameters:
permissions
- the permissions value to set.- Returns:
- the BlobAccessPolicy object itself.
-