Class SoftDeletePolicy
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.SoftDeletePolicy
-
public final class SoftDeletePolicy extends Object
Contains information about the soft deletion policy of the gallery.
-
-
Constructor Summary
Constructors Constructor Description SoftDeletePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanisSoftDeleteEnabled()Get the isSoftDeleteEnabled property: Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.voidvalidate()Validates the instance.SoftDeletePolicywithIsSoftDeleteEnabled(Boolean isSoftDeleteEnabled)Set the isSoftDeleteEnabled property: Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
-
-
-
Method Detail
-
isSoftDeleteEnabled
public Boolean isSoftDeleteEnabled()
Get the isSoftDeleteEnabled property: Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.- Returns:
- the isSoftDeleteEnabled value.
-
withIsSoftDeleteEnabled
public SoftDeletePolicy withIsSoftDeleteEnabled(Boolean isSoftDeleteEnabled)
Set the isSoftDeleteEnabled property: Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.- Parameters:
isSoftDeleteEnabled- the isSoftDeleteEnabled value to set.- Returns:
- the SoftDeletePolicy object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-