public final class BlobRetentionPolicy extends Object
the retention policy which determines how long the associated data should persist.
Constructor Summary
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method and Description Integer
getDays()
Get the days property: Indicates the number of days that metrics or logging or soft-deleted data should be retained.
boolean
isEnabled()
Get the enabled property: Indicates whether a retention policy is enabled for the storage service.
BlobRetentionPolicy
setDays(Integer days)
Set the days property: Indicates the number of days that metrics or logging or soft-deleted data should be retained.
BlobRetentionPolicy
setEnabled(boolean enabled)
Set the enabled property: Indicates whether a retention policy is enabled for the storage service.
Constructor Detail
Method Detail
setEnabled
public BlobRetentionPolicy setEnabled(boolean enabled)
Set the enabled property: Indicates whether a retention policy is enabled for the storage service.
Parameters:enabled
- the enabled value to set. Returns: the BlobRetentionPolicy object itself.
getDays
public Integer getDays()
Get the days property: Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted.
Returns: the days value.
setDays
public BlobRetentionPolicy setDays(Integer days)
Set the days property: Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted.
Parameters:days
- the days value to set. Returns: the BlobRetentionPolicy object itself.
Copyright © 2020 Microsoft Corporation. All rights reserved.
ncG1vNJzZmiZqqq%2Fpr%2FDpJuom6Njr627wWeaqKqVY8SqusOorqxmnprBcHDWnploopGrrnCt2a6pnmWjqbyzrcaeZJukn5d8cn6NbWVpZ5OkunCt2a6pnmejqbyzrcaeZpukn5d8rrvDnqOsZ3KhvKOexK2cp6yZpLuRu8uimrJmmKm6rQ%3D%3D