TableServiceRetentionPolicy Class
- java.
lang. Object - com.
azure. data. tables. models. TableServiceRetentionPolicy
- com.
Implements
public final class TableServiceRetentionPolicy
implements XmlSerializable<TableServiceRetentionPolicy>
The retention policy.
Constructor Summary
Constructor | Description |
---|---|
TableServiceRetentionPolicy() |
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 |
Integer |
getDaysToRetain()
Get the days |
boolean |
isEnabled()
Get the enabled property: Indicates whether a retention policy is enabled for the service. |
Table |
setDaysToRetain(Integer daysToRetain)
Set the days |
Table |
setEnabled(boolean enabled)
Set the enabled property: Indicates whether a retention policy is enabled for the service. |
Xml |
toXml(XmlWriter xmlWriter) |
Xml |
toXml(XmlWriter xmlWriter, String rootElementName) |
Methods inherited from java.lang.Object
Constructor Details
TableServiceRetentionPolicy
public TableServiceRetentionPolicy()
Creates an instance of TableServiceRetentionPolicy class.
Method Details
fromXml
public static TableServiceRetentionPolicy fromXml(XmlReader xmlReader)
Reads an instance of TableServiceRetentionPolicy from the XmlReader.
Parameters:
Returns:
Throws:
fromXml
public static TableServiceRetentionPolicy fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of TableServiceRetentionPolicy from the XmlReader.
Parameters:
Returns:
Throws:
getDaysToRetain
public Integer getDaysToRetain()
Get the daysToRetain 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 service.
Returns:
setDaysToRetain
public TableServiceRetentionPolicy setDaysToRetain(Integer daysToRetain)
Set the daysToRetain 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 TableServiceRetentionPolicy setEnabled(boolean enabled)
Set the enabled property: Indicates whether a retention policy is enabled for the service.
Parameters:
Returns:
toXml
toXml
public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)
Parameters:
Throws:
Applies to
Azure SDK for Java