ShareAccessPolicy Class
- java.
lang. Object - com.
azure. storage. file. share. models. ShareAccessPolicy
- com.
Implements
public final class ShareAccessPolicy
implements XmlSerializable<ShareAccessPolicy>
An Access policy.
Constructor Summary
Constructor | Description |
---|---|
ShareAccessPolicy() |
Creates an instance of Share |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Share |
fromXml(XmlReader xmlReader)
Reads an instance of Share |
static
Share |
fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of Share |
Offset |
getExpiresOn()
Get the expires |
String |
getPermissions()
Get the permissions property: The permissions for the ACL policy. |
Offset |
getStartsOn()
Get the starts |
Share |
setExpiresOn(OffsetDateTime expiresOn)
Set the expires |
Share |
setPermissions(String permissions)
Set the permissions property: The permissions for the ACL policy. |
Share |
setStartsOn(OffsetDateTime startsOn)
Set the starts |
Xml |
toXml(XmlWriter xmlWriter) |
Xml |
toXml(XmlWriter xmlWriter, String rootElementName) |
Methods inherited from java.lang.Object
Constructor Details
ShareAccessPolicy
public ShareAccessPolicy()
Creates an instance of ShareAccessPolicy class.
Method Details
fromXml
public static ShareAccessPolicy fromXml(XmlReader xmlReader)
Reads an instance of ShareAccessPolicy from the XmlReader.
Parameters:
Returns:
Throws:
fromXml
public static ShareAccessPolicy fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of ShareAccessPolicy 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 ShareAccessPolicy setExpiresOn(OffsetDateTime expiresOn)
Set the expiresOn property: The date-time the policy expires.
Parameters:
Returns:
setPermissions
public ShareAccessPolicy setPermissions(String permissions)
Set the permissions property: The permissions for the ACL policy.
Parameters:
Returns:
setStartsOn
public ShareAccessPolicy 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: