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 Summary
Constructors Constructor Description AzureBackupRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackupParameters
backupParameters()
Get the backupParameters property: BackupParameters BackupParameters base.DataStoreInfoBase
dataStore()
Get the dataStore property: DataStoreInfoBase DataStoreInfo base.TriggerContext
trigger()
Get the trigger property: TriggerContext Trigger context.void
validate()
Validates the instance.AzureBackupRule
withBackupParameters(BackupParameters backupParameters)
Set the backupParameters property: BackupParameters BackupParameters base.AzureBackupRule
withDataStore(DataStoreInfoBase dataStore)
Set the dataStore property: DataStoreInfoBase DataStoreInfo base.AzureBackupRule
withName(String name)
Set the name property: The name property.AzureBackupRule
withTrigger(TriggerContext trigger)
Set the trigger property: TriggerContext Trigger context.-
Methods inherited from class com.azure.resourcemanager.dataprotection.models.BasePolicyRule
name
-
-
-
-
Method Detail
-
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 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.
-
-