Class RetentionPolicyParameters
java.lang.Object
com.azure.resourcemanager.network.models.RetentionPolicyParameters
Parameters that define the retention policy for flow log.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RetentionPolicyParameters class. -
Method Summary
Modifier and TypeMethodDescriptiondays()Get the days property: Number of days to retain flow log records.enabled()Get the enabled property: Flag to enable/disable retention.voidvalidate()Validates the instance.Set the days property: Number of days to retain flow log records.withEnabled(Boolean enabled) Set the enabled property: Flag to enable/disable retention.
-
Constructor Details
-
RetentionPolicyParameters
public RetentionPolicyParameters()Creates an instance of RetentionPolicyParameters class.
-
-
Method Details
-
days
Get the days property: Number of days to retain flow log records.- Returns:
- the days value.
-
withDays
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
Get the enabled property: Flag to enable/disable retention.- Returns:
- the enabled value.
-
withEnabled
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.
-