Class TargetCopySetting

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

public final class TargetCopySetting extends Object
TargetCopySetting

Target copy settings.

  • Constructor Details

    • TargetCopySetting

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

    • copyAfter

      public CopyOption copyAfter()
      Get the copyAfter property: CopyOption

      It can be CustomCopyOption or ImmediateCopyOption.

      Returns:
      the copyAfter value.
    • withCopyAfter

      public TargetCopySetting withCopyAfter(CopyOption copyAfter)
      Set the copyAfter property: CopyOption

      It can be CustomCopyOption or ImmediateCopyOption.

      Parameters:
      copyAfter - the copyAfter value to set.
      Returns:
      the TargetCopySetting object itself.
    • dataStore

      public DataStoreInfoBase dataStore()
      Get the dataStore property: DataStoreInfoBase

      Info of target datastore.

      Returns:
      the dataStore value.
    • withDataStore

      public TargetCopySetting withDataStore(DataStoreInfoBase dataStore)
      Set the dataStore property: DataStoreInfoBase

      Info of target datastore.

      Parameters:
      dataStore - the dataStore value to set.
      Returns:
      the TargetCopySetting object itself.
    • validate

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