Class AzureBackupRule

java.lang.Object
com.azure.resourcemanager.dataprotection.models.BasePolicyRule
com.azure.resourcemanager.dataprotection.models.AzureBackupRule

public final class AzureBackupRule extends BasePolicyRule
AzureBackupRule

Azure backup rule.

  • Constructor Details

    • AzureBackupRule

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

    • backupParameters

      public BackupParameters backupParameters()
      Get the backupParameters property: BackupParameters

      BackupParameters base.

      Returns:
      the backupParameters value.
    • withBackupParameters

      public AzureBackupRule withBackupParameters(BackupParameters backupParameters)
      Set the backupParameters property: BackupParameters

      BackupParameters base.

      Parameters:
      backupParameters - the backupParameters value to set.
      Returns:
      the AzureBackupRule object itself.
    • dataStore

      public DataStoreInfoBase dataStore()
      Get the dataStore property: DataStoreInfoBase

      DataStoreInfo base.

      Returns:
      the dataStore value.
    • withDataStore

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

      DataStoreInfo base.

      Parameters:
      dataStore - the dataStore value to set.
      Returns:
      the AzureBackupRule object itself.
    • trigger

      public TriggerContext trigger()
      Get the trigger property: TriggerContext

      Trigger context.

      Returns:
      the trigger value.
    • withTrigger

      public AzureBackupRule withTrigger(TriggerContext trigger)
      Set the trigger property: TriggerContext

      Trigger context.

      Parameters:
      trigger - the trigger value to set.
      Returns:
      the AzureBackupRule object itself.
    • withName

      public AzureBackupRule withName(String name)
      Set the name property: The name property.
      Overrides:
      withName in class BasePolicyRule
      Parameters:
      name - the name value to set.
      Returns:
      the BasePolicyRule object itself.
    • validate

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