Class RetentionPolicyParameters
- java.lang.Object
-
- com.azure.resourcemanager.network.models.RetentionPolicyParameters
-
public final class RetentionPolicyParameters extends Object
Parameters that define the retention policy for flow log.
-
-
Constructor Summary
Constructors Constructor Description RetentionPolicyParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integerdays()Get the days property: Number of days to retain flow log records.Booleanenabled()Get the enabled property: Flag to enable/disable retention.voidvalidate()Validates the instance.RetentionPolicyParameterswithDays(Integer days)Set the days property: Number of days to retain flow log records.RetentionPolicyParameterswithEnabled(Boolean enabled)Set the enabled property: Flag to enable/disable retention.
-
-
-
Method Detail
-
days
public Integer days()
Get the days property: Number of days to retain flow log records.- Returns:
- the days value.
-
withDays
public RetentionPolicyParameters withDays(Integer days)
Set the days property: Number of days to retain flow log records.- Parameters:
days- the days value to set.- Returns:
- the RetentionPolicyParameters object itself.
-
enabled
public Boolean enabled()
Get the enabled property: Flag to enable/disable retention.- Returns:
- the enabled value.
-
withEnabled
public RetentionPolicyParameters withEnabled(Boolean enabled)
Set the enabled property: Flag to enable/disable retention.- Parameters:
enabled- the enabled value to set.- Returns:
- the RetentionPolicyParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-