DeleteRetentionPolicy Class
- java.
lang. Object - com.
microsoft. azure. storage. DeleteRetentionPolicy
- com.
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:
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:
Integer
which contains the retention interval.setEnabled
public void setEnabled(boolean enabled)
Set a boolean indicating whether the DeleteRetentionPolicy is enabled.
Parameters:
setRetentionIntervalInDays
public void setRetentionIntervalInDays(final Integer retentionIntervalInDays)
Set the retention interval in days for the delete retention policy.
Parameters:
Applies to
Azure SDK for Java