Class ShareServiceProperties

java.lang.Object
com.azure.storage.file.share.models.ShareServiceProperties
All Implemented Interfaces:
com.azure.xml.XmlSerializable<ShareServiceProperties>

public final class ShareServiceProperties extends Object implements com.azure.xml.XmlSerializable<ShareServiceProperties>
Storage service properties.
  • Constructor Details

    • ShareServiceProperties

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

    • getHourMetrics

      public ShareMetrics getHourMetrics()
      Get the hourMetrics property: A summary of request statistics grouped by API in hourly aggregates for files.
      Returns:
      the hourMetrics value.
    • setHourMetrics

      public ShareServiceProperties setHourMetrics(ShareMetrics hourMetrics)
      Set the hourMetrics property: A summary of request statistics grouped by API in hourly aggregates for files.
      Parameters:
      hourMetrics - the hourMetrics value to set.
      Returns:
      the ShareServiceProperties object itself.
    • getMinuteMetrics

      public ShareMetrics getMinuteMetrics()
      Get the minuteMetrics property: A summary of request statistics grouped by API in minute aggregates for files.
      Returns:
      the minuteMetrics value.
    • setMinuteMetrics

      public ShareServiceProperties setMinuteMetrics(ShareMetrics minuteMetrics)
      Set the minuteMetrics property: A summary of request statistics grouped by API in minute aggregates for files.
      Parameters:
      minuteMetrics - the minuteMetrics value to set.
      Returns:
      the ShareServiceProperties object itself.
    • getCors

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

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

      public ShareProtocolSettings getProtocol()
      Get the protocol property: Protocol settings.
      Returns:
      the protocol value.
    • setProtocol

      public ShareServiceProperties setProtocol(ShareProtocolSettings protocol)
      Set the protocol property: Protocol settings.
      Parameters:
      protocol - the protocol value to set.
      Returns:
      the ShareServiceProperties 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<ShareServiceProperties>
      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<ShareServiceProperties>
      Throws:
      XMLStreamException
    • fromXml

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

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