Partilhar via


QueueServiceProperties Class

  • java.lang.Object
    • com.azure.storage.queue.models.QueueServiceProperties

Implements

public final class QueueServiceProperties
implements XmlSerializable<QueueServiceProperties>

Storage Service Properties.

Constructor Summary

Constructor Description
QueueServiceProperties()

Creates an instance of QueueServiceProperties class.

Method Summary

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

Reads an instance of QueueServiceProperties from the XmlReader.

static QueueServiceProperties fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of QueueServiceProperties from the XmlReader.

QueueAnalyticsLogging getAnalyticsLogging()

Get the analyticsLogging property: Azure Analytics Logging settings.

List<QueueCorsRule> getCors()

Get the cors property: The set of CORS rules.

QueueMetrics getHourMetrics()

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

QueueMetrics getMinuteMetrics()

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

QueueServiceProperties setAnalyticsLogging(QueueAnalyticsLogging analyticsLogging)

Set the analyticsLogging property: Azure Analytics Logging settings.

QueueServiceProperties setCors(List<QueueCorsRule> cors)

Set the cors property: The set of CORS rules.

QueueServiceProperties setHourMetrics(QueueMetrics hourMetrics)

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

QueueServiceProperties setMinuteMetrics(QueueMetrics minuteMetrics)

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

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

Methods inherited from java.lang.Object

Constructor Details

QueueServiceProperties

public QueueServiceProperties()

Creates an instance of QueueServiceProperties class.

Method Details

fromXml

public static QueueServiceProperties fromXml(XmlReader xmlReader)

Reads an instance of QueueServiceProperties from the XmlReader.

Parameters:

xmlReader - The XmlReader being read.

Returns:

An instance of QueueServiceProperties 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 QueueServiceProperties.

fromXml

public static QueueServiceProperties fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of QueueServiceProperties 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 QueueServiceProperties 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 QueueServiceProperties.

getAnalyticsLogging

public QueueAnalyticsLogging getAnalyticsLogging()

Get the analyticsLogging property: Azure Analytics Logging settings.

Returns:

the analyticsLogging value.

getCors

public List getCors()

Get the cors property: The set of CORS rules.

Returns:

the cors value.

getHourMetrics

public QueueMetrics getHourMetrics()

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

Returns:

the hourMetrics value.

getMinuteMetrics

public QueueMetrics getMinuteMetrics()

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

Returns:

the minuteMetrics value.

setAnalyticsLogging

public QueueServiceProperties setAnalyticsLogging(QueueAnalyticsLogging analyticsLogging)

Set the analyticsLogging property: Azure Analytics Logging settings.

Parameters:

analyticsLogging - the analyticsLogging value to set.

Returns:

the QueueServiceProperties object itself.

setCors

public QueueServiceProperties setCors(List cors)

Set the cors property: The set of CORS rules.

Parameters:

cors - the cors value to set.

Returns:

the QueueServiceProperties object itself.

setHourMetrics

public QueueServiceProperties setHourMetrics(QueueMetrics hourMetrics)

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

Parameters:

hourMetrics - the hourMetrics value to set.

Returns:

the QueueServiceProperties object itself.

setMinuteMetrics

public QueueServiceProperties setMinuteMetrics(QueueMetrics minuteMetrics)

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

Parameters:

minuteMetrics - the minuteMetrics value to set.

Returns:

the QueueServiceProperties 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