public static class ServiceProperties.RetentionPolicy extends Object
| Constructor and Description |
|---|
RetentionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getDays()
Gets the number of days that metrics or logging data should be
retained.
|
boolean |
isEnabled()
Gets a flag indicating whether a retention policy is enabled for the
storage service.
|
ServiceProperties.RetentionPolicy |
setDays(Integer days)
Sets the number of days that metrics or logging data should be
retained.
|
ServiceProperties.RetentionPolicy |
setEnabled(boolean enabled)
Sets a flag indicating whether a retention policy is enabled for the
storage service.
|
public Integer getDays()
public ServiceProperties.RetentionPolicy setDays(Integer days)
days - The number of days that metrics or logging data should be
retained.ServiceProperties.RetentionPolicy instance.public boolean isEnabled()
true if data retention is enabled, otherwise
false.public ServiceProperties.RetentionPolicy setEnabled(boolean enabled)
enabled - Set true to enable data retention.ServiceProperties.RetentionPolicy 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.
*/