Package com.azure.storage.blob.models
Class BlobServiceProperties
java.lang.Object
com.azure.storage.blob.models.BlobServiceProperties
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<BlobServiceProperties>
public final class BlobServiceProperties
extends Object
implements com.azure.xml.XmlSerializable<BlobServiceProperties>
Storage Service Properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlobServiceProperties
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of BlobServiceProperties from the XmlReader.static BlobServiceProperties
Reads an instance of BlobServiceProperties from the XmlReader.getCors()
Get the cors property: The set of CORS rules.Get the defaultServiceVersion property: The default version to use for requests to the Blob service if an incoming request's version is not specified.Get the deleteRetentionPolicy property: the retention policy which determines how long the associated data should persist.Get the hourMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.Get the logging property: Azure Analytics Logging settings.Get the minuteMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.Get the staticWebsite property: The properties that enable an account to host a static website.setCors
(List<BlobCorsRule> cors) Set the cors property: The set of CORS rules.setDefaultServiceVersion
(String defaultServiceVersion) Set the defaultServiceVersion property: The default version to use for requests to the Blob service if an incoming request's version is not specified.setDeleteRetentionPolicy
(BlobRetentionPolicy deleteRetentionPolicy) Set the deleteRetentionPolicy property: the retention policy which determines how long the associated data should persist.setHourMetrics
(BlobMetrics hourMetrics) Set the hourMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.setLogging
(BlobAnalyticsLogging logging) Set the logging property: Azure Analytics Logging settings.setMinuteMetrics
(BlobMetrics minuteMetrics) Set the minuteMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.setStaticWebsite
(StaticWebsite staticWebsite) Set the staticWebsite property: The properties that enable an account to host a static website.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
BlobServiceProperties
public BlobServiceProperties()Creates an instance of BlobServiceProperties class.
-
-
Method Details
-
getLogging
Get the logging property: Azure Analytics Logging settings.- Returns:
- the logging value.
-
setLogging
Set the logging property: Azure Analytics Logging settings.- Parameters:
logging
- the logging value to set.- Returns:
- the BlobServiceProperties object itself.
-
getHourMetrics
Get the hourMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.- Returns:
- the hourMetrics value.
-
setHourMetrics
Set the hourMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.- Parameters:
hourMetrics
- the hourMetrics value to set.- Returns:
- the BlobServiceProperties object itself.
-
getMinuteMetrics
Get the minuteMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.- Returns:
- the minuteMetrics value.
-
setMinuteMetrics
Set the minuteMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.- Parameters:
minuteMetrics
- the minuteMetrics value to set.- Returns:
- the BlobServiceProperties 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 BlobServiceProperties object itself.
-
getDefaultServiceVersion
Get the defaultServiceVersion property: The default version to use for requests to the Blob service if an incoming request's version is not specified. Possible values include version 2008-10-27 and all more recent versions.- Returns:
- the defaultServiceVersion value.
-
setDefaultServiceVersion
Set the defaultServiceVersion property: The default version to use for requests to the Blob service if an incoming request's version is not specified. Possible values include version 2008-10-27 and all more recent versions.- Parameters:
defaultServiceVersion
- the defaultServiceVersion value to set.- Returns:
- the BlobServiceProperties object itself.
-
getDeleteRetentionPolicy
Get the deleteRetentionPolicy property: the retention policy which determines how long the associated data should persist.- Returns:
- the deleteRetentionPolicy value.
-
setDeleteRetentionPolicy
Set the deleteRetentionPolicy property: the retention policy which determines how long the associated data should persist.- Parameters:
deleteRetentionPolicy
- the deleteRetentionPolicy value to set.- Returns:
- the BlobServiceProperties object itself.
-
getStaticWebsite
Get the staticWebsite property: The properties that enable an account to host a static website.- Returns:
- the staticWebsite value.
-
setStaticWebsite
Set the staticWebsite property: The properties that enable an account to host a static website.- Parameters:
staticWebsite
- the staticWebsite value to set.- Returns:
- the BlobServiceProperties object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<BlobServiceProperties>
- 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<BlobServiceProperties>
- Throws:
XMLStreamException
-
fromXml
public static BlobServiceProperties fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException Reads an instance of BlobServiceProperties from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.- Returns:
- An instance of BlobServiceProperties 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 BlobServiceProperties.
-
fromXml
public static BlobServiceProperties fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of BlobServiceProperties 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 BlobServiceProperties 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 BlobServiceProperties.
-