Class QueueAnalyticsLogging

java.lang.Object
com.azure.storage.queue.models.QueueAnalyticsLogging
All Implemented Interfaces:
com.azure.xml.XmlSerializable<QueueAnalyticsLogging>

public final class QueueAnalyticsLogging extends Object implements com.azure.xml.XmlSerializable<QueueAnalyticsLogging>
Azure Analytics Logging settings.
  • Constructor Details

    • QueueAnalyticsLogging

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

    • getVersion

      public String getVersion()
      Get the version property: The version of Storage Analytics to configure.
      Returns:
      the version value.
    • setVersion

      public QueueAnalyticsLogging setVersion(String version)
      Set the version property: The version of Storage Analytics to configure.
      Parameters:
      version - the version value to set.
      Returns:
      the QueueAnalyticsLogging object itself.
    • isDelete

      public boolean isDelete()
      Get the delete property: Indicates whether all delete requests should be logged.
      Returns:
      the delete value.
    • setDelete

      public QueueAnalyticsLogging setDelete(boolean delete)
      Set the delete property: Indicates whether all delete requests should be logged.
      Parameters:
      delete - the delete value to set.
      Returns:
      the QueueAnalyticsLogging object itself.
    • isRead

      public boolean isRead()
      Get the read property: Indicates whether all read requests should be logged.
      Returns:
      the read value.
    • setRead

      public QueueAnalyticsLogging setRead(boolean read)
      Set the read property: Indicates whether all read requests should be logged.
      Parameters:
      read - the read value to set.
      Returns:
      the QueueAnalyticsLogging object itself.
    • isWrite

      public boolean isWrite()
      Get the write property: Indicates whether all write requests should be logged.
      Returns:
      the write value.
    • setWrite

      public QueueAnalyticsLogging setWrite(boolean write)
      Set the write property: Indicates whether all write requests should be logged.
      Parameters:
      write - the write value to set.
      Returns:
      the QueueAnalyticsLogging object itself.
    • getRetentionPolicy

      public QueueRetentionPolicy getRetentionPolicy()
      Get the retentionPolicy property: the retention policy.
      Returns:
      the retentionPolicy value.
    • setRetentionPolicy

      public QueueAnalyticsLogging setRetentionPolicy(QueueRetentionPolicy retentionPolicy)
      Set the retentionPolicy property: the retention policy.
      Parameters:
      retentionPolicy - the retentionPolicy value to set.
      Returns:
      the QueueAnalyticsLogging 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<QueueAnalyticsLogging>
      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<QueueAnalyticsLogging>
      Throws:
      XMLStreamException
    • fromXml

      public static QueueAnalyticsLogging fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException
      Reads an instance of QueueAnalyticsLogging from the XmlReader.
      Parameters:
      xmlReader - The XmlReader being read.
      Returns:
      An instance of QueueAnalyticsLogging 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 QueueAnalyticsLogging.
    • fromXml

      public static QueueAnalyticsLogging fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException
      Reads an instance of QueueAnalyticsLogging 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 QueueAnalyticsLogging 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 QueueAnalyticsLogging.