你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BlobServiceProperties Class
- java.
lang. Object - com.
azure. storage. blob. models. BlobServiceProperties
- com.
Implements
public final class BlobServiceProperties
implements XmlSerializable<BlobServiceProperties>
Storage Service Properties.
Constructor Summary
Constructor | Description |
---|---|
BlobServiceProperties() |
Creates an instance of Blob |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Blob |
fromXml(XmlReader xmlReader)
Reads an instance of Blob |
static
Blob |
fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of Blob |
List<Blob |
getCors()
Get the cors property: The set of CORS rules. |
String |
getDefaultServiceVersion()
Get the default |
Blob |
getDeleteRetentionPolicy()
Get the delete |
Blob |
getHourMetrics()
Get the hour |
Blob |
getLogging()
Get the logging property: Azure Analytics Logging settings. |
Blob |
getMinuteMetrics()
Get the minute |
Static |
getStaticWebsite()
Get the static |
Blob |
setCors(List<BlobCorsRule> cors)
Set the cors property: The set of CORS rules. |
Blob |
setDefaultServiceVersion(String defaultServiceVersion)
Set the default |
Blob |
setDeleteRetentionPolicy(BlobRetentionPolicy deleteRetentionPolicy)
Set the delete |
Blob |
setHourMetrics(BlobMetrics hourMetrics)
Set the hour |
Blob |
setLogging(BlobAnalyticsLogging logging)
Set the logging property: Azure Analytics Logging settings. |
Blob |
setMinuteMetrics(BlobMetrics minuteMetrics)
Set the minute |
Blob |
setStaticWebsite(StaticWebsite staticWebsite)
Set the static |
Xml |
toXml(XmlWriter xmlWriter) |
Xml |
toXml(XmlWriter xmlWriter, String rootElementName) |
Methods inherited from java.lang.Object
Constructor Details
BlobServiceProperties
public BlobServiceProperties()
Creates an instance of BlobServiceProperties class.
Method Details
fromXml
public static BlobServiceProperties fromXml(XmlReader xmlReader)
Reads an instance of BlobServiceProperties from the XmlReader.
Parameters:
Returns:
Throws:
fromXml
public static BlobServiceProperties fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of BlobServiceProperties from the XmlReader.
Parameters:
Returns:
Throws:
getCors
public List
Get the cors property: The set of CORS rules.
Returns:
getDefaultServiceVersion
public String 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:
getDeleteRetentionPolicy
public BlobRetentionPolicy getDeleteRetentionPolicy()
Get the deleteRetentionPolicy property: the retention policy which determines how long the associated data should persist.
Returns:
getHourMetrics
public BlobMetrics getHourMetrics()
Get the hourMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.
Returns:
getLogging
public BlobAnalyticsLogging getLogging()
Get the logging property: Azure Analytics Logging settings.
Returns:
getMinuteMetrics
public BlobMetrics getMinuteMetrics()
Get the minuteMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.
Returns:
getStaticWebsite
public StaticWebsite getStaticWebsite()
Get the staticWebsite property: The properties that enable an account to host a static website.
Returns:
setCors
public BlobServiceProperties setCors(List
Set the cors property: The set of CORS rules.
Parameters:
Returns:
setDefaultServiceVersion
public BlobServiceProperties 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. Possible values include version 2008-10-27 and all more recent versions.
Parameters:
Returns:
setDeleteRetentionPolicy
public BlobServiceProperties setDeleteRetentionPolicy(BlobRetentionPolicy deleteRetentionPolicy)
Set the deleteRetentionPolicy property: the retention policy which determines how long the associated data should persist.
Parameters:
Returns:
setHourMetrics
public BlobServiceProperties setHourMetrics(BlobMetrics hourMetrics)
Set the hourMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.
Parameters:
Returns:
setLogging
public BlobServiceProperties setLogging(BlobAnalyticsLogging logging)
Set the logging property: Azure Analytics Logging settings.
Parameters:
Returns:
setMinuteMetrics
public BlobServiceProperties setMinuteMetrics(BlobMetrics minuteMetrics)
Set the minuteMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.
Parameters:
Returns:
setStaticWebsite
public BlobServiceProperties setStaticWebsite(StaticWebsite staticWebsite)
Set the staticWebsite property: The properties that enable an account to host a static website.
Parameters:
Returns:
toXml
toXml
public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)
Parameters:
Throws: