Class AbsoluteDeleteOption
java.lang.Object
com.azure.resourcemanager.dataprotection.models.DeleteOption
com.azure.resourcemanager.dataprotection.models.AbsoluteDeleteOption
AbsoluteDeleteOption
Delete option with duration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Validates the instance.withDuration
(String duration) Set the duration property: Duration of deletion after given timespan.Methods inherited from class com.azure.resourcemanager.dataprotection.models.DeleteOption
duration
-
Constructor Details
-
AbsoluteDeleteOption
public AbsoluteDeleteOption()Creates an instance of AbsoluteDeleteOption class.
-
-
Method Details
-
withDuration
Set the duration property: Duration of deletion after given timespan.- Overrides:
withDuration
in classDeleteOption
- Parameters:
duration
- the duration value to set.- Returns:
- the DeleteOption object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classDeleteOption
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-