Class AbsoluteDeleteOption
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.DeleteOption
-
- com.azure.resourcemanager.dataprotection.models.AbsoluteDeleteOption
-
public final class AbsoluteDeleteOption extends DeleteOption
AbsoluteDeleteOption Delete option with duration.
-
-
Constructor Summary
Constructors Constructor Description AbsoluteDeleteOption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate()
Validates the instance.AbsoluteDeleteOption
withDuration(String duration)
Set the duration property: Duration of deletion after given timespan.-
Methods inherited from class com.azure.resourcemanager.dataprotection.models.DeleteOption
duration
-
-
-
-
Method Detail
-
withDuration
public AbsoluteDeleteOption withDuration(String duration)
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.
-
-