Package com.azure.storage.blob.models
Class BlobServiceProperties
- java.lang.Object
-
- com.azure.storage.blob.models.BlobServiceProperties
-
public final class BlobServiceProperties extends Object
Storage Service Properties.
-
-
Constructor Summary
Constructors Constructor Description BlobServiceProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BlobCorsRule>
getCors()
Get the cors property: The set of CORS rules.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.BlobRetentionPolicy
getDeleteRetentionPolicy()
Get the deleteRetentionPolicy property: the retention policy which determines how long the associated data should persist.BlobMetrics
getHourMetrics()
Get the hourMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.BlobAnalyticsLogging
getLogging()
Get the logging property: Azure Analytics Logging settings.BlobMetrics
getMinuteMetrics()
Get the minuteMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.StaticWebsite
getStaticWebsite()
Get the staticWebsite property: The properties that enable an account to host a static website.BlobServiceProperties
setCors(List<BlobCorsRule> cors)
Set the cors property: The set of CORS rules.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.BlobServiceProperties
setDeleteRetentionPolicy(BlobRetentionPolicy deleteRetentionPolicy)
Set the deleteRetentionPolicy property: the retention policy which determines how long the associated data should persist.BlobServiceProperties
setHourMetrics(BlobMetrics hourMetrics)
Set the hourMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.BlobServiceProperties
setLogging(BlobAnalyticsLogging logging)
Set the logging property: Azure Analytics Logging settings.BlobServiceProperties
setMinuteMetrics(BlobMetrics minuteMetrics)
Set the minuteMetrics property: a summary of request statistics grouped by API in hour or minute aggregates for blobs.BlobServiceProperties
setStaticWebsite(StaticWebsite staticWebsite)
Set the staticWebsite property: The properties that enable an account to host a static website.
-
-
-
Method Detail
-
getLogging
public BlobAnalyticsLogging getLogging()
Get the logging property: Azure Analytics Logging settings.- Returns:
- the logging value.
-
setLogging
public BlobServiceProperties setLogging(BlobAnalyticsLogging logging)
Set the logging property: Azure Analytics Logging settings.- Parameters:
logging
- the logging value to set.- Returns:
- the BlobServiceProperties object itself.
-
getHourMetrics
public BlobMetrics 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
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:
hourMetrics
- the hourMetrics value to set.- Returns:
- the BlobServiceProperties object itself.
-
getMinuteMetrics
public BlobMetrics 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
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:
minuteMetrics
- the minuteMetrics value to set.- Returns:
- the BlobServiceProperties object itself.
-
getCors
public List<BlobCorsRule> getCors()
Get the cors property: The set of CORS rules.- Returns:
- the cors value.
-
setCors
public BlobServiceProperties setCors(List<BlobCorsRule> cors)
Set the cors property: The set of CORS rules.- Parameters:
cors
- the cors value to set.- Returns:
- the BlobServiceProperties object itself.
-
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:
- the defaultServiceVersion value.
-
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:
defaultServiceVersion
- the defaultServiceVersion value to set.- Returns:
- the BlobServiceProperties object itself.
-
getDeleteRetentionPolicy
public BlobRetentionPolicy getDeleteRetentionPolicy()
Get the deleteRetentionPolicy property: the retention policy which determines how long the associated data should persist.- Returns:
- the deleteRetentionPolicy value.
-
setDeleteRetentionPolicy
public BlobServiceProperties setDeleteRetentionPolicy(BlobRetentionPolicy deleteRetentionPolicy)
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
public StaticWebsite getStaticWebsite()
Get the staticWebsite property: The properties that enable an account to host a static website.- Returns:
- the staticWebsite value.
-
setStaticWebsite
public BlobServiceProperties setStaticWebsite(StaticWebsite staticWebsite)
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.
-
-