BlobAccessPolicy Class
- java.
lang. Object - com.
azure. storage. blob. models. BlobAccessPolicy
- com.
Implements
public final class BlobAccessPolicy
implements XmlSerializable<BlobAccessPolicy>
An Access policy.
Constructor Summary
Constructor | Description |
---|---|
BlobAccessPolicy() |
Creates an instance of Blob |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Blob |
fromXml(XmlReader xmlReader)
Reads an instance of Blob |
static
Blob |
fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of Blob |
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 |
Xml |
toXml(XmlWriter xmlWriter) |
Xml |
toXml(XmlWriter xmlWriter, String rootElementName) |
Methods inherited from java.lang.Object
Constructor Details
BlobAccessPolicy
public BlobAccessPolicy()
Creates an instance of BlobAccessPolicy class.
Method Details
fromXml
public static BlobAccessPolicy fromXml(XmlReader xmlReader)
Reads an instance of BlobAccessPolicy from the XmlReader.
Parameters:
Returns:
Throws:
fromXml
public static BlobAccessPolicy fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of BlobAccessPolicy from the XmlReader.
Parameters:
Returns:
Throws:
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:
toXml
toXml
public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)
Parameters:
Throws: