Class AzureBackupRule
java.lang.Object
com.azure.resourcemanager.dataprotection.models.BasePolicyRule
com.azure.resourcemanager.dataprotection.models.AzureBackupRule
AzureBackupRule
Azure backup rule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the backupParameters property: BackupParametersGet the dataStore property: DataStoreInfoBasetrigger()
Get the trigger property: TriggerContextvoid
validate()
Validates the instance.withBackupParameters
(BackupParameters backupParameters) Set the backupParameters property: BackupParameterswithDataStore
(DataStoreInfoBase dataStore) Set the dataStore property: DataStoreInfoBaseSet the name property: The name property.withTrigger
(TriggerContext trigger) Set the trigger property: TriggerContextMethods inherited from class com.azure.resourcemanager.dataprotection.models.BasePolicyRule
name
-
Constructor Details
-
AzureBackupRule
public AzureBackupRule()Creates an instance of AzureBackupRule class.
-
-
Method Details
-
backupParameters
Get the backupParameters property: BackupParametersBackupParameters base.
- Returns:
- the backupParameters value.
-
withBackupParameters
Set the backupParameters property: BackupParametersBackupParameters base.
- Parameters:
backupParameters
- the backupParameters value to set.- Returns:
- the AzureBackupRule object itself.
-
dataStore
Get the dataStore property: DataStoreInfoBaseDataStoreInfo base.
- Returns:
- the dataStore value.
-
withDataStore
Set the dataStore property: DataStoreInfoBaseDataStoreInfo base.
- Parameters:
dataStore
- the dataStore value to set.- Returns:
- the AzureBackupRule object itself.
-
trigger
Get the trigger property: TriggerContextTrigger context.
- Returns:
- the trigger value.
-
withTrigger
Set the trigger property: TriggerContextTrigger context.
- Parameters:
trigger
- the trigger value to set.- Returns:
- the AzureBackupRule object itself.
-
withName
Set the name property: The name property.- Overrides:
withName
in classBasePolicyRule
- Parameters:
name
- the name value to set.- Returns:
- the BasePolicyRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classBasePolicyRule
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-