Package com.azure.data.tables.models
Class TableServiceLogging
java.lang.Object
com.azure.data.tables.models.TableServiceLogging
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<TableServiceLogging>
public final class TableServiceLogging
extends Object
implements com.azure.xml.XmlSerializable<TableServiceLogging>
Azure Analytics Logging settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TableServiceLogging
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of TableServiceLogging from the XmlReader.static TableServiceLogging
Reads an instance of TableServiceLogging from the XmlReader.Get the analyticsVersion property: The version of Analytics to configure.Get the retentionPolicy property: The retention policy.boolean
Get the deleteLogged property: Indicates whether all delete requests should be logged.boolean
Get the readLogged property: Indicates whether all read requests should be logged.boolean
Get the writeLogged property: Indicates whether all write requests should be logged.setAnalyticsVersion
(String analyticsVersion) Set the analyticsVersion property: The version of Analytics to configure.setDeleteLogged
(boolean deleteLogged) Set the deleteLogged property: Indicates whether all delete requests should be logged.setReadLogged
(boolean readLogged) Set the readLogged property: Indicates whether all read requests should be logged.setRetentionPolicy
(TableServiceRetentionPolicy retentionPolicy) Set the retentionPolicy property: The retention policy.setWriteLogged
(boolean writeLogged) Set the writeLogged property: Indicates whether all write requests should be logged.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
TableServiceLogging
public TableServiceLogging()Creates an instance of TableServiceLogging class.
-
-
Method Details
-
getAnalyticsVersion
Get the analyticsVersion property: The version of Analytics to configure.- Returns:
- the analyticsVersion value.
-
setAnalyticsVersion
Set the analyticsVersion property: The version of Analytics to configure.- Parameters:
analyticsVersion
- the analyticsVersion value to set.- Returns:
- the TableServiceLogging object itself.
-
isDeleteLogged
public boolean isDeleteLogged()Get the deleteLogged property: Indicates whether all delete requests should be logged.- Returns:
- the deleteLogged value.
-
setDeleteLogged
Set the deleteLogged property: Indicates whether all delete requests should be logged.- Parameters:
deleteLogged
- the deleteLogged value to set.- Returns:
- the TableServiceLogging object itself.
-
isReadLogged
public boolean isReadLogged()Get the readLogged property: Indicates whether all read requests should be logged.- Returns:
- the readLogged value.
-
setReadLogged
Set the readLogged property: Indicates whether all read requests should be logged.- Parameters:
readLogged
- the readLogged value to set.- Returns:
- the TableServiceLogging object itself.
-
isWriteLogged
public boolean isWriteLogged()Get the writeLogged property: Indicates whether all write requests should be logged.- Returns:
- the writeLogged value.
-
setWriteLogged
Set the writeLogged property: Indicates whether all write requests should be logged.- Parameters:
writeLogged
- the writeLogged value to set.- Returns:
- the TableServiceLogging object itself.
-
getRetentionPolicy
Get the retentionPolicy property: The retention policy.- Returns:
- the retentionPolicy value.
-
setRetentionPolicy
Set the retentionPolicy property: The retention policy.- Parameters:
retentionPolicy
- the retentionPolicy value to set.- Returns:
- the TableServiceLogging object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<TableServiceLogging>
- Throws:
XMLStreamException
-
toXml
public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException - Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<TableServiceLogging>
- Throws:
XMLStreamException
-
fromXml
public static TableServiceLogging fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException Reads an instance of TableServiceLogging from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.- Returns:
- An instance of TableServiceLogging if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
- Throws:
XMLStreamException
- If an error occurs while reading the TableServiceLogging.
-
fromXml
public static TableServiceLogging fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of TableServiceLogging from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.rootElementName
- Optional root element name to override the default defined by the model. Used to support cases where the model can deserialize from different root element names.- Returns:
- An instance of TableServiceLogging if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
- Throws:
XMLStreamException
- If an error occurs while reading the TableServiceLogging.
-