Class DeleteOption
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.DeleteOption
-
- Direct Known Subclasses:
AbsoluteDeleteOption
public class DeleteOption extends Object
DeleteOption Delete Option.
-
-
Constructor Summary
Constructors Constructor Description DeleteOption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
duration()
Get the duration property: Duration of deletion after given timespan.void
validate()
Validates the instance.DeleteOption
withDuration(String duration)
Set the duration property: Duration of deletion after given timespan.
-
-
-
Method Detail
-
duration
public String duration()
Get the duration property: Duration of deletion after given timespan.- Returns:
- the duration value.
-
withDuration
public DeleteOption withDuration(String duration)
Set the duration property: Duration of deletion after given timespan.- Parameters:
duration
- the duration value to set.- Returns:
- the DeleteOption object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-