TableAccessPolicy Class
- java.
lang. Object - com.
azure. data. tables. models. TableAccessPolicy
- com.
Implements
public final class TableAccessPolicy
implements XmlSerializable<TableAccessPolicy>
An Access policy.
Constructor Summary
Constructor | Description |
---|---|
TableAccessPolicy() |
Creates an instance of Table |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Table |
fromXml(XmlReader xmlReader)
Reads an instance of Table |
static
Table |
fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of Table |
Offset |
getExpiresOn()
Get the expires |
String |
getPermissions()
Get the permissions property: The permissions for the acl policy. |
Offset |
getStartsOn()
Get the starts |
Table |
setExpiresOn(OffsetDateTime expiresOn)
Set the expires |
Table |
setPermissions(String permissions)
Set the permissions property: The permissions for the acl policy. |
Table |
setStartsOn(OffsetDateTime startsOn)
Set the starts |
Xml |
toXml(XmlWriter xmlWriter) |
Xml |
toXml(XmlWriter xmlWriter, String rootElementName) |
Methods inherited from java.lang.Object
Constructor Details
TableAccessPolicy
public TableAccessPolicy()
Creates an instance of TableAccessPolicy class.
Method Details
fromXml
public static TableAccessPolicy fromXml(XmlReader xmlReader)
Reads an instance of TableAccessPolicy from the XmlReader.
Parameters:
Returns:
Throws:
fromXml
public static TableAccessPolicy fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of TableAccessPolicy from the XmlReader.
Parameters:
Returns:
Throws:
getExpiresOn
public OffsetDateTime getExpiresOn()
Get the expiresOn property: The datetime that 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 start datetime from which the policy is active.
Returns:
setExpiresOn
public TableAccessPolicy setExpiresOn(OffsetDateTime expiresOn)
Set the expiresOn property: The datetime that the policy expires.
Parameters:
Returns:
setPermissions
public TableAccessPolicy setPermissions(String permissions)
Set the permissions property: The permissions for the acl policy.
Parameters:
Returns:
setStartsOn
public TableAccessPolicy setStartsOn(OffsetDateTime startsOn)
Set the startsOn property: The start datetime from which the policy is active.
Parameters:
Returns:
toXml
toXml
public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)
Parameters:
Throws:
Applies to
Azure SDK for Java