다음을 통해 공유


ServiceProperties Class

  • java.lang.Object
    • com.microsoft.azure.storage.ServiceProperties

public class ServiceProperties

Represents the analytics properties for the service.

Constructor Summary

Constructor Description
ServiceProperties()

Initializes a new instances of the ServiceProperties class.

Method Summary

Modifier and Type Method and Description
CorsProperties getCors()

Gets the Cross-Origin Resource Sharing (CORS) properties.

String getDefaultServiceVersion()

Gets default service version.

DeleteRetentionPolicy getDeleteRetentionPolicy()

Get the delete retention policy.

MetricsProperties getHourMetrics()

Gets the hour metrics properties.

LoggingProperties getLogging()

Gets the logging properties.

MetricsProperties getMinuteMetrics()

Gets the minute metrics properties.

StaticWebsiteProperties getStaticWebsiteProperties()
void setCors(final CorsProperties cors)

Sets the Cross-Origin Resource Sharing (CORS) properties.

void setDefaultServiceVersion(final String defaultServiceVersion)

Sets default service version.

void setDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy)

Set the delete retention policy for blobs.

void setHourMetrics(final MetricsProperties metrics)

Sets the hour metrics properties.

void setLogging(final LoggingProperties logging)

Sets the logging properties.

void setMinuteMetrics(final MetricsProperties metrics)

Sets the minute metrics properties.

void setStaticWebsiteProperties(StaticWebsiteProperties staticWebsiteProperties)

Constructor Details

ServiceProperties

public ServiceProperties()

Initializes a new instances of the ServiceProperties class.

Method Details

getCors

public CorsProperties getCors()

Gets the Cross-Origin Resource Sharing (CORS) properties.

Returns:

A CorsProperties object which represents the CORS properties.

getDefaultServiceVersion

public String getDefaultServiceVersion()

Gets default service version.

Returns:

A String which represents the default service version.

getDeleteRetentionPolicy

public DeleteRetentionPolicy getDeleteRetentionPolicy()

Get the delete retention policy.

Returns:

the policy which indicates whether to retain deleted blobs for a period of time.

getHourMetrics

public MetricsProperties getHourMetrics()

Gets the hour metrics properties.

Returns:

A MetricsProperties object which represents the hour metrics properties.

getLogging

public LoggingProperties getLogging()

Gets the logging properties.

Returns:

A LoggingProperties object which represents the logging properties.

getMinuteMetrics

public MetricsProperties getMinuteMetrics()

Gets the minute metrics properties.

Returns:

A MetricsProperties object which represents the minute metrics properties.

getStaticWebsiteProperties

public StaticWebsiteProperties getStaticWebsiteProperties()

Returns:

The static website properties.

setCors

public void setCors(final CorsProperties cors)

Sets the Cross-Origin Resource Sharing (CORS) properties.

Parameters:

cors - A CorsProperties object which represents the CORS properties.

setDefaultServiceVersion

public void setDefaultServiceVersion(final String defaultServiceVersion)

Sets default service version.

Parameters:

defaultServiceVersion - A String which represents the default service version.

setDeleteRetentionPolicy

public void setDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy)

Set the delete retention policy for blobs.

Parameters:

deleteRetentionPolicy - is the policy which indicates whether to retain deleted blobs for a period of time.

setHourMetrics

public void setHourMetrics(final MetricsProperties metrics)

Sets the hour metrics properties.

Parameters:

metrics - A MetricsProperties object which represents the hour metrics properties.

setLogging

public void setLogging(final LoggingProperties logging)

Sets the logging properties.

Parameters:

logging - A LoggingProperties object which represents the logging properties.

setMinuteMetrics

public void setMinuteMetrics(final MetricsProperties metrics)

Sets the minute metrics properties.

Parameters:

metrics - A MetricsProperties object which represents the minute metrics properties.

setStaticWebsiteProperties

public void setStaticWebsiteProperties(StaticWebsiteProperties staticWebsiteProperties)

Parameters:

staticWebsiteProperties - The static website properties.

Applies to