Class SoftDeletePolicy
java.lang.Object
com.azure.resourcemanager.compute.models.SoftDeletePolicy
Contains information about the soft deletion policy of the gallery.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the isSoftDeleteEnabled property: Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.voidvalidate()Validates the instance.withIsSoftDeleteEnabled(Boolean isSoftDeleteEnabled) Set the isSoftDeleteEnabled property: Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
-
Constructor Details
-
SoftDeletePolicy
public SoftDeletePolicy()
-
-
Method Details
-
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
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.
-