BlobAccessPolicy Class
- java.
lang. Object - com.
azure. storage. blob. models. BlobAccessPolicy
- com.
public final class BlobAccessPolicy
An Access policy.
Constructor Summary
Constructor | Description |
---|---|
BlobAccessPolicy() |
Creates an instance of Blob |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
getExpiresOn()
Get the expires |
String |
getPermissions()
Get the permissions property: the permissions for the acl policy. |
Offset |
getStartsOn()
Get the starts |
Blob |
setExpiresOn(OffsetDateTime expiresOn)
Set the expires |
Blob |
setPermissions(String permissions)
Set the permissions property: the permissions for the acl policy. |
Blob |
setStartsOn(OffsetDateTime startsOn)
Set the starts |
Methods inherited from java.lang.Object
Constructor Details
BlobAccessPolicy
public BlobAccessPolicy()
Creates an instance of BlobAccessPolicy class.
Method Details
getExpiresOn
public OffsetDateTime getExpiresOn()
Get the expiresOn property: the date-time the policy expires.
Returns:
getPermissions
public String getPermissions()
Get the permissions property: the permissions for the acl policy.
Returns:
getStartsOn
public OffsetDateTime getStartsOn()
Get the startsOn property: the date-time the policy is active.
Returns:
setExpiresOn
public BlobAccessPolicy setExpiresOn(OffsetDateTime expiresOn)
Set the expiresOn property: the date-time the policy expires.
Parameters:
Returns:
setPermissions
public BlobAccessPolicy setPermissions(String permissions)
Set the permissions property: the permissions for the acl policy.
Parameters:
Returns:
setStartsOn
public BlobAccessPolicy setStartsOn(OffsetDateTime startsOn)
Set the startsOn property: the date-time the policy is active.
Parameters:
Returns:
Applies to
Azure SDK for Java