Package com.azure.data.tables.models
Class TableServiceProperties
java.lang.Object
com.azure.data.tables.models.TableServiceProperties
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<TableServiceProperties>
public final class TableServiceProperties
extends Object
implements com.azure.xml.XmlSerializable<TableServiceProperties>
Table Service Properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TableServiceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic TableServiceProperties
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of TableServiceProperties from the XmlReader.static TableServiceProperties
Reads an instance of TableServiceProperties from the XmlReader.Get the cors property: The set of CORS rules.Get the hourMetrics property: A summary of request statistics grouped by API in hourly aggregates for tables.Get the logging property: Azure Analytics Logging settings.Get the minuteMetrics property: A summary of request statistics grouped by API in minute aggregates for tables.setCorsRules
(List<TableServiceCorsRule> cors) Set the cors property: The set of CORS rules.setHourMetrics
(TableServiceMetrics hourMetrics) Set the hourMetrics property: A summary of request statistics grouped by API in hourly aggregates for tables.setLogging
(TableServiceLogging logging) Set the logging property: Azure Analytics Logging settings.setMinuteMetrics
(TableServiceMetrics minuteMetrics) Set the minuteMetrics property: A summary of request statistics grouped by API in minute aggregates for tables.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
TableServiceProperties
public TableServiceProperties()Creates an instance of TableServiceProperties class.
-
-
Method Details
-
getLogging
Get the logging property: Azure Analytics Logging settings.- Returns:
- the logging value.
-
setLogging
Set the logging property: Azure Analytics Logging settings.- Parameters:
logging
- the logging value to set.- Returns:
- the TableServiceProperties object itself.
-
getHourMetrics
Get the hourMetrics property: A summary of request statistics grouped by API in hourly aggregates for tables.- Returns:
- the hourMetrics value.
-
setHourMetrics
Set the hourMetrics property: A summary of request statistics grouped by API in hourly aggregates for tables.- Parameters:
hourMetrics
- the hourMetrics value to set.- Returns:
- the TableServiceProperties object itself.
-
getMinuteMetrics
Get the minuteMetrics property: A summary of request statistics grouped by API in minute aggregates for tables.- Returns:
- the minuteMetrics value.
-
setMinuteMetrics
Set the minuteMetrics property: A summary of request statistics grouped by API in minute aggregates for tables.- Parameters:
minuteMetrics
- the minuteMetrics value to set.- Returns:
- the TableServiceProperties object itself.
-
getCorsRules
Get the cors property: The set of CORS rules.- Returns:
- the cors value.
-
setCorsRules
Set the cors property: The set of CORS rules.- Parameters:
cors
- the cors value to set.- Returns:
- the TableServiceProperties object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<TableServiceProperties>
- 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<TableServiceProperties>
- Throws:
XMLStreamException
-
fromXml
public static TableServiceProperties fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException Reads an instance of TableServiceProperties from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.- Returns:
- An instance of TableServiceProperties 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 TableServiceProperties.
-
fromXml
public static TableServiceProperties fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of TableServiceProperties 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 TableServiceProperties 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 TableServiceProperties.
-