Class ShareAccessPolicy
- java.lang.Object
-
- com.azure.storage.file.share.models.ShareAccessPolicy
-
public final class ShareAccessPolicy extends Object
An Access policy.
-
-
Constructor Summary
Constructors Constructor Description ShareAccessPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
getExpiresOn()
Get the expiresOn property: The date-time the policy expires.String
getPermissions()
Get the permissions property: The permissions for the ACL policy.OffsetDateTime
getStartsOn()
Get the startsOn property: The date-time the policy is active.ShareAccessPolicy
setExpiresOn(OffsetDateTime expiresOn)
Set the expiresOn property: The date-time the policy expires.ShareAccessPolicy
setPermissions(String permissions)
Set the permissions property: The permissions for the ACL policy.ShareAccessPolicy
setStartsOn(OffsetDateTime startsOn)
Set the startsOn property: The date-time the policy is active.
-
-
-
Method Detail
-
getStartsOn
public OffsetDateTime getStartsOn()
Get the startsOn property: The date-time the policy is active.- Returns:
- the startsOn value.
-
setStartsOn
public ShareAccessPolicy setStartsOn(OffsetDateTime startsOn)
Set the startsOn property: The date-time the policy is active.- Parameters:
startsOn
- the startsOn value to set.- Returns:
- the ShareAccessPolicy object itself.
-
getExpiresOn
public OffsetDateTime getExpiresOn()
Get the expiresOn property: The date-time the policy expires.- Returns:
- the expiresOn value.
-
setExpiresOn
public ShareAccessPolicy setExpiresOn(OffsetDateTime expiresOn)
Set the expiresOn property: The date-time the policy expires.- Parameters:
expiresOn
- the expiresOn value to set.- Returns:
- the ShareAccessPolicy object itself.
-
getPermissions
public String getPermissions()
Get the permissions property: The permissions for the ACL policy.- Returns:
- the permissions value.
-
setPermissions
public ShareAccessPolicy setPermissions(String permissions)
Set the permissions property: The permissions for the ACL policy.- Parameters:
permissions
- the permissions value to set.- Returns:
- the ShareAccessPolicy object itself.
-
-