Partilhar via


TableServiceProperties Class

  • java.lang.Object
    • com.azure.data.tables.models.TableServiceProperties

Implements

public final class TableServiceProperties
implements XmlSerializable<TableServiceProperties>

Table Service Properties.

Constructor Summary

Constructor Description
TableServiceProperties()

Creates an instance of TableServiceProperties class.

Method Summary

Modifier and Type Method and Description
static TableServiceProperties fromXml(XmlReader xmlReader)

Reads an instance of TableServiceProperties from the XmlReader.

static TableServiceProperties fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of TableServiceProperties from the XmlReader.

List<TableServiceCorsRule> getCorsRules()

Get the cors property: The set of CORS rules.

TableServiceMetrics getHourMetrics()

Get the hourMetrics property: A summary of request statistics grouped by API in hourly aggregates for tables.

TableServiceLogging getLogging()

Get the logging property: Azure Analytics Logging settings.

TableServiceMetrics getMinuteMetrics()

Get the minuteMetrics property: A summary of request statistics grouped by API in minute aggregates for tables.

TableServiceProperties setCorsRules(List<TableServiceCorsRule> cors)

Set the cors property: The set of CORS rules.

TableServiceProperties setHourMetrics(TableServiceMetrics hourMetrics)

Set the hourMetrics property: A summary of request statistics grouped by API in hourly aggregates for tables.

TableServiceProperties setLogging(TableServiceLogging logging)

Set the logging property: Azure Analytics Logging settings.

TableServiceProperties setMinuteMetrics(TableServiceMetrics minuteMetrics)

Set the minuteMetrics property: A summary of request statistics grouped by API in minute aggregates for tables.

XmlWriter toXml(XmlWriter xmlWriter)
XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Methods inherited from java.lang.Object

Constructor Details

TableServiceProperties

public TableServiceProperties()

Creates an instance of TableServiceProperties class.

Method Details

fromXml

public static TableServiceProperties fromXml(XmlReader xmlReader)

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(XmlReader xmlReader, String rootElementName)

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.

getCorsRules

public List getCorsRules()

Get the cors property: The set of CORS rules.

Returns:

the cors value.

getHourMetrics

public TableServiceMetrics getHourMetrics()

Get the hourMetrics property: A summary of request statistics grouped by API in hourly aggregates for tables.

Returns:

the hourMetrics value.

getLogging

public TableServiceLogging getLogging()

Get the logging property: Azure Analytics Logging settings.

Returns:

the logging value.

getMinuteMetrics

public TableServiceMetrics getMinuteMetrics()

Get the minuteMetrics property: A summary of request statistics grouped by API in minute aggregates for tables.

Returns:

the minuteMetrics value.

setCorsRules

public TableServiceProperties setCorsRules(List cors)

Set the cors property: The set of CORS rules.

Parameters:

cors - the cors value to set.

Returns:

the TableServiceProperties object itself.

setHourMetrics

public TableServiceProperties setHourMetrics(TableServiceMetrics hourMetrics)

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.

setLogging

public TableServiceProperties setLogging(TableServiceLogging logging)

Set the logging property: Azure Analytics Logging settings.

Parameters:

logging - the logging value to set.

Returns:

the TableServiceProperties object itself.

setMinuteMetrics

public TableServiceProperties setMinuteMetrics(TableServiceMetrics minuteMetrics)

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.

toXml

public XmlWriter toXml(XmlWriter xmlWriter)

Parameters:

xmlWriter

Throws:

toXml

public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Parameters:

xmlWriter
rootElementName

Throws:

Applies to