public class ServiceProperties extends Object
com.microsoft.windowsazure.services.blob.BlobContract#getServiceProperties() method to return the service
property values set on the storage account, and by the
com.microsoft.windowsazure.services.blob.BlobContract#setServiceProperties(ServiceProperties) and
com.microsoft.windowsazure.services.blob.BlobContract#setServiceProperties(ServiceProperties, BlobServiceOptions)
methods to set the values of the service properties.| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceProperties.Logging
Represents the logging options that can be set on a storage account.
|
static class |
ServiceProperties.Metrics
Represents the metrics options that can be set on a storage account.
|
static class |
ServiceProperties.RetentionPolicy
Represents the optional retention policy that can be applied to logging
or metrics on the storage account.
|
| Constructor and Description |
|---|
ServiceProperties() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultServiceVersion()
Gets the default service version string used for operations on the
storage account.
|
ServiceProperties.Logging |
getLogging()
Gets the value of the logging options on the storage account.
|
ServiceProperties.Metrics |
getMetrics()
Gets the value of the metrics options on the storage account.
|
ServiceProperties |
setDefaultServiceVersion(String defaultServiceVersion)
Sets the default service version string used for operations on the
storage account.
|
ServiceProperties |
setLogging(ServiceProperties.Logging logging)
Sets the value of the logging options on the storage account.
|
ServiceProperties |
setMetrics(ServiceProperties.Metrics metrics)
Sets the value of the metrics options on the storage account.
|
public ServiceProperties.Logging getLogging()
ServiceProperties.Logging instance containing the logging options.public ServiceProperties setLogging(ServiceProperties.Logging logging)
logging - A ServiceProperties.Logging instance containing the logging options.ServiceProperties instance.public ServiceProperties.Metrics getMetrics()
ServiceProperties.Metrics instance containing the metrics options.public ServiceProperties setMetrics(ServiceProperties.Metrics metrics)
metrics - A ServiceProperties.Metrics instance containing the metrics options.ServiceProperties instance.public String getDefaultServiceVersion()
String containing the default service version string
used for operations on the storage account.public ServiceProperties setDefaultServiceVersion(String defaultServiceVersion)
See Storage Services Versioning on MSDN for more information on applicable versions.
defaultServiceVersion - A String containing the default service version string
used for operations on the storage account.ServiceProperties instance./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/