java.lang.Object
com.azure.resourcemanager.dataprotection.models.DeleteOption
Direct Known Subclasses:
AbsoluteDeleteOption

public class DeleteOption extends Object
DeleteOption

Delete Option.

  • Constructor Details

    • DeleteOption

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

    • duration

      public String duration()
      Get the duration property: Duration of deletion after given timespan.
      Returns:
      the duration value.
    • withDuration

      public DeleteOption withDuration(String duration)
      Set the duration property: Duration of deletion after given timespan.
      Parameters:
      duration - the duration value to set.
      Returns:
      the DeleteOption object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.