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 Summary
ConstructorsConstructorDescriptionCreates an instance of ShareServiceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ShareServiceProperties
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of ShareServiceProperties from the XmlReader.static ShareServiceProperties
Reads an instance of ShareServiceProperties from the XmlReader.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 files.Get the minuteMetrics property: A summary of request statistics grouped by API in minute aggregates for files.Get the protocol property: Protocol settings.setCors
(List<ShareCorsRule> cors) Set the cors property: The set of CORS rules.setHourMetrics
(ShareMetrics hourMetrics) Set the hourMetrics property: A summary of request statistics grouped by API in hourly aggregates for files.setMinuteMetrics
(ShareMetrics minuteMetrics) Set the minuteMetrics property: A summary of request statistics grouped by API in minute aggregates for files.setProtocol
(ShareProtocolSettings protocol) Set the protocol property: Protocol settings.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
ShareServiceProperties
public ShareServiceProperties()Creates an instance of ShareServiceProperties class.
-
-
Method Details
-
getHourMetrics
Get the hourMetrics property: A summary of request statistics grouped by API in hourly aggregates for files.- Returns:
- the hourMetrics value.
-
getMinuteMetrics
Get the minuteMetrics property: A summary of request statistics grouped by API in minute aggregates for files.- Returns:
- the minuteMetrics value.
-
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 ShareServiceProperties object itself.
-
getProtocol
Get the protocol property: Protocol settings.- Returns:
- the protocol value.
-
toXml
- Specified by:
toXml
in interfacecom.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 interfacecom.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.
-