Class RetentionPolicy
java.lang.Object
com.microsoft.azure.management.monitor.RetentionPolicy
Specifies the retention policy for the log.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdays()Get the number of days for the retention in days.booleanenabled()Get a value indicating whether the retention policy is enabled.withDays(int days) Set the number of days for the retention in days.withEnabled(boolean enabled) Set a value indicating whether the retention policy is enabled.
-
Constructor Details
-
RetentionPolicy
public RetentionPolicy()
-
-
Method Details
-
enabled
public boolean enabled()Get a value indicating whether the retention policy is enabled.- Returns:
- the enabled value
-
withEnabled
Set a value indicating whether the retention policy is enabled.- Parameters:
enabled- the enabled value to set- Returns:
- the RetentionPolicy object itself.
-
days
public int days()Get the number of days for the retention in days. A value of 0 will retain the events indefinitely.- Returns:
- the days value
-
withDays
Set the number of days for the retention in days. A value of 0 will retain the events indefinitely.- Parameters:
days- the days value to set- Returns:
- the RetentionPolicy object itself.
-