Package com.azure.storage.queue.models
Class QueueServiceProperties
java.lang.Object
com.azure.storage.queue.models.QueueServiceProperties
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<QueueServiceProperties>
public final class QueueServiceProperties
extends Object
implements com.azure.xml.XmlSerializable<QueueServiceProperties>
Storage Service Properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of QueueServiceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueueServiceProperties
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of QueueServiceProperties from the XmlReader.static QueueServiceProperties
Reads an instance of QueueServiceProperties from the XmlReader.Get the analyticsLogging property: Azure Analytics Logging settings.getCors()
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 queues.Get the minuteMetrics property: a summary of request statistics grouped by API in minute aggregates for queues.setAnalyticsLogging
(QueueAnalyticsLogging analyticsLogging) Set the analyticsLogging property: Azure Analytics Logging settings.setCors
(List<QueueCorsRule> cors) Set the cors property: The set of CORS rules.setHourMetrics
(QueueMetrics hourMetrics) Set the hourMetrics property: A summary of request statistics grouped by API in hourly aggregates for queues.setMinuteMetrics
(QueueMetrics minuteMetrics) Set the minuteMetrics property: a summary of request statistics grouped by API in minute aggregates for queues.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
QueueServiceProperties
public QueueServiceProperties()Creates an instance of QueueServiceProperties class.
-
-
Method Details
-
getAnalyticsLogging
Get the analyticsLogging property: Azure Analytics Logging settings.- Returns:
- the analyticsLogging value.
-
setAnalyticsLogging
Set the analyticsLogging property: Azure Analytics Logging settings.- Parameters:
analyticsLogging
- the analyticsLogging value to set.- Returns:
- the QueueServiceProperties object itself.
-
getHourMetrics
Get the hourMetrics property: A summary of request statistics grouped by API in hourly aggregates for queues.- Returns:
- the hourMetrics value.
-
setHourMetrics
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.
-
getMinuteMetrics
Get the minuteMetrics property: a summary of request statistics grouped by API in minute aggregates for queues.- Returns:
- the minuteMetrics value.
-
setMinuteMetrics
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.
-
getCors
Get the cors property: The set of CORS rules.- Returns:
- the cors value.
-
setCors
Set the cors property: The set of CORS rules.- Parameters:
cors
- the cors value to set.- Returns:
- the QueueServiceProperties object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<QueueServiceProperties>
- 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<QueueServiceProperties>
- Throws:
XMLStreamException
-
fromXml
public static QueueServiceProperties fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException 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(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException 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.
-