Class SoftDeleteSettings

java.lang.Object
com.azure.resourcemanager.dataprotection.models.SoftDeleteSettings

public final class SoftDeleteSettings extends Object
Soft delete related settings.
  • Constructor Details

    • SoftDeleteSettings

      public SoftDeleteSettings()
      Creates an instance of SoftDeleteSettings class.
  • Method Details

    • state

      public SoftDeleteState state()
      Get the state property: State of soft delete.
      Returns:
      the state value.
    • withState

      public SoftDeleteSettings withState(SoftDeleteState state)
      Set the state property: State of soft delete.
      Parameters:
      state - the state value to set.
      Returns:
      the SoftDeleteSettings object itself.
    • retentionDurationInDays

      public Double retentionDurationInDays()
      Get the retentionDurationInDays property: Soft delete retention duration.
      Returns:
      the retentionDurationInDays value.
    • withRetentionDurationInDays

      public SoftDeleteSettings withRetentionDurationInDays(Double retentionDurationInDays)
      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.