QueueRetentionPolicy Class
- java.
lang. Object - com.
azure. storage. queue. models. QueueRetentionPolicy
- com.
Implements
public final class QueueRetentionPolicy
implements XmlSerializable<QueueRetentionPolicy>
the retention policy.
Constructor Summary
Constructor | Description |
---|---|
QueueRetentionPolicy() |
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 |
Integer |
getDays()
Get the days property: Indicates the number of days that metrics or logging or soft-deleted data should be retained. |
boolean |
isEnabled()
Get the enabled property: Indicates whether a retention policy is enabled for the storage service. |
Queue |
setDays(Integer days)
Set the days property: Indicates the number of days that metrics or logging or soft-deleted data should be retained. |
Queue |
setEnabled(boolean enabled)
Set the enabled property: Indicates whether a retention policy is enabled for the storage service. |
Xml |
toXml(XmlWriter xmlWriter) |
Xml |
toXml(XmlWriter xmlWriter, String rootElementName) |
Methods inherited from java.lang.Object
Constructor Details
QueueRetentionPolicy
public QueueRetentionPolicy()
Creates an instance of QueueRetentionPolicy class.
Method Details
fromXml
public static QueueRetentionPolicy fromXml(XmlReader xmlReader)
Reads an instance of QueueRetentionPolicy from the XmlReader.
Parameters:
Returns:
Throws:
fromXml
public static QueueRetentionPolicy fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of QueueRetentionPolicy from the XmlReader.
Parameters:
Returns:
Throws:
getDays
public Integer getDays()
Get the days property: Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted.
Returns:
isEnabled
public boolean isEnabled()
Get the enabled property: Indicates whether a retention policy is enabled for the storage service.
Returns:
setDays
public QueueRetentionPolicy setDays(Integer days)
Set the days property: Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted.
Parameters:
Returns:
setEnabled
public QueueRetentionPolicy setEnabled(boolean enabled)
Set the enabled property: Indicates whether a retention policy is enabled for the storage service.
Parameters:
Returns:
toXml
toXml
public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)
Parameters:
Throws:
Applies to
Azure SDK for Java