SoftDeletePolicy Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. SoftDeletePolicy
- com.
Implements
public final class SoftDeletePolicy
implements JsonSerializable<SoftDeletePolicy>
Contains information about the soft deletion policy of the gallery.
Constructor Summary
Constructor | Description |
---|---|
SoftDeletePolicy() |
Creates an instance of Soft |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Soft |
fromJson(JsonReader jsonReader)
Reads an instance of Soft |
Boolean |
isSoftDeleteEnabled()
Get the is |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Soft |
withIsSoftDeleteEnabled(Boolean isSoftDeleteEnabled)
Set the is |
Methods inherited from java.lang.Object
Constructor Details
SoftDeletePolicy
public SoftDeletePolicy()
Creates an instance of SoftDeletePolicy class.
Method Details
fromJson
public static SoftDeletePolicy fromJson(JsonReader jsonReader)
Reads an instance of SoftDeletePolicy from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
Applies to
Azure SDK for Java