Class SoftDeleteSettings
java.lang.Object
com.azure.resourcemanager.dataprotection.models.SoftDeleteSettings
Soft delete related settings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the retentionDurationInDays property: Soft delete retention duration.state()
Get the state property: State of soft delete.void
validate()
Validates the instance.withRetentionDurationInDays
(Double retentionDurationInDays) Set the retentionDurationInDays property: Soft delete retention duration.withState
(SoftDeleteState state) Set the state property: State of soft delete.
-
Constructor Details
-
SoftDeleteSettings
public SoftDeleteSettings()Creates an instance of SoftDeleteSettings class.
-
-
Method Details
-
state
Get the state property: State of soft delete.- Returns:
- the state value.
-
withState
Set the state property: State of soft delete.- Parameters:
state
- the state value to set.- Returns:
- the SoftDeleteSettings object itself.
-
retentionDurationInDays
Get the retentionDurationInDays property: Soft delete retention duration.- Returns:
- the retentionDurationInDays value.
-
withRetentionDurationInDays
Set the retentionDurationInDays property: Soft delete retention duration.- Parameters:
retentionDurationInDays
- the retentionDurationInDays value to set.- Returns:
- the SoftDeleteSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-