Package com.azure.storage.queue.models
Class QueueRetentionPolicy
- java.lang.Object
-
- com.azure.storage.queue.models.QueueRetentionPolicy
-
public final class QueueRetentionPolicy extends Object
the retention policy.
-
-
Constructor Summary
Constructors Constructor Description QueueRetentionPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.QueueRetentionPolicy
setDays(Integer days)
Set the days property: Indicates the number of days that metrics or logging or soft-deleted data should be retained.QueueRetentionPolicy
setEnabled(boolean enabled)
Set the enabled property: Indicates whether a retention policy is enabled for the storage service.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Get the enabled property: Indicates whether a retention policy is enabled for the storage service.- Returns:
- the enabled value.
-
setEnabled
public QueueRetentionPolicy 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 QueueRetentionPolicy 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 QueueRetentionPolicy 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 QueueRetentionPolicy object itself.
-
-