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