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 Details

    • QueueServiceProperties

      public QueueServiceProperties()
      Creates an instance of QueueServiceProperties class.
  • Method Details

    • getAnalyticsLogging

      public QueueAnalyticsLogging getAnalyticsLogging()
      Get the analyticsLogging property: Azure Analytics Logging settings.
      Returns:
      the analyticsLogging 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • getCors

      public List<QueueCorsRule> getCors()
      Get the cors property: The set of CORS rules.
      Returns:
      the cors value.
    • setCors

      public QueueServiceProperties setCors(List<QueueCorsRule> cors)
      Set the cors property: The set of CORS rules.
      Parameters:
      cors - the cors value to set.
      Returns:
      the QueueServiceProperties object itself.
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter) throws XMLStreamException
      Specified by:
      toXml in interface com.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 interface com.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.