Class CustomCopyOption

java.lang.Object
com.azure.resourcemanager.dataprotection.models.CopyOption
com.azure.resourcemanager.dataprotection.models.CustomCopyOption

public final class CustomCopyOption extends CopyOption
CustomCopyOption

Duration based custom options to copy.

  • Constructor Details

    • CustomCopyOption

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

    • duration

      public String duration()
      Get the duration property: Data copied after given timespan.
      Returns:
      the duration value.
    • withDuration

      public CustomCopyOption withDuration(String duration)
      Set the duration property: Data copied after given timespan.
      Parameters:
      duration - the duration value to set.
      Returns:
      the CustomCopyOption object itself.
    • validate

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