DeleteRetentionPolicy Class

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

public class DeleteRetentionPolicy

Represents the policy governing the retention of deleted blobs.

Method Summary

Modifier and Type Method and Description
boolean getEnabled()

Return a boolean indicating whether the DeleteRetentionPolicy is enabled.

Integer getRetentionIntervalInDays()

Get the retention interval(in days) of the DeleteRetentionPolicy.

void setEnabled(boolean enabled)

Set a boolean indicating whether the DeleteRetentionPolicy is enabled.

void setRetentionIntervalInDays(final Integer retentionIntervalInDays)

Set the retention interval in days for the delete retention policy.

Method Details

getEnabled

public boolean getEnabled()

Return a boolean indicating whether the DeleteRetentionPolicy is enabled.

Returns:

A boolean indicating whether a deleted blob or snapshot is retained or immediately removed by a delete operation.

getRetentionIntervalInDays

public Integer getRetentionIntervalInDays()

Get the retention interval(in days) of the DeleteRetentionPolicy.

Returns:

An Integer which contains the retention interval.

setEnabled

public void setEnabled(boolean enabled)

Set a boolean indicating whether the DeleteRetentionPolicy is enabled.

Parameters:

enabled - indicates whether the DeleteRetentionPolicy is enabled.

setRetentionIntervalInDays

public void setRetentionIntervalInDays(final Integer retentionIntervalInDays)

Set the retention interval in days for the delete retention policy.

Parameters:

retentionIntervalInDays - represents the number of days that a deleted blob is retained.

Applies to